Class cPermission
This class handles the permission management
Package: Core\Backend
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Boris Erdmann, Kristian Koehntopp
Located at classes/class.permission.php
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Boris Erdmann, Kristian Koehntopp
Located at classes/class.permission.php
public
array
|
|
public
integer
|
#
getIDForArea( string|integer $area )
Returns the id of an area. If passed area is numeric, it will returned directly. |
public
integer
|
#
getIDForAction( string|integer $action )
Returns the id of an action. If passed action is numeric, it will returned directly. |
public
string
|
#
load_permissions( boolean $force = false )
Loads all permissions of groups where current logged in user is a member and saves them in session. |
public
|
#
load_permissions_for_user( string $user )
Loads all permissions for a specific user or group. Stores area rights in global variable $area_rights. Stores item rights in global variable $item_rights. |
public
boolean
|
|
public
boolean
|
|
public
Ambigous
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
hasClientPermission( integer $iClient = false, object $oUser = false )
Checks if a user has access rights for a specific client. |
public
boolean
|
#
isClientUser( integer $iClient, object $oUser )
Checks if the given user has access permission for a client |
public
boolean
|
#
isClientGroup( integer $iClient, object $oGroup )
Checks if the given group has access permission for a client |
public
boolean
|
|
public
boolean
|
|
private
object
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
Ambigous
|
public
string
|
$classname | 'cPermission' |
#
Permission class name |
public
array
|
$areacache | array() |
#
Area cache |
public
array
|
$actioncache | array() |
#
Actions cache |
public
|
$db |
|
#
Database instance |