18 declare(strict_types=1);
    36     public function _checkAccess(
string $cmd, 
string $permission, 
int $ref_id, 
int $obj_id, ?
int $user_id = null): bool
    38         global $ilUser, 
$lng, $rbacsystem, $ilAccess;
    40         if (is_null($user_id)) {
    41             $user_id = $ilUser->getId();
    44         switch ($permission) {
    47                 $tutor = $rbacsystem->checkAccessOfUser($user_id, 
'write', $ref_id);
    52                 if (!$tutor and !$active) {
    58                 $tutor = $rbacsystem->checkAccessOfUser($user_id, 
'write', $ref_id);
    88             array(
"permission" => 
"read", 
"cmd" => 
"show", 
"lang_var" => 
"info",
    90             array(
"permission" => 
"write", 
"cmd" => 
"edit", 
"lang_var" => 
"edit")
 const IL_NO_OBJECT_ACCESS
 
static _getCommands()
get commands 
 
_checkAccess(string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAcc...
 
static _lookupOnline($a_obj_id)
Lookup online.