|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilRBACAccessHandler:
Collaboration diagram for ilRBACAccessHandler: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... | |
| 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().
Here is the caller graph for this function:| 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 ilObjStudyProgrammeReferenceGUI\_goto(), ilObjCourseReferenceGUI\_goto(), ilObjCmiXapiGUI\_goto(), ilObjDataCollectionGUI\_goto(), ilObjIndividualAssessmentGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilExportOptions\addOptions(), ilBlockGUI\addRepoCommands(), ilCalendarPresentationGUI\addStandardTabs(), ilObjectListGUI\checkCommandAccess(), ilObjPortfolioTemplateGUI\createFromTemplate(), ilBlockGUI\getHTML(), ilRecommendedContentManager\getOpenRecommendationsOfUser(), ilCopySelfAssQuestionTableGUI\getQuestions(), ilPCSection\handleAccess(), ilBadgeManagementGUI\hasWrite(), ilObjBookingPoolGUI\initHeaderAction(), ilObjRepositorySettingsGUI\initSettingsForm(), ilPCFileItemFileSelectorGUI\isNodeClickable(), ilContainerSelectionExplorer\isVisible(), ilMediaCreationGUI\listPoolItems(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), and ilObjBlogGUI\setSettingsSubTabs().
Here is the caller graph for this function:| 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(), ilExAssTypeWikiTeamGUI\createWiki(), ilExcRepoObjAssignmentAccessInfo\getInfo(), ilLearningHistoryTimelineItem\render(), ilObjSurvey\sent360Reminders(), and ilObjSessionGUI\unregisterObject().
Here is the caller graph for this function:| ilRBACAccessHandler::clear | ( | ) |
Implemented in ilAccess.
Referenced by ilObjSessionGUI\unregisterObject().
Here is the caller graph for this function:| 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\processIndexPHP().
Here is the caller graph for this function:| 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\processIndexPHP().
Here is the caller graph for this function:| 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::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.