Stud.IP  5.4
 All Data Structures Namespaces Files Functions Variables Groups
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 (   $id = self::UNKNOWN_ROLE_ID,
  $name = '',
  $system = false 
)

Constructor

Member Function Documentation

getRoleid ( )

Returns the role's id.

Returns
int
getRolename ( )

Returns the role's name.

Returns
string
getSystemtype ( )

Returns whether the role is a system role.

Returns
boolean
setRoleid (   $newid)

Set the role's id.

Parameters
int$newid
setRolename (   $newrole)

Set the role's name.

Parameters
string$newrole
setSystemtype (   $newtype)

Sets whether the role is a system role.

Parameters
boolean$newtype

Field Documentation

$roleid
$rolename
$systemtype
const UNKNOWN_ROLE_ID = null

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