Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
Ilias3ConnectedPermissions Class Reference
Inheritance diagram for Ilias3ConnectedPermissions:
ConnectedPermissions Ilias4ConnectedPermissions Ilias5ConnectedPermissions

Public Member Functions

 __construct ($cms)
 
 readData ()
 
 checkUserPermissions ($course_id)
 
 getUserRoles ()
 
 getContentModulePerms ($module_id)
 
 getOperation ($operation)
 
 getOperationArray ($operation)
 
- Public Member Functions inherited from ConnectedPermissions
 __construct ($cms)
 
 getContentModulePerms ($module_id)
 

Data Fields

 $operations
 
 $allowed_operations
 
 $tree_allowed_operations
 
 $USER_OPERATIONS
 
 $AUTHOR_OPERATIONS
 
- Data Fields inherited from ConnectedPermissions
 $cms_type
 
 $db_class
 

Constructor & Destructor Documentation

__construct (   $cms)

constructor

init class.

Parameters
string$cmssystem-type

Member Function Documentation

checkUserPermissions (   $course_id)

check user permissions

checks user permissions for connected course and changes setting if necessary public

Parameters
string$course_idcourse-id
Returns
boolean returns false on error
getContentModulePerms (   $module_id)

get permissions for content module

returns allowed operations for given user and module public

Parameters
string$module_idmodule-id
Returns
boolean returns false on error
getOperation (   $operation)

get operation

returns id for given operation-string public

Parameters
string$operationoperation
Returns
integer operation-id
getOperationArray (   $operation)

get operation-ids

returns an array of operation-ids

Parameters
array$operationoperation
Returns
array|false operation-ids
getUserRoles ( )

get user roles

returns roles for current user public

Returns
array role-ids
readData ( )

read data

reads acces control data from database public

Field Documentation

$allowed_operations
$AUTHOR_OPERATIONS
$operations
$tree_allowed_operations
$USER_OPERATIONS

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