ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilMyStaffAccess. More...
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... | ||||
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 | 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().
Referenced by getUsersForUser().
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().
ilMyStaffAccess::countOrgusOfUserWithAtLeastOneOperation | ( | $user_id | ) |
int | $user_id |
Definition at line 138 of file class.ilMyStaffAccess.php.
References $context, $DIC, and ilOrgUnitOperationQueries\findByOperationString().
ilMyStaffAccess::dropTempTable | ( | $temporary_table_name | ) |
string | $temporary_table_name |
Definition at line 678 of file class.ilMyStaffAccess.php.
References $DIC.
Referenced by buildTempTableCourseMemberships(), buildTempTableOrguMemberships(), and getUsersForUser().
|
static |
Definition at line 31 of file class.ilMyStaffAccess.php.
References $DIC.
Referenced by ilMStListCoursesTableGUI\__construct(), ilMStListUsersTableGUI\__construct(), ilMStShowUserCoursesTableGUI\__construct(), ilMStListCoursesGUI\__construct(), ilMStListUsersGUI\__construct(), ilMStShowUserGUI\__construct(), ilMStListCourses\getData(), ilUserUtil\getPossibleStartingPoints(), ilStaffGlobalScreenProvider\getStaticSubItems(), ilMyStaffGUI\getUserLpStatusAsHtml(), and ilMyStaffGUI\getUserLpStatusAsText().
ilMyStaffAccess::getUsersForUser | ( | $user_id | ) |
int | $user_id |
Definition at line 217 of file class.ilMyStaffAccess.php.
References $context, $DIC, $GLOBALS, buildTempTableCourseMemberships(), buildTempTableOrguMemberships(), dropTempTable(), ilOrgUnitOperationQueries\findByOperationString(), ilOrgUnitOperation\OP_ACCESS_ENROLMENTS, and user().
Referenced by hasCurrentUserAccessToUser().
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 $context, and $DIC.
Referenced by hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser().
ilMyStaffAccess::hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser | ( | ) |
Definition at line 119 of file class.ilMyStaffAccess.php.
References $DIC, getUsersForUserOperationAndContext(), and ilOrgUnitOperation\OP_READ_LEARNING_PROGRESS.
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.
ilMyStaffAccess::hasCurrentUserAccessToUser | ( | $usr_id = 0 | ) |
int | $usr_id |
Definition at line 91 of file class.ilMyStaffAccess.php.
References $DIC, and getUsersForUser().
|
staticprotected |
Definition at line 21 of file class.ilMyStaffAccess.php.
|
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.