19 declare(strict_types=1);
37 bool $a_access_granted,
38 ?
int $a_user_id =
null,
54 ?
int $a_user_id =
null 74 public function addInfoItem(
string $a_type,
string $a_text,
string $a_data =
""): void;
85 ?
int $a_obj_id =
null,
86 ?
int $a_tree_id =
null 99 ?
int $a_obj_id =
null,
100 ?
int $a_tree_id =
null 107 public function getInfo(): array;
121 string $a_permission,
131 string $a_permission,
142 string $a_permission,
153 string $a_permission,
164 string $a_permission,
176 string $a_permission,
188 string $a_permission,
196 public function clear(): void;
201 public function enable(
string $a_str,
bool $a_bool): void;
Interface ilRBACAccessHandler Checks access for ILIAS objects.
addInfoItem(string $a_type, string $a_text, string $a_data="")
add an info item to current info object
checkAccess(string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance) ...
setPreventCachingLastResult(bool $a_val)
Set prevent caching last result.
setResults(array $a_results)
getPreventCachingLastResult()
Get prevent caching last result.
getResultLast()
get last info object
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
doConditionCheck(string $a_permission, string $a_cmd, int $a_ref_id, int $a_user_id, int $a_obj_id, string $a_type)
condition check (currently only implemented for read permission)
getStoredAccessResult(string $a_permission, string $a_cmd, int $a_ref_id, ?int $a_user_id=null)
get stored access result
getResultAll(int $a_ref_id=0)
storeAccessResult(string $a_permission, string $a_cmd, int $a_ref_id, bool $a_access_granted, ?int $a_user_id=null, ?ilAccessInfo $a_info=null)
store access result
doPathCheck(string $a_permission, string $a_cmd, int $a_ref_id, int $a_user_id, bool $a_all=false)
check read permission for all parents
doActivationCheck(string $a_permission, string $a_cmd, int $a_ref_id, int $a_user_id, int $a_obj_id, string $a_type)
check for activation and centralized offline status.
getInfo()
get last info object
doCacheCheck(string $a_permission, string $a_cmd, int $a_ref_id, int $a_user_id)
look if result for current query is already in cache
enable(string $a_str, bool $a_bool)
doRBACCheck(string $a_permission, string $a_cmd, int $a_ref_id, int $a_user_id, string $a_type)
rbac check for current object -> type is used for create permission
checkAccessOfUser(int $a_user_id, string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance) ...
doTreeCheck(string $a_permission, string $a_cmd, int $a_ref_id, int $a_user_id)
check if object is in tree and not deleted
doStatusCheck(string $a_permission, string $a_cmd, int $a_ref_id, int $a_user_id, int $a_obj_id, string $a_type)
object type specific check