ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Interface ilRBACAccessHandler. More...
Public Member Functions | |
storeAccessResult ($a_permission, $a_cmd, $a_ref_id, $a_access_granted, $a_user_id=null, $a_info="") | |
store access result More... | |
setPreventCachingLastResult ($a_val) | |
Set prevent caching last result. More... | |
getPreventCachingLastResult () | |
Get prevent caching last result. More... | |
getStoredAccessResult ($a_permission, $a_cmd, $a_ref_id, $a_user_id="") | |
get stored access result More... | |
storeCache () | |
readCache ($a_secs=0) | |
getResults () | |
setResults ($a_results) | |
addInfoItem ($a_type, $a_text, $a_data="") | |
add an info item to current info object More... | |
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) More... | |
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) More... | |
getInfo () | |
get last info object More... | |
getResultLast () | |
get last info object More... | |
getResultAll ($a_ref_id="") | |
doCacheCheck ($a_permission, $a_cmd, $a_ref_id, $a_user_id) | |
look if result for current query is already in cache More... | |
doTreeCheck ($a_permission, $a_cmd, $a_ref_id, $a_user_id) | |
check if object is in tree and not deleted More... | |
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 More... | |
doPathCheck ($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_all=false) | |
check read permission for all parents More... | |
doActivationCheck ($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_obj_id, $a_type) | |
check for activation and centralized offline status. More... | |
doConditionCheck ($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_obj_id, $a_type) | |
condition check (currently only implemented for read permission) More... | |
doStatusCheck ($a_permission, $a_cmd, $a_ref_id, $a_user_id, $a_obj_id, $a_type) | |
object type specific check More... | |
clear () | |
enable ($a_str, $a_bool) | |
Interface ilRBACAccessHandler.
Checks access for ILIAS objects
Definition at line 14 of file interface.ilRBACAccessHandler.php.
ilRBACAccessHandler::addInfoItem | ( | $a_type, | |
$a_text, | |||
$a_data = "" |
|||
) |
add an info item to current info object
Implemented in ilAccess.
ilRBACAccessHandler::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)
string | $a_permission | |
string | $a_cmd | |
int | $a_ref_id | |
string | $a_type | (optional) |
int | $a_obj_id | (optional) |
int | $a_tree_id | (optional) |
Implemented in ilAccess.
ilRBACAccessHandler::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)
integer | $a_user_id | |
string | $a_permission | |
string | $a_cmd | |
int | $a_ref_id | |
string | $a_type | (optional) |
int | $a_obj_id | (optional) |
int | $a_tree_id | (optional) |
Implemented in ilAccess.
ilRBACAccessHandler::clear | ( | ) |
Implemented in ilAccess.
ilRBACAccessHandler::doActivationCheck | ( | $a_permission, | |
$a_cmd, | |||
$a_ref_id, | |||
$a_user_id, | |||
$a_obj_id, | |||
$a_type | |||
) |
check for activation and centralized offline status.
string | $a_permission | |
string | $a_cmd | |
int | $a_ref_id | |
int | $a_user_id | |
int | $a_obj_id | |
string | $a_type |
Referenced by ilAccess\checkAccessOfUser(), and ilAccess\doPathCheck().
ilRBACAccessHandler::doCacheCheck | ( | $a_permission, | |
$a_cmd, | |||
$a_ref_id, | |||
$a_user_id | |||
) |
look if result for current query is already in cache
string | $a_permission | |
string | $a_cmd | |
int | $a_ref_id | |
int | $a_user_id |
Implemented in ilAccess.
ilRBACAccessHandler::doConditionCheck | ( | $a_permission, | |
$a_cmd, | |||
$a_ref_id, | |||
$a_user_id, | |||
$a_obj_id, | |||
$a_type | |||
) |
condition check (currently only implemented for read permission)
string | $a_permission | |
string | $a_cmd | |
int | $a_ref_id | |
int | $a_user_id | |
int | $a_obj_id | |
string | $a_type |
Implemented in ilAccess.
ilRBACAccessHandler::doPathCheck | ( | $a_permission, | |
$a_cmd, | |||
$a_ref_id, | |||
$a_user_id, | |||
$a_all = false |
|||
) |
check read permission for all parents
string | $a_permission | |
string | $a_cmd | |
int | $a_ref_id | |
int | $a_user_id | |
bool | $a_all |
Implemented in ilAccess.
ilRBACAccessHandler::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
string | $a_permission | |
string | $a_cmd | |
int | $a_ref_id | |
int | $a_user_id | |
string | $a_type |
Implemented in ilAccess.
ilRBACAccessHandler::doStatusCheck | ( | $a_permission, | |
$a_cmd, | |||
$a_ref_id, | |||
$a_user_id, | |||
$a_obj_id, | |||
$a_type | |||
) |
object type specific check
string | $a_permission | |
string | $a_cmd | |
int | $a_ref_id | |
int | $a_user_id | |
int | $a_obj_id | |
string | $a_type |
Implemented in ilAccess.
ilRBACAccessHandler::doTreeCheck | ( | $a_permission, | |
$a_cmd, | |||
$a_ref_id, | |||
$a_user_id | |||
) |
check if object is in tree and not deleted
string | $a_permission | |
string | $a_cmd | |
int | $a_ref_id | |
int | $a_user_id |
Implemented in ilAccess.
ilRBACAccessHandler::enable | ( | $a_str, | |
$a_bool | |||
) |
$a_str | |
$a_bool |
Implemented in ilAccess.
ilRBACAccessHandler::getInfo | ( | ) |
get last info object
Implemented in ilAccess.
ilRBACAccessHandler::getPreventCachingLastResult | ( | ) |
Get prevent caching last result.
Implemented in ilAccess.
ilRBACAccessHandler::getResultAll | ( | $a_ref_id = "" | ) |
Implemented in ilAccess.
ilRBACAccessHandler::getResultLast | ( | ) |
get last info object
Implemented in ilAccess.
ilRBACAccessHandler::getResults | ( | ) |
Implemented in ilAccess.
ilRBACAccessHandler::getStoredAccessResult | ( | $a_permission, | |
$a_cmd, | |||
$a_ref_id, | |||
$a_user_id = "" |
|||
) |
get stored access result
private
string | $a_permission | permission |
string | $a_cmd | command string |
int | $a_ref_id | reference id |
int | $a_user_id | user id (if no id passed, current user id) |
Implemented in ilAccess.
ilRBACAccessHandler::readCache | ( | $a_secs = 0 | ) |
Implemented in ilAccess.
ilRBACAccessHandler::setPreventCachingLastResult | ( | $a_val | ) |
Set prevent caching last result.
boolean | true if last result should not be cached |
Implemented in ilAccess.
ilRBACAccessHandler::setResults | ( | $a_results | ) |
Implemented in ilAccess.
ilRBACAccessHandler::storeAccessResult | ( | $a_permission, | |
$a_cmd, | |||
$a_ref_id, | |||
$a_access_granted, | |||
$a_user_id = null , |
|||
$a_info = "" |
|||
) |
store access result
private
string | $a_permission | permission |
string | $a_cmd | command string |
int | $a_ref_id | reference id |
boolean | $a_access_granted | true if access is granted |
int | $a_user_id | user id (if no id passed, current user id) |
Implemented in ilAccess.
ilRBACAccessHandler::storeCache | ( | ) |
Implemented in ilAccess.