Peta
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
role Class Reference

Public Member Functions

 getId ()
 
 getRole ()
 
 getAdmin ()
 
 getAccessRights ()
 
 getAccesRightsString ()
 
 setAccessRights ($ar)
 
 convertAccessToInt ($access)
 
 convertAccessToString ($intAccess)
 
 setId ($id)
 
 setRole ($role)
 
 setAdmin ($admin)
 
 getAccessStringList ()
 

Detailed Description

Role-Object to make access more easy.. it's the same as it is in the db-table

Member Function Documentation

role::getAccesRightsString ( )

Same method as getAccessRights, but with a string. str READ, READWRITE or ADMIN. Failurevalue is "Null" (as String)

role::getAccessRights ( )

Get the access-right on this plugin with this user in form of a int. It is always one int, but readwrite are 2 rights. 1 = READ 2 = READWRITE 3 = ADMIN 0 = Fail

Returns
int accessRights
role::getAdmin ( )

Return if it's a adminrole or not

Returns
bool if admin or not
role::getId ( )

Returns the id of the role

Returns
int the role-id
role::getRole ( )

Get the rolename

Returns
String the rolename
role::setAccessRights (   $ar)

Set accessrights to role

role::setAdmin (   $admin)

Propably deprecated, better not use

role::setId (   $id)

Set the id (no db!)


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