◆ __construct()
constructor
init class.
- Parameters
-
◆ checkUserPermissions()
checkUserPermissions |
( |
|
$course_id | ) |
|
check user permissions
checks user permissions for connected course and changes setting if necessary public
- Parameters
-
string | $course_id | course-id |
- Returns
- boolean returns false on error
◆ getContentModulePerms()
getContentModulePerms |
( |
|
$module_id | ) |
|
get permissions for content module
returns allowed operations for given user and module public
- Parameters
-
string | $module_id | module-id |
- Returns
- boolean returns false on error
◆ getOperation()
getOperation |
( |
|
$operation | ) |
|
get operation
returns id for given operation-string public
- Parameters
-
string | $operation | operation |
- Returns
- integer operation-id
◆ getOperationArray()
getOperationArray |
( |
|
$operation | ) |
|
get operation-ids
returns an array of operation-ids
- Parameters
-
- 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
◆ $allowed_operations
◆ $AUTHOR_OPERATIONS
◆ $operations
◆ $tree_allowed_operations
◆ $USER_OPERATIONS
The documentation for this class was generated from the following file: