ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Class ilMyStaffAccess. More...
Public Member Functions | |
__construct () | |
hasCurrentUserAccessToMyStaff () | |
hasCurrentUserAccessToCertificates () | |
hasCurrentUserAccessToTalks () | |
hasCurrentUserAccessToCompetences () | |
hasCurrentUserAccessToCourseMemberships () | |
hasCurrentUserAccessToStaffList () | |
hasCurrentUserAccessToUser (int $usr_id) | |
hasCurrentUserAccessToLearningProgressInObject (int $ref_id=0) | |
hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser () | |
countOrgusOfUserWithAtLeastOneOperation (int $user_id) | |
getUsersForUserOperationAndContext (int $user_id, string $org_unit_operation_string, string $context, string $tmp_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX) | |
getUsersForUserPerPosition (int $user_id) | |
getUsersForUser (int $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) | |
hasPositionDefaultPermissionForOperationInContext (int $position_id, int $operation_id, int $context_id) | |
getIlobjectsAndUsersForUserOperationAndContext (int $user_id, string $org_unit_operation_string, string $context) | |
buildTempTableIlobjectsUserMatrixForUserOperationAndContext (int $user_id, string $org_unit_operation_string, string $context, string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX) | |
buildTempTableIlobjectsSpecificPermissionSetForOperationAndContext (string $org_unit_operation_string, string $context, string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS) | |
buildTempTableCourseMemberships (string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS, array $only_courses_of_user_ids=array()) | |
buildTempTableOrguMemberships (string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS, array $only_orgus_of_user_ids=array()) | |
dropTempTable (string $temporary_table_name) | |
![]() | |
_checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null) | |
Checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More... | |
canBeDelivered (ilWACPath $ilWACPath) | |
Static Public Member Functions | |
static | getInstance () |
static | isMyStaffActive () |
![]() | |
static | _getCommands () |
get commands More... | |
static | _checkGoto (string $target) |
check whether goto script will succeed More... | |
static | _isOffline (int $obj_id) |
Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More... | |
static | _preloadData (array $obj_ids, array $ref_ids) |
Preload data. More... | |
Protected Attributes | |
array | $users_for_user = [] |
Static Protected Attributes | |
static self | $instance = null |
Class ilMyStaffAccess.
Definition at line 32 of file class.ilMyStaffAccess.php.
ILIAS\MyStaff\ilMyStaffAccess::__construct | ( | ) |
Definition at line 78 of file class.ilMyStaffAccess.php.
ILIAS\MyStaff\ilMyStaffAccess::buildTempTableCourseMemberships | ( | string | $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS , |
array | $only_courses_of_user_ids = array() |
||
) |
Definition at line 915 of file class.ilMyStaffAccess.php.
References $DIC, $q, and ILIAS\MyStaff\ilMyStaffAccess\dropTempTable().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\buildTempTableIlobjectsUserMatrixForUserOperationAndContext().
ILIAS\MyStaff\ilMyStaffAccess::buildTempTableIlobjectsSpecificPermissionSetForOperationAndContext | ( | string | $org_unit_operation_string, |
string | $context, | ||
string | $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS |
||
) |
Definition at line 766 of file class.ilMyStaffAccess.php.
References $context, $DIC, $GLOBALS, $q, ILIAS\MyStaff\ilMyStaffAccess\dropTempTable(), and ilOrgUnitOperationQueries\findByOperationString().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\buildTempTableIlobjectsUserMatrixForUserOperationAndContext().
ILIAS\MyStaff\ilMyStaffAccess::buildTempTableIlobjectsUserMatrixForUserOperationAndContext | ( | int | $user_id, |
string | $org_unit_operation_string, | ||
string | $context, | ||
string | $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX |
||
) |
Definition at line 627 of file class.ilMyStaffAccess.php.
References $context, $DIC, $GLOBALS, $q, ILIAS\MyStaff\ilMyStaffAccess\buildTempTableCourseMemberships(), ILIAS\MyStaff\ilMyStaffAccess\buildTempTableIlobjectsSpecificPermissionSetForOperationAndContext(), ILIAS\MyStaff\ilMyStaffAccess\buildTempTableOrguMemberships(), ILIAS\MyStaff\ilMyStaffAccess\dropTempTable(), ilOrgUnitOperationQueries\findByOperationString(), ILIAS\Survey\Mode\getId(), ILIAS\MyStaff\ilMyStaffAccess\getUsersForUser(), and ILIAS\Repository\user().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\getIlobjectsAndUsersForUserOperationAndContext(), and ILIAS\MyStaff\ilMyStaffAccess\getUsersForUserOperationAndContext().
ILIAS\MyStaff\ilMyStaffAccess::buildTempTableOrguMemberships | ( | string | $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS , |
array | $only_orgus_of_user_ids = array() |
||
) |
Definition at line 967 of file class.ilMyStaffAccess.php.
References $DIC, $q, and ILIAS\MyStaff\ilMyStaffAccess\dropTempTable().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\buildTempTableIlobjectsUserMatrixForUserOperationAndContext(), and ILIAS\MyStaff\ilMyStaffAccess\getUsersForUser().
ILIAS\MyStaff\ilMyStaffAccess::countOrgusOfUserWithAtLeastOneOperation | ( | int | $user_id | ) |
Definition at line 332 of file class.ilMyStaffAccess.php.
References $context, $DIC, $q, $user_id, and ilOrgUnitOperationQueries\findByOperationString().
ILIAS\MyStaff\ilMyStaffAccess::dropTempTable | ( | string | $temporary_table_name | ) |
Definition at line 1008 of file class.ilMyStaffAccess.php.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\buildTempTableCourseMemberships(), ILIAS\MyStaff\ilMyStaffAccess\buildTempTableIlobjectsSpecificPermissionSetForOperationAndContext(), ILIAS\MyStaff\ilMyStaffAccess\buildTempTableIlobjectsUserMatrixForUserOperationAndContext(), and ILIAS\MyStaff\ilMyStaffAccess\buildTempTableOrguMemberships().
ILIAS\MyStaff\ilMyStaffAccess::getIdsForPositionAndOperation | ( | int | $position_id, |
string | $operation, | ||
bool | $return_ref_id | ||
) |
Definition at line 517 of file class.ilMyStaffAccess.php.
References ilOrgUnitOperationContext\$available_contexts, $DIC, ilOrgUnitOperationContextQueries\findByName(), ilOrgUnitOperationQueries\findByOperationString(), and ILIAS\MyStaff\ilMyStaffAccess\hasPositionDefaultPermissionForOperationInContext().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\getIdsForUserAndOperation().
ILIAS\MyStaff\ilMyStaffAccess::getIdsForUserAndOperation | ( | int | $user_id, |
string | $operation, | ||
bool | $return_ref_id = false |
||
) |
Definition at line 500 of file class.ilMyStaffAccess.php.
References ILIAS\MyStaff\ilMyStaffAccess\getIdsForPositionAndOperation(), and ilOrgUnitUserAssignmentQueries\getInstance().
ILIAS\MyStaff\ilMyStaffAccess::getIlobjectsAndUsersForUserOperationAndContext | ( | int | $user_id, |
string | $org_unit_operation_string, | ||
string | $context | ||
) |
Definition at line 594 of file class.ilMyStaffAccess.php.
References $DIC, $q, ILIAS\MyStaff\ilMyStaffAccess\buildTempTableIlobjectsUserMatrixForUserOperationAndContext(), and ilOrgUnitOperationQueries\findByOperationString().
|
static |
Definition at line 52 of file class.ilMyStaffAccess.php.
Referenced by ILIAS\MyStaff\ListCertificates\ilMStListCertificatesTableGUI\__construct(), ILIAS\MyStaff\ListCompetences\Skills\ilMStListCompetencesSkillsTableGUI\__construct(), ILIAS\MyStaff\ListUsers\ilMStListUsersTableGUI\__construct(), ILIAS\MyStaff\ListCourses\ilMStListCourses\getData(), ILIAS\MyStaff\ListCertificates\ilMStListCertificates\getData(), and ILIAS\MyStaff\Provider\StaffMainBarProvider\getStaticSubItems().
ILIAS\MyStaff\ilMyStaffAccess::getUsersForUser | ( | int | $user_id, |
?int | $position_id = null |
||
) |
Definition at line 423 of file class.ilMyStaffAccess.php.
References $DIC, $q, $user_id, ILIAS\MyStaff\ilMyStaffAccess\buildTempTableOrguMemberships(), and null.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\buildTempTableIlobjectsUserMatrixForUserOperationAndContext(), ILIAS\MyStaff\ilMyStaffAccess\getUsersForUserPerPosition(), and ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToUser().
ILIAS\MyStaff\ilMyStaffAccess::getUsersForUserOperationAndContext | ( | int | $user_id, |
string | $org_unit_operation_string, | ||
string | $context, | ||
string | $tmp_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX |
||
) |
Definition at line 378 of file class.ilMyStaffAccess.php.
References $DIC, $q, and ILIAS\MyStaff\ilMyStaffAccess\buildTempTableIlobjectsUserMatrixForUserOperationAndContext().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser().
ILIAS\MyStaff\ilMyStaffAccess::getUsersForUserPerPosition | ( | int | $user_id | ) |
Definition at line 406 of file class.ilMyStaffAccess.php.
References ilOrgUnitUserAssignmentQueries\getInstance(), and ILIAS\MyStaff\ilMyStaffAccess\getUsersForUser().
ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToCertificates | ( | ) |
Definition at line 120 of file class.ilMyStaffAccess.php.
References $DIC, and ilOrgUnitOperation\OP_VIEW_CERTIFICATES.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToMyStaff().
ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToCompetences | ( | ) |
Definition at line 207 of file class.ilMyStaffAccess.php.
References $DIC, and ilOrgUnitOperation\OP_VIEW_COMPETENCES.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToMyStaff().
ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser | ( | ) |
Definition at line 316 of file class.ilMyStaffAccess.php.
References $DIC, ILIAS\MyStaff\ilMyStaffAccess\getUsersForUserOperationAndContext(), and ilOrgUnitOperation\OP_READ_LEARNING_PROGRESS.
ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToCourseMemberships | ( | ) |
Definition at line 263 of file class.ilMyStaffAccess.php.
References $DIC.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToMyStaff().
ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToLearningProgressInObject | ( | int | $ref_id = 0 | ) |
Definition at line 309 of file class.ilMyStaffAccess.php.
References $DIC, $ref_id, and ilOrgUnitOperation\OP_READ_LEARNING_PROGRESS.
ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToMyStaff | ( | ) |
Definition at line 89 of file class.ilMyStaffAccess.php.
References $DIC, ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToCertificates(), ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToCompetences(), ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToCourseMemberships(), ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToStaffList(), and ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToTalks().
ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToStaffList | ( | ) |
Definition at line 284 of file class.ilMyStaffAccess.php.
References ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToUser().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToMyStaff().
ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToTalks | ( | ) |
Definition at line 166 of file class.ilMyStaffAccess.php.
References $DIC, ilOrgUnitOperation\OP_CREATE_EMPLOYEE_TALK, ilOrgUnitOperation\OP_EDIT_EMPLOYEE_TALK, and ilOrgUnitOperation\OP_READ_EMPLOYEE_TALK.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToMyStaff().
ILIAS\MyStaff\ilMyStaffAccess::hasCurrentUserAccessToUser | ( | int | $usr_id | ) |
Definition at line 289 of file class.ilMyStaffAccess.php.
References $DIC, and ILIAS\MyStaff\ilMyStaffAccess\getUsersForUser().
Referenced by ILIAS\MyStaff\ilMyStaffAccess\hasCurrentUserAccessToStaffList().
ILIAS\MyStaff\ilMyStaffAccess::hasPositionDefaultPermissionForOperationInContext | ( | int | $position_id, |
int | $operation_id, | ||
int | $context_id | ||
) |
Definition at line 579 of file class.ilMyStaffAccess.php.
Referenced by ILIAS\MyStaff\ilMyStaffAccess\getIdsForPositionAndOperation().
|
static |
Definition at line 82 of file class.ilMyStaffAccess.php.
References $DIC.
Referenced by ILIAS\MyStaff\Provider\StaffMainBarProvider\getStaticSubItems().
|
staticprotected |
Definition at line 48 of file class.ilMyStaffAccess.php.
|
protected |
Definition at line 50 of file class.ilMyStaffAccess.php.
const string ILIAS\MyStaff\ilMyStaffAccess::ACCESS_ENROLMENTS_ORG_UNIT_OPERATION = ilOrgUnitOperation::OP_ACCESS_ENROLMENTS |
Definition at line 40 of file class.ilMyStaffAccess.php.
Referenced by ILIAS\MyStaff\ListCourses\ilMStListCourses\getData().
const string ILIAS\MyStaff\ilMyStaffAccess::COURSE_CONTEXT = ilOrgUnitOperationContext::CONTEXT_CRS |
Definition at line 41 of file class.ilMyStaffAccess.php.
Referenced by ILIAS\MyStaff\ListCourses\ilMStListCourses\getData().
const string ILIAS\MyStaff\ilMyStaffAccess::EMPLOYEE_TALK_CONTEXT = ilOrgUnitOperationContext::CONTEXT_ETAL |
Definition at line 46 of file class.ilMyStaffAccess.php.
const string ILIAS\MyStaff\ilMyStaffAccess::EXERCISE_CONTEXT = ilOrgUnitOperationContext::CONTEXT_EXC |
Definition at line 42 of file class.ilMyStaffAccess.php.
const string ILIAS\MyStaff\ilMyStaffAccess::GROUP_CONTEXT = ilOrgUnitOperationContext::CONTEXT_GRP |
Definition at line 43 of file class.ilMyStaffAccess.php.
const string ILIAS\MyStaff\ilMyStaffAccess::SURVEY_CONTEXT = ilOrgUnitOperationContext::CONTEXT_SVY |
Definition at line 44 of file class.ilMyStaffAccess.php.
const string ILIAS\MyStaff\ilMyStaffAccess::TEST_CONTEXT = ilOrgUnitOperationContext::CONTEXT_TST |
Definition at line 45 of file class.ilMyStaffAccess.php.
const string ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS = 'tmp_crs_members' |
Definition at line 37 of file class.ilMyStaffAccess.php.
const string ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_DEFAULT_PERMISSIONS = 'tmp_obj_def_perm' |
Definition at line 35 of file class.ilMyStaffAccess.php.
const string ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS = 'tmp_obj_spec_perm' |
Definition at line 34 of file class.ilMyStaffAccess.php.
const string ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX = 'tmp_obj_user_matr' |
Definition at line 39 of file class.ilMyStaffAccess.php.
const string ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_ORGU_DEFAULT_PERMISSIONS = 'tmp_orgu_def_perm' |
Definition at line 36 of file class.ilMyStaffAccess.php.
const string ILIAS\MyStaff\ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS = 'tmp_orgu_members' |
Definition at line 38 of file class.ilMyStaffAccess.php.