|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilMyStaffAccess. More...
Inheritance diagram for ILIAS\MyStaff\ilMyStaffAccess:
Collaboration diagram for ILIAS\MyStaff\ilMyStaffAccess:Public Member Functions | ||||
| hasCurrentUserAccessToMyStaff () | ||||
| hasCurrentUserAccessToCertificates () | ||||
| hasCurrentUserAccessToCompetences () | ||||
| hasCurrentUserAccessToCourseMemberships () | ||||
| hasCurrentUserAccessToUser ($usr_id=0) | ||||
| hasCurrentUserAccessToLearningProgressInObject ($ref_id=0) | ||||
| hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser () | ||||
| countOrgusOfUserWithAtLeastOneOperation ($user_id) | ||||
| getUsersForUserOperationAndContext ( $user_id, $org_unit_operation_string, $context, $tmp_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX) | ||||
| getUsersForUserPerPosition ($user_id) | ||||
| getUsersForUser ($user_id, ?int $position_id=null) | ||||
| getIdsForUserAndOperation (int $user_id, string $operation, bool $return_ref_id=false) | ||||
| getIdsForPositionAndOperation (int $position_id, string $operation, bool $return_ref_id) | ||||
| getIdsForPositionAndOperationAndContext (int $position_id, string $operation, string $context, bool $return_ref_id) | ||||
| returns all obj_ids/ref_ids (depending on flag "ref_id") of objects of type $context, to which the position with $position_id has permissions on the operation with $operation_id More... | ||||
| hasPositionDefaultPermissionForOperationInContext (int $position_id, int $operation_id, int $context_id) | ||||
| buildTempTableCourseMemberships ($temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS, array $only_courses_of_user_ids=array()) | ||||
| buildTempTableOrguMemberships ($temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS, array $only_orgus_of_user_ids=array()) | ||||
| dropTempTable ($temporary_table_name) | ||||
Public Member Functions inherited from ilObjectAccess | ||||
| _checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="") | ||||
| Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More... | ||||
| _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id) | ||||
| check condition More... | ||||
| canBeDelivered (ilWACPath $ilWACPath) | ||||
| ||||
| canBeDelivered (ilWACPath $ilWACPath) | ||||
Static Public Member Functions | |
| static | getInstance () |
Static Public Member Functions inherited from ilObjectAccess | |
| static | _getCommands () |
| get commands More... | |
| static | _checkGoto ($a_target) |
| check whether goto script will succeed More... | |
| static | _isOffline ($a_obj_id) |
| Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More... | |
| static | _preloadData ($a_obj_ids, $a_ref_ids) |
| Preload data. More... | |
Data Fields | |
| const | TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS = 'tmp_obj_spec_perm' |
| const | TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_DEFAULT_PERMISSIONS = 'tmp_obj_def_perm' |
| const | TMP_DEFAULT_TABLE_NAME_PREFIX_IL_ORGU_DEFAULT_PERMISSIONS = 'tmp_orgu_def_perm' |
| const | TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS = 'tmp_crs_members' |
| const | TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS = 'tmp_orgu_members' |
| const | TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX = 'tmp_obj_user_matr' |
| const | ACCESS_ENROLMENTS_ORG_UNIT_OPERATION = ilOrgUnitOperation::OP_ACCESS_ENROLMENTS |
| const | COURSE_CONTEXT = ilOrgUnitOperationContext::CONTEXT_CRS |
| const | EXERCISE_CONTEXT = ilOrgUnitOperationContext::CONTEXT_EXC |
| const | GROUP_CONTEXT = ilOrgUnitOperationContext::CONTEXT_GRP |
| const | SURVEY_CONTEXT = ilOrgUnitOperationContext::CONTEXT_SVY |
| const | TEST_CONTEXT = ilOrgUnitOperationContext::CONTEXT_TST |
Protected Attributes | |
| $users_for_user = [] | |
Static Protected Attributes | |
| static | $instance = null |
Private Member Functions | |
| __construct () | |
Class ilMyStaffAccess.
Definition at line 17 of file class.ilMyStaffAccess.php.
|
private |
Definition at line 72 of file class.ilMyStaffAccess.php.
| ILIAS\MyStaff\ilMyStaffAccess::buildTempTableCourseMemberships | ( | $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS, |
|
| array | $only_courses_of_user_ids = array() |
||
| ) |
| string | $temporary_table_name_prefix | |
| array | $only_courses_of_user_ids |
Definition at line 896 of file class.ilMyStaffAccess.php.
References $DIC, and ILIAS\MyStaff\ilMyStaffAccess\dropTempTable().
Here is the call graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::buildTempTableOrguMemberships | ( | $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS, |
|
| array | $only_orgus_of_user_ids = array() |
||
| ) |
| string | $temporary_table_name_prefix | |
| array | $only_orgus_of_user_ids |
Definition at line 938 of file class.ilMyStaffAccess.php.
References $DIC, and ILIAS\MyStaff\ilMyStaffAccess\dropTempTable().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\getUsersForUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::countOrgusOfUserWithAtLeastOneOperation | ( | $user_id | ) |
| int | $user_id |
Definition at line 267 of file class.ilMyStaffAccess.php.
References $DIC.
| ILIAS\MyStaff\ilMyStaffAccess::dropTempTable | ( | $temporary_table_name | ) |
| string | $temporary_table_name |
Definition at line 983 of file class.ilMyStaffAccess.php.
References $DIC.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\buildTempTableCourseMemberships(), and ILIAS\MyStaff\ilMyStaffAccess\buildTempTableOrguMemberships().
Here is the caller graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::getIdsForPositionAndOperation | ( | int | $position_id, |
| string | $operation, | ||
| bool | $return_ref_id | ||
| ) |
| int | $position_id | |
| string | $operation | |
| bool | $return_ref_id |
Definition at line 470 of file class.ilMyStaffAccess.php.
References ilOrgUnitOperationContext\$available_contexts, $context, and ILIAS\MyStaff\ilMyStaffAccess\getIdsForPositionAndOperationAndContext().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\getIdsForUserAndOperation().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::getIdsForPositionAndOperationAndContext | ( | int | $position_id, |
| string | $operation, | ||
| string | $context, | ||
| bool | $return_ref_id | ||
| ) |
returns all obj_ids/ref_ids (depending on flag "ref_id") of objects of type $context, to which the position with $position_id has permissions on the operation with $operation_id
| int | $position_id | |
| string | $operation | |
| string | $context | |
| bool | $return_ref_id |
Definition at line 497 of file class.ilMyStaffAccess.php.
References $context, $DIC, $query, ilOrgUnitOperationContextQueries\findByName(), ilOrgUnitOperationQueries\findByOperationString(), and ILIAS\MyStaff\ilMyStaffAccess\hasPositionDefaultPermissionForOperationInContext().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\getIdsForPositionAndOperation().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::getIdsForUserAndOperation | ( | int | $user_id, |
| string | $operation, | ||
| bool | $return_ref_id = false |
||
| ) |
| int | $user_id | |
| string | $operation | |
| bool | $return_ref_id |
Definition at line 448 of file class.ilMyStaffAccess.php.
References ILIAS\MyStaff\ilMyStaffAccess\getIdsForPositionAndOperation(), and ilOrgUnitUserAssignmentQueries\getInstance().
Here is the call graph for this function:
|
static |
Definition at line 46 of file class.ilMyStaffAccess.php.
References $DIC, and ILIAS\MyStaff\ilMyStaffAccess\$instance.
Referenced by ILIAS\MyStaff\ListCompetences\Skills\ilMStListCompetencesSkillsTableGUI\__construct(), ILIAS\MyStaff\ListCertificates\ilMStListCertificatesTableGUI\__construct(), ILIAS\MyStaff\ListCourses\ilMStListCoursesTableGUI\__construct(), ILIAS\MyStaff\ListUsers\ilMStListUsersTableGUI\__construct(), ILIAS\MyStaff\Courses\ShowUser\ilMStShowUserCoursesTableGUI\__construct(), ILIAS\MyStaff\ListCourses\ilMStListCourses\getData(), and ILIAS\MyStaff\Provider\StaffMainBarProvider\getStaticSubItems().
Here is the caller graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::getUsersForUser | ( | $user_id, | |
| ?int | $position_id = null |
||
| ) |
| int | $user_id | |
| int | null | $position_id |
Definition at line 369 of file class.ilMyStaffAccess.php.
References $DIC, and ILIAS\MyStaff\ilMyStaffAccess\buildTempTableOrguMemberships().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\getUsersForUserPerPosition(), and ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::getUsersForUserOperationAndContext | ( | $user_id, | |
| $org_unit_operation_string, | |||
| $context, | |||
$tmp_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX |
|||
| ) |
| int | $user_id | |
| string | $org_unit_operation_string | |
| string | $context | |
| string | $tmp_table_name_prefix |
Definition at line 321 of file class.ilMyStaffAccess.php.
References $context, and $DIC.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser().
Here is the caller graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::getUsersForUserPerPosition | ( | $user_id | ) |
| $user_id |
Definition at line 350 of file class.ilMyStaffAccess.php.
References ilOrgUnitUserAssignmentQueries\getInstance(), and ILIAS\MyStaff\ilMyStaffAccess\getUsersForUser().
Here is the call graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToCertificates | ( | ) |
Definition at line 111 of file class.ilMyStaffAccess.php.
References $DIC, and ilOrgUnitOperation\OP_VIEW_CERTIFICATES.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToMyStaff().
Here is the caller graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToCompetences | ( | ) |
Definition at line 149 of file class.ilMyStaffAccess.php.
References $DIC, and ilOrgUnitOperation\OP_VIEW_COMPETENCES.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToMyStaff().
Here is the caller graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser | ( | ) |
Definition at line 248 of file class.ilMyStaffAccess.php.
References $DIC, ILIAS\MyStaff\ilMyStaffAccess\getUsersForUserOperationAndContext(), and ilOrgUnitOperation\OP_READ_LEARNING_PROGRESS.
Here is the call graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToCourseMemberships | ( | ) |
Definition at line 189 of file class.ilMyStaffAccess.php.
References $DIC.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToMyStaff().
Here is the caller graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToLearningProgressInObject | ( | $ref_id = 0 | ) |
| int | $ref_id |
Definition at line 237 of file class.ilMyStaffAccess.php.
References $DIC, and ilOrgUnitOperation\OP_READ_LEARNING_PROGRESS.
| ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToMyStaff | ( | ) |
Definition at line 80 of file class.ilMyStaffAccess.php.
References $DIC, ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToCertificates(), ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToCompetences(), ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToCourseMemberships(), and ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToUser().
Here is the call graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToUser | ( | $usr_id = 0 | ) |
| int | $usr_id |
Definition at line 211 of file class.ilMyStaffAccess.php.
References $DIC, and ILIAS\MyStaff\ilMyStaffAccess\getUsersForUser().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToMyStaff().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\MyStaff\ilMyStaffAccess::hasPositionDefaultPermissionForOperationInContext | ( | int | $position_id, |
| int | $operation_id, | ||
| int | $context_id | ||
| ) |
| int | $position_id | |
| int | $operation_id | |
| int | $context_id |
Definition at line 537 of file class.ilMyStaffAccess.php.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\getIdsForPositionAndOperationAndContext().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 36 of file class.ilMyStaffAccess.php.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\getInstance().
|
protected |
Definition at line 41 of file class.ilMyStaffAccess.php.
| const ILIAS\MyStaff\ilMyStaffAccess::ACCESS_ENROLMENTS_ORG_UNIT_OPERATION = ilOrgUnitOperation::OP_ACCESS_ENROLMENTS |
Definition at line 26 of file class.ilMyStaffAccess.php.
Referenced by ILIAS\MyStaff\ListCourses\ilMStListCourses\getData(), ILIAS\MyStaff\ListCourses\ilMStListCoursesTableGUI\parseData(), and ILIAS\MyStaff\Courses\ShowUser\ilMStShowUserCoursesTableGUI\parseData().
| const ILIAS\MyStaff\ilMyStaffAccess::COURSE_CONTEXT = ilOrgUnitOperationContext::CONTEXT_CRS |
Definition at line 27 of file class.ilMyStaffAccess.php.
Referenced by ILIAS\MyStaff\ListCourses\ilMStListCoursesTableGUI\fillRow(), ILIAS\MyStaff\Courses\ShowUser\ilMStShowUserCoursesTableGUI\fillRow(), ILIAS\MyStaff\ListCourses\ilMStListCourses\getData(), ILIAS\MyStaff\ListCourses\ilMStListCoursesTableGUI\initFilter(), ILIAS\MyStaff\Courses\ShowUser\ilMStShowUserCoursesTableGUI\initFilter(), ILIAS\MyStaff\ListCourses\ilMStListCoursesTableGUI\parseData(), and ILIAS\MyStaff\Courses\ShowUser\ilMStShowUserCoursesTableGUI\parseData().
| const ILIAS\MyStaff\ilMyStaffAccess::EXERCISE_CONTEXT = ilOrgUnitOperationContext::CONTEXT_EXC |
Definition at line 28 of file class.ilMyStaffAccess.php.
| const ILIAS\MyStaff\ilMyStaffAccess::GROUP_CONTEXT = ilOrgUnitOperationContext::CONTEXT_GRP |
Definition at line 29 of file class.ilMyStaffAccess.php.
| const ILIAS\MyStaff\ilMyStaffAccess::SURVEY_CONTEXT = ilOrgUnitOperationContext::CONTEXT_SVY |
Definition at line 30 of file class.ilMyStaffAccess.php.
| const ILIAS\MyStaff\ilMyStaffAccess::TEST_CONTEXT = ilOrgUnitOperationContext::CONTEXT_TST |
Definition at line 31 of file class.ilMyStaffAccess.php.
| const ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS = 'tmp_crs_members' |
Definition at line 23 of file class.ilMyStaffAccess.php.
| const ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_DEFAULT_PERMISSIONS = 'tmp_obj_def_perm' |
Definition at line 21 of file class.ilMyStaffAccess.php.
| const ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS = 'tmp_obj_spec_perm' |
Definition at line 20 of file class.ilMyStaffAccess.php.
| const ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX = 'tmp_obj_user_matr' |
Definition at line 25 of file class.ilMyStaffAccess.php.
| const ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_ORGU_DEFAULT_PERMISSIONS = 'tmp_orgu_def_perm' |
Definition at line 22 of file class.ilMyStaffAccess.php.
| const ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS = 'tmp_orgu_members' |
Definition at line 24 of file class.ilMyStaffAccess.php.