ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
interface.ilRBACAccessHandler.php
Go to the documentation of this file.
1 <?php
2 
15 {
16 
28  public function storeAccessResult($a_permission, $a_cmd, $a_ref_id, $a_access_granted, $a_user_id = null, $a_info = "");
29 
30 
36  public function setPreventCachingLastResult($a_val);
37 
38 
44  public function getPreventCachingLastResult();
45 
46 
61  public function getStoredAccessResult($a_permission, $a_cmd, $a_ref_id, $a_user_id = "");
62 
63 
64  public function storeCache();
65 
66 
67  public function readCache($a_secs = 0);
68 
69 
70  public function getResults();
71 
72 
73  public function setResults($a_results);
74 
75 
79  public function addInfoItem($a_type, $a_text, $a_data = "");
80 
81 
94  public function checkAccess($a_permission, $a_cmd, $a_ref_id, $a_type = "", $a_obj_id = null, $a_tree_id = null);
95 
96 
110  public function checkAccessOfUser($a_user_id, $a_permission, $a_cmd, $a_ref_id, $a_type = "", $a_obj_id = null, $a_tree_id = null);
111 
112 
116  public function getInfo();
117 
118 
122  public function getResultLast();
123 
124 
125  public function getResultAll($a_ref_id = "");
126 
127 
138  public function doCacheCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id);
139 
140 
151  public function doTreeCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id);
152 
153 
166  public function doRBACCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_type);
167 
168 
180  public function doPathCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_all = false);
181 
182 
195  public function doActivationCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_obj_id, $a_type);
196 
197 
210  public function doConditionCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_obj_id, $a_type);
211 
212 
225  public function doStatusCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_obj_id, $a_type);
226 
227 
231  public function clear();
232 
233 
238  public function enable($a_str, $a_bool);
239 }
checkAccessOfUser($a_user_id, $a_permission, $a_cmd, $a_ref_id, $a_type="", $a_obj_id=null, $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance) ...
enable($a_str, $a_bool)
readCache($a_secs=0)
doActivationCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_obj_id, $a_type)
check for activation and centralized offline status.
Interface ilRBACAccessHandler.
doCacheCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id)
look if result for current query is already in cache
getResultAll($a_ref_id="")
doTreeCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id)
check if object is in tree and not deleted
checkAccess($a_permission, $a_cmd, $a_ref_id, $a_type="", $a_obj_id=null, $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance) ...
storeAccessResult($a_permission, $a_cmd, $a_ref_id, $a_access_granted, $a_user_id=null, $a_info="")
store access result
getPreventCachingLastResult()
Get prevent caching last result.
getResultLast()
get last info object
addInfoItem($a_type, $a_text, $a_data="")
add an info item to current info object
doStatusCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_obj_id, $a_type)
object type specific check
$a_type
Definition: workflow.php:92
doConditionCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_obj_id, $a_type)
condition check (currently only implemented for read permission)
setResults($a_results)
getInfo()
get last info object
setPreventCachingLastResult($a_val)
Set prevent caching last result.
doPathCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_all=false)
check read permission for all parents
doRBACCheck($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_type)
rbac check for current object -> type should be used for create permission
getStoredAccessResult($a_permission, $a_cmd, $a_ref_id, $a_user_id="")
get stored access result