ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
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 More... | |
getStoredAccessResult (string $a_permission, string $a_cmd, int $a_ref_id, ?int $a_user_id=null) | |
get stored access result More... | |
setPreventCachingLastResult (bool $a_val) | |
Set prevent caching last result. More... | |
getPreventCachingLastResult () | |
Get prevent caching last result. More... | |
storeCache () | |
readCache (int $a_secs=0) | |
getResults () | |
setResults (array $a_results) | |
addInfoItem (string $a_type, string $a_text, string $a_data="") | |
add an info item to current info object More... | |
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) More... | |
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) More... | |
getInfo () | |
get last info object More... | |
getResultLast () | |
get last info object More... | |
getResultAll (int $a_ref_id=0) | |
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 More... | |
doTreeCheck (string $a_permission, string $a_cmd, int $a_ref_id, int $a_user_id) | |
check if object is in tree and not deleted More... | |
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 More... | |
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 More... | |
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. More... | |
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) More... | |
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 More... | |
clear () | |
enable (string $a_str, bool $a_bool) | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Interface ilRBACAccessHandler Checks access for ILIAS objects
Definition at line 28 of file interface.ilRBACAccessHandler.php.
ilRBACAccessHandler::addInfoItem | ( | string | $a_type, |
string | $a_text, | ||
string | $a_data = "" |
||
) |
add an info item to current info object
Implemented in ilAccess.
Referenced by ilObjFileBasedLMAccess\_checkAccess(), and ilObjContentObjectAccess\_checkAccess().
ilRBACAccessHandler::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)
Implemented in ilAccess.
Referenced by ilTranslationGUI\__construct(), ilObjCourseReferenceGUI\_goto(), ilObjCmiXapiGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilObjBlogGUI\_goto(), ilBlockGUI\addRepoCommands(), ilCalendarPresentationGUI\addStandardTabs(), ilObjectListGUI\checkCommandAccess(), ilObjPortfolioTemplateGUI\createFromTemplate(), ilObjUserFolderGUI\getActionUserIds(), ilBlockGUI\getHTMLNew(), ilRecommendedContentManager\getOpenRecommendationsOfUser(), ilCopySelfAssQuestionTableGUI\getQuestions(), ilPCSection\handleAccess(), ilBadgeManagementGUI\hasWrite(), ilObjUserFolderGUI\importUserFormObject(), ilContainerSessionsContentGUI\initDetails(), ilObjBookingPoolGUI\initHeaderAction(), ilPCFileItemFileSelectorGUI\isNodeClickable(), ilContainerSelectionExplorer\isVisible(), ilMediaCreationGUI\listPoolItems(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilObjBlogGUI\setSettingsSubTabs(), and ilObjUserFolderGUI\viewObject().
ilRBACAccessHandler::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)
Implemented in ilAccess.
Referenced by ilExAssignmentTeamTableGUI\__construct(), ilObjSurvey\addAppraisee(), ilObjSurvey\addRater(), ilBookCronNotification\checkAccess(), ilObjectListGUI\getAsCard(), ilExcRepoObjAssignmentAccessInfo\getInfo(), ilLearningHistoryTimelineItem\render(), ilObjSurvey\sent360Reminders(), and ilObjSessionGUI\unregisterObject().
ilRBACAccessHandler::clear | ( | ) |
Implemented in ilAccess.
Referenced by ilObjSessionGUI\unregisterObject().
ilRBACAccessHandler::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.
Implemented in ilAccess.
Referenced by ilStartUpGUI\_checkGoto().
ilRBACAccessHandler::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
Implemented in ilAccess.
ilRBACAccessHandler::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)
Implemented in ilAccess.
ilRBACAccessHandler::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
Implemented in ilAccess.
ilRBACAccessHandler::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
Implemented in ilAccess.
ilRBACAccessHandler::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
Implemented in ilAccess.
Referenced by ilStartUpGUI\_checkGoto().
ilRBACAccessHandler::doTreeCheck | ( | string | $a_permission, |
string | $a_cmd, | ||
int | $a_ref_id, | ||
int | $a_user_id | ||
) |
check if object is in tree and not deleted
Implemented in ilAccess.
ilRBACAccessHandler::enable | ( | string | $a_str, |
bool | $a_bool | ||
) |
Implemented in ilAccess.
ilRBACAccessHandler::getInfo | ( | ) |
ilRBACAccessHandler::getPreventCachingLastResult | ( | ) |
Get prevent caching last result.
Implemented in ilAccess.
ilRBACAccessHandler::getResultAll | ( | int | $a_ref_id = 0 | ) |
Implemented in ilAccess.
ilRBACAccessHandler::getResultLast | ( | ) |
get last info object
Implemented in ilAccess.
ilRBACAccessHandler::getResults | ( | ) |
Implemented in ilAccess.
ilRBACAccessHandler::getStoredAccessResult | ( | string | $a_permission, |
string | $a_cmd, | ||
int | $a_ref_id, | ||
?int | $a_user_id = null |
||
) |
get stored access result
string | $a_permission | permission |
string | $a_cmd | command string |
int | $a_ref_id | reference id |
int | null | $a_user_id | user id (if no id passed, current user id) |
Implemented in ilAccess.
ilRBACAccessHandler::readCache | ( | int | $a_secs = 0 | ) |
Implemented in ilAccess.
ilRBACAccessHandler::setPreventCachingLastResult | ( | bool | $a_val | ) |
Set prevent caching last result.
Implemented in ilAccess.
ilRBACAccessHandler::setResults | ( | array | $a_results | ) |
Implemented in ilAccess.
ilRBACAccessHandler::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
Implemented in ilAccess.
ilRBACAccessHandler::storeCache | ( | ) |
Implemented in ilAccess.