ILIAS
eassessment Revision 61809
|
Public Member Functions | |
_checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="") | |
Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) | |
_getCommands ($a_ref_id) | |
get commands |
Additional Inherited Members | |
Static Public Member Functions inherited from ilContainerReferenceAccess | |
static | _isAccessible ($a_ref_id) |
Check if target is accessible and not deleted. |
Definition at line 36 of file class.ilObjCourseReferenceAccess.php.
ilObjCourseReferenceAccess::_checkAccess | ( | $a_cmd, | |
$a_permission, | |||
$a_ref_id, | |||
$a_obj_id, | |||
$a_user_id = "" |
|||
) |
Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess)
Please do not check any preconditions handled by ilConditionHandler here. Also don't do any RBAC checks.
string | $a_cmd | command (not permission!) |
string | $a_permission | permission |
int | $a_ref_id | reference id |
int | $a_obj_id | object id |
int | $a_user_id | user id (if not provided, current user is taken) |
Reimplemented from ilContainerReferenceAccess.
Definition at line 53 of file class.ilObjCourseReferenceAccess.php.
References $lng, ilObjCourse\_isActivated(), ilObject\_lookupObjId(), ilContainerReference\_lookupTargetRefId(), and IL_NO_OBJECT_ACCESS.
ilObjCourseReferenceAccess::_getCommands | ( | $a_ref_id | ) |
get commands
Depends on permissions
int | $a_ref_id | Reference id of course link |
this method returns an array of all possible commands/permission combinations
example: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );
Definition at line 93 of file class.ilObjCourseReferenceAccess.php.
References $GLOBALS, and ilObjectAccess\_getCommands().