Stud.IP  5.4
Role Class Reference

Public Member Functions

 __construct ($id=self::UNKNOWN_ROLE_ID, $name='', $system=false)
 
 getRoleid ()
 
 setRoleid ($newid)
 
 getRolename ()
 
 setRolename ($newrole)
 
 getSystemtype ()
 
 setSystemtype ($newtype)
 

Data Fields

const UNKNOWN_ROLE_ID = null
 
 $roleid
 
 $rolename
 
 $systemtype
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $id = self::UNKNOWN_ROLE_ID,
  $name = '',
  $system = false 
)

Constructor

Member Function Documentation

◆ getRoleid()

getRoleid ( )

Returns the role's id.

Returns
int

◆ getRolename()

getRolename ( )

Returns the role's name.

Returns
string

◆ getSystemtype()

getSystemtype ( )

Returns whether the role is a system role.

Returns
boolean

◆ setRoleid()

setRoleid (   $newid)

Set the role's id.

Parameters
int$newid

◆ setRolename()

setRolename (   $newrole)

Set the role's name.

Parameters
string$newrole

◆ setSystemtype()

setSystemtype (   $newtype)

Sets whether the role is a system role.

Parameters
boolean$newtype

Field Documentation

◆ $roleid

$roleid

◆ $rolename

$rolename

◆ $systemtype

$systemtype

◆ UNKNOWN_ROLE_ID

const UNKNOWN_ROLE_ID = null

The documentation for this class was generated from the following file: