|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilMyStaffAccess. More...
Inheritance diagram for ilMyStaffAccess:
Collaboration diagram for ilMyStaffAccess:Public Member Functions | |
| hasCurrentUserAccessToMyStaff () | |
| hasCurrentUserAccessToUser ($usr_id=0) | |
| hasCurrentUserAccessToLearningProgressInObject ($ref_id=0) | |
| hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser () | |
| countOrgusOfUserWithAtLeastOneOperation ($user_id) | |
| getUsersForUserOperationAndContext ($user_id, $org_unit_operation_string=self::DEFAULT_ORG_UNIT_OPERATION, $context=self::DEFAULT_CONTEXT, $tmp_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX) | |
| getUsersForUser ($user_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... | |
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. 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 | DEFAULT_ORG_UNIT_OPERATION = ilOrgUnitOperation::OP_ACCESS_ENROLMENTS |
| const | DEFAULT_CONTEXT = 'crs' |
Static Protected Attributes | |
| static | $instance = null |
| static | $orgu_users_of_current_user_show_staff_permission |
Private Member Functions | |
| __construct () | |
Class ilMyStaffAccess.
Definition at line 8 of file class.ilMyStaffAccess.php.
|
private |
Definition at line 57 of file class.ilMyStaffAccess.php.
| 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 593 of file class.ilMyStaffAccess.php.
References $DIC, and dropTempTable().
Here is the call graph for this function:| 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 634 of file class.ilMyStaffAccess.php.
References $DIC, and dropTempTable().
Referenced by getUsersForUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMyStaffAccess::countOrgusOfUserWithAtLeastOneOperation | ( | $user_id | ) |
| int | $user_id |
Definition at line 138 of file class.ilMyStaffAccess.php.
References $DIC.
| ilMyStaffAccess::dropTempTable | ( | $temporary_table_name | ) |
| string | $temporary_table_name |
Definition at line 678 of file class.ilMyStaffAccess.php.
References $DIC.
Referenced by buildTempTableCourseMemberships(), and buildTempTableOrguMemberships().
Here is the caller graph for this function:
|
static |
Definition at line 31 of file class.ilMyStaffAccess.php.
References $DIC, and $instance.
Referenced by ilMStListCoursesGUI\__construct(), ilMStListUsersGUI\__construct(), ilMStShowUserGUI\__construct(), ilMStListCoursesTableGUI\__construct(), ilMStListUsersTableGUI\__construct(), ilMStShowUserCoursesTableGUI\__construct(), ilMStListCourses\getData(), ilUserUtil\getPossibleStartingPoints(), ilMyStaffGUI\getUserLpStatusAsHtml(), ilMyStaffGUI\getUserLpStatusAsText(), and ilMainMenuGUI\renderEntry().
Here is the caller graph for this function:| ilMyStaffAccess::getUsersForUser | ( | $user_id | ) |
| int | $user_id |
Definition at line 217 of file class.ilMyStaffAccess.php.
References $DIC, and buildTempTableOrguMemberships().
Referenced by hasCurrentUserAccessToUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMyStaffAccess::getUsersForUserOperationAndContext | ( | $user_id, | |
$org_unit_operation_string = self::DEFAULT_ORG_UNIT_OPERATION, |
|||
$context = self::DEFAULT_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 192 of file class.ilMyStaffAccess.php.
References $DIC.
Referenced by hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser().
Here is the caller graph for this function:| ilMyStaffAccess::hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser | ( | ) |
Definition at line 119 of file class.ilMyStaffAccess.php.
References $DIC, getUsersForUserOperationAndContext(), and ilOrgUnitOperation\OP_READ_LEARNING_PROGRESS.
Here is the call graph for this function:| ilMyStaffAccess::hasCurrentUserAccessToLearningProgressInObject | ( | $ref_id = 0 | ) |
| int | $ref_id |
Definition at line 108 of file class.ilMyStaffAccess.php.
References $DIC, and ilOrgUnitOperation\OP_READ_LEARNING_PROGRESS.
| ilMyStaffAccess::hasCurrentUserAccessToMyStaff | ( | ) |
Definition at line 65 of file class.ilMyStaffAccess.php.
References $DIC, ilOrgUnitOperationQueries\findByOperationString(), and ilOrgUnitOperation\OP_ACCESS_ENROLMENTS.
Here is the call graph for this function:| ilMyStaffAccess::hasCurrentUserAccessToUser | ( | $usr_id = 0 | ) |
| int | $usr_id |
Definition at line 91 of file class.ilMyStaffAccess.php.
References $DIC, and getUsersForUser().
Here is the call graph for this function:
|
staticprotected |
Definition at line 21 of file class.ilMyStaffAccess.php.
Referenced by getInstance().
|
staticprotected |
Definition at line 25 of file class.ilMyStaffAccess.php.
| const ilMyStaffAccess::DEFAULT_CONTEXT = 'crs' |
Definition at line 17 of file class.ilMyStaffAccess.php.
Referenced by ilMStListCoursesGUI\getActions(), ilMStListCourses\getData(), ilMStListCoursesTableGUI\initFilter(), ilMStShowUserCoursesTableGUI\initFilter(), and ilMStShowUserCoursesTableGUI\parseData().
| const ilMyStaffAccess::DEFAULT_ORG_UNIT_OPERATION = ilOrgUnitOperation::OP_ACCESS_ENROLMENTS |
Definition at line 16 of file class.ilMyStaffAccess.php.
| const ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS = 'tmp_crs_members' |
Definition at line 13 of file class.ilMyStaffAccess.php.
| const ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_DEFAULT_PERMISSIONS = 'tmp_obj_def_perm' |
Definition at line 11 of file class.ilMyStaffAccess.php.
| const ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS = 'tmp_obj_spec_perm' |
Definition at line 10 of file class.ilMyStaffAccess.php.
| const ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX = 'tmp_obj_user_matr' |
Definition at line 15 of file class.ilMyStaffAccess.php.
Referenced by ilMStListCourses\getData().
| const ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_ORGU_DEFAULT_PERMISSIONS = 'tmp_orgu_def_perm' |
Definition at line 12 of file class.ilMyStaffAccess.php.
| const ilMyStaffAccess::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS = 'tmp_orgu_members' |
Definition at line 14 of file class.ilMyStaffAccess.php.