ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
|
Public Member Functions | |
__construct (private readonly ilObjUser $user, private readonly ilDBInterface $db, private readonly LoggingServices $log, private readonly ilTree $tree, private readonly ilRbacReview $rbac_review, private readonly ilRbacSystem $rbac_system, private readonly ilSetting $settings) | |
getStartingPointById (?int $id) | |
getStartingPoints () | |
getDefaultStartingPointID () | |
getUserStartingPointID () | |
onRoleDeleted (ilObjRole $role) | |
getGlobalRolesWithoutStartingPoint () | |
save (ilUserStartingPoint $starting_point) | |
update (ilUserStartingPoint $starting_point) | |
update starting point More... | |
delete (int $starting_point_id) | |
getMaxPosition () | |
reArrangePositions (array $a_items) | |
saveOrder (array $a_items) | |
getPossibleStartingPoints (bool $force_all=false) | |
getSystemDefaultStartingPointType () | |
getValidAndAccessibleStartingPointAsUrl () | |
getSystemDefaultStartingObject () | |
getSystemDefaultCalendarView () | |
Get specific view of calendar starting point. More... | |
getSystemDefaultCalendarPeriod () | |
Get time frame of calendar view. More... | |
togglePersonalStartingPointActivation (bool $value) | |
Toggle personal starting point setting. More... | |
isPersonalStartingPointEnabled () | |
isCurrentUserPersonalStartingPointEnabled () | |
Did user set any personal starting point (yet)? More... | |
getCurrentUserPersonalStartingPoint () | |
Get current personal starting point. More... | |
setCurrentUserPersonalStartingPoint (int $starting_point_type, ?int $ref_id=null) | |
Set personal starting point setting. More... | |
getCurrentUserPersonalStartingObject () | |
Get ref id of personal starting object. More... | |
Data Fields | |
const | START_PD_CALENDAR = 10 |
const | START_REPOSITORY_OBJ = 16 |
Private Member Functions | |
getRolesWithStartingPoint () | |
getFallbackStartingPointType () | |
setSystemDefaultStartingPoint (ilUserStartingPoint $starting_point) | |
getApplicableStartingPointTypeInfo () | |
getFirstRoleWithStartingPointForUserId (int $user_id) | |
getLinkUrlByStartingPointTypeInfo (array $starting_point) | |
Private Attributes | |
const | START_PD_OVERVIEW = 1 |
const | START_PD_SUBSCRIPTION = 2 |
const | START_PD_NOTES = 4 |
const | START_PD_NEWS = 5 |
const | START_PD_WORKSPACE = 6 |
const | START_PD_PORTFOLIO = 7 |
const | START_PD_SKILLS = 8 |
const | START_PD_LP = 9 |
const | START_PD_MAIL = 11 |
const | START_PD_CONTACTS = 12 |
const | START_PD_PROFILE = 13 |
const | START_PD_SETTINGS = 14 |
const | START_REPOSITORY = 15 |
const | START_PD_MYSTAFF = 17 |
const | ORDER_POSITION_MIN = 0 |
const | ORDER_POSITION_MAX = 9999 |
const | USER_STARTING_POINT_ID = -1 |
const | DEFAULT_STARTING_POINT_ID = 0 |
const | URL_LINKS_BY_TYPE |
bool | $current_user_has_access_to_my_staff |
Definition at line 25 of file class.ilUserStartingPointRepository.php.
ilUserStartingPointRepository::__construct | ( | private readonly ilObjUser | $user, |
private readonly ilDBInterface | $db, | ||
private readonly LoggingServices | $log, | ||
private readonly ilTree | $tree, | ||
private readonly ilRbacReview | $rbac_review, | ||
private readonly ilRbacSystem | $rbac_system, | ||
private readonly ilSetting | $settings | ||
) |
ilUserStartingPointRepository::delete | ( | int | $starting_point_id | ) |
Definition at line 289 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 446 of file class.ilUserStartingPointRepository.php.
References getCurrentUserPersonalStartingObject(), getCurrentUserPersonalStartingPoint(), getFirstRoleWithStartingPointForUserId(), getSystemDefaultCalendarPeriod(), getSystemDefaultCalendarView(), getSystemDefaultStartingObject(), getSystemDefaultStartingPointType(), isPersonalStartingPointEnabled(), and ILIAS\Repository\user().
Referenced by getValidAndAccessibleStartingPointAsUrl().
ilUserStartingPointRepository::getCurrentUserPersonalStartingObject | ( | ) |
Get ref id of personal starting object.
Definition at line 597 of file class.ilUserStartingPointRepository.php.
References null, and ILIAS\Repository\user().
Referenced by getApplicableStartingPointTypeInfo().
ilUserStartingPointRepository::getCurrentUserPersonalStartingPoint | ( | ) |
Get current personal starting point.
Definition at line 553 of file class.ilUserStartingPointRepository.php.
References $valid, getPossibleStartingPoints(), null, and ILIAS\Repository\user().
Referenced by getApplicableStartingPointTypeInfo().
ilUserStartingPointRepository::getDefaultStartingPointID | ( | ) |
Definition at line 133 of file class.ilUserStartingPointRepository.php.
Referenced by save(), and update().
|
private |
Definition at line 375 of file class.ilUserStartingPointRepository.php.
References ILIAS\Repository\settings().
Referenced by getSystemDefaultStartingPointType(), and getValidAndAccessibleStartingPointAsUrl().
|
private |
Definition at line 474 of file class.ilUserStartingPointRepository.php.
References getRolesWithStartingPoint().
Referenced by getApplicableStartingPointTypeInfo().
ilUserStartingPointRepository::getGlobalRolesWithoutStartingPoint | ( | ) |
Definition at line 181 of file class.ilUserStartingPointRepository.php.
References ANONYMOUS_ROLE_ID, and getRolesWithStartingPoint().
|
private |
Definition at line 486 of file class.ilUserStartingPointRepository.php.
References $url, and ilLink\_getStaticLink().
Referenced by getValidAndAccessibleStartingPointAsUrl().
ilUserStartingPointRepository::getMaxPosition | ( | ) |
Definition at line 295 of file class.ilUserStartingPointRepository.php.
References ILIAS\Repository\int().
Referenced by save().
ilUserStartingPointRepository::getPossibleStartingPoints | ( | bool | $force_all = false | ) |
Definition at line 335 of file class.ilUserStartingPointRepository.php.
References ilCalendarSettings\_getInstance(), and ILIAS\Repository\settings().
Referenced by getCurrentUserPersonalStartingPoint(), getSystemDefaultStartingPointType(), setCurrentUserPersonalStartingPoint(), and setSystemDefaultStartingPoint().
|
private |
Definition at line 158 of file class.ilUserStartingPointRepository.php.
References $res, and ILIAS\Repository\int().
Referenced by getFirstRoleWithStartingPointForUserId(), getGlobalRolesWithoutStartingPoint(), and onRoleDeleted().
ilUserStartingPointRepository::getStartingPointById | ( | ?int | $id | ) |
Definition at line 76 of file class.ilUserStartingPointRepository.php.
References $res, getSystemDefaultCalendarPeriod(), getSystemDefaultCalendarView(), getSystemDefaultStartingObject(), getSystemDefaultStartingPointType(), and null.
ilUserStartingPointRepository::getStartingPoints | ( | ) |
Definition at line 110 of file class.ilUserStartingPointRepository.php.
References $res.
ilUserStartingPointRepository::getSystemDefaultCalendarPeriod | ( | ) |
Get time frame of calendar view.
Definition at line 524 of file class.ilUserStartingPointRepository.php.
References ILIAS\Repository\settings().
Referenced by getApplicableStartingPointTypeInfo(), and getStartingPointById().
ilUserStartingPointRepository::getSystemDefaultCalendarView | ( | ) |
Get specific view of calendar starting point.
Definition at line 516 of file class.ilUserStartingPointRepository.php.
References ILIAS\Repository\settings().
Referenced by getApplicableStartingPointTypeInfo(), and getStartingPointById().
ilUserStartingPointRepository::getSystemDefaultStartingObject | ( | ) |
Definition at line 508 of file class.ilUserStartingPointRepository.php.
References ILIAS\Repository\settings().
Referenced by getApplicableStartingPointTypeInfo(), and getStartingPointById().
ilUserStartingPointRepository::getSystemDefaultStartingPointType | ( | ) |
Definition at line 360 of file class.ilUserStartingPointRepository.php.
References $valid, ANONYMOUS_USER_ID, getFallbackStartingPointType(), getPossibleStartingPoints(), ILIAS\Repository\int(), setSystemDefaultStartingPoint(), ILIAS\Repository\settings(), and ILIAS\Repository\user().
Referenced by getApplicableStartingPointTypeInfo(), and getStartingPointById().
ilUserStartingPointRepository::getUserStartingPointID | ( | ) |
Definition at line 138 of file class.ilUserStartingPointRepository.php.
ilUserStartingPointRepository::getValidAndAccessibleStartingPointAsUrl | ( | ) |
Definition at line 406 of file class.ilUserStartingPointRepository.php.
References ilObject\_exists(), ilCalendarSettings\_getInstance(), getApplicableStartingPointTypeInfo(), getFallbackStartingPointType(), getLinkUrlByStartingPointTypeInfo(), null, and ILIAS\Repository\user().
Referenced by ilUserUtil\getProfileLink().
ilUserStartingPointRepository::isCurrentUserPersonalStartingPointEnabled | ( | ) |
Did user set any personal starting point (yet)?
Definition at line 545 of file class.ilUserStartingPointRepository.php.
References ILIAS\Repository\user().
ilUserStartingPointRepository::isPersonalStartingPointEnabled | ( | ) |
Definition at line 537 of file class.ilUserStartingPointRepository.php.
References ILIAS\Repository\settings().
Referenced by getApplicableStartingPointTypeInfo().
ilUserStartingPointRepository::onRoleDeleted | ( | ilObjRole | $role | ) |
Definition at line 143 of file class.ilUserStartingPointRepository.php.
References $data, ilObject\getId(), ilObjectFactory\getInstanceByObjId(), getRolesWithStartingPoint(), and null.
ilUserStartingPointRepository::reArrangePositions | ( | array | $a_items | ) |
Definition at line 307 of file class.ilUserStartingPointRepository.php.
ilUserStartingPointRepository::save | ( | ilUserStartingPoint | $starting_point | ) |
Definition at line 208 of file class.ilUserStartingPointRepository.php.
References ilUserStartingPoint\getCalendarPeriod(), ilUserStartingPoint\getCalendarView(), getDefaultStartingPointID(), ilUserStartingPoint\getId(), getMaxPosition(), ilUserStartingPoint\getRuleOptions(), ilUserStartingPoint\getRuleType(), ilUserStartingPoint\getStartingObject(), ilUserStartingPoint\getStartingPointType(), setSystemDefaultStartingPoint(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
ilUserStartingPointRepository::saveOrder | ( | array | $a_items | ) |
Definition at line 319 of file class.ilUserStartingPointRepository.php.
References $id.
ilUserStartingPointRepository::setCurrentUserPersonalStartingPoint | ( | int | $starting_point_type, |
?int | $ref_id = null |
||
) |
Set personal starting point setting.
Definition at line 568 of file class.ilUserStartingPointRepository.php.
References $ref_id, $valid, ilObject\_lookupObjId(), getPossibleStartingPoints(), null, and ILIAS\Repository\user().
|
private |
Definition at line 386 of file class.ilUserStartingPointRepository.php.
References ilUserStartingPoint\getCalendarPeriod(), ilUserStartingPoint\getCalendarView(), getPossibleStartingPoints(), ilUserStartingPoint\getStartingObject(), ilUserStartingPoint\getStartingPointType(), and ILIAS\Repository\settings().
Referenced by getSystemDefaultStartingPointType(), save(), and update().
ilUserStartingPointRepository::togglePersonalStartingPointActivation | ( | bool | $value | ) |
Toggle personal starting point setting.
Definition at line 532 of file class.ilUserStartingPointRepository.php.
References ILIAS\Repository\settings().
ilUserStartingPointRepository::update | ( | ilUserStartingPoint | $starting_point | ) |
update starting point
Definition at line 249 of file class.ilUserStartingPointRepository.php.
References ilUserStartingPoint\getCalendarPeriod(), ilUserStartingPoint\getCalendarView(), getDefaultStartingPointID(), ilUserStartingPoint\getId(), ilUserStartingPoint\getPosition(), ilUserStartingPoint\getRuleOptions(), ilUserStartingPoint\getRuleType(), ilUserStartingPoint\getStartingObject(), ilUserStartingPoint\getStartingPointType(), setSystemDefaultStartingPoint(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
|
private |
Definition at line 58 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 48 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 45 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 44 of file class.ilUserStartingPointRepository.php.
const ilUserStartingPointRepository::START_PD_CALENDAR = 10 |
Definition at line 35 of file class.ilUserStartingPointRepository.php.
Referenced by ilUserStartingPointGUI\getStartingPointSelectionOption(), and ilUserStartingPointGUI\saveStartingPoint().
|
private |
Definition at line 37 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 34 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 36 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 42 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 30 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 29 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 27 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 32 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 38 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 39 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 33 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 28 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 31 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 40 of file class.ilUserStartingPointRepository.php.
const ilUserStartingPointRepository::START_REPOSITORY_OBJ = 16 |
Definition at line 41 of file class.ilUserStartingPointRepository.php.
Referenced by ilPersonalSettingsGUI\checkPersonalStartingPoint(), ilUserRoleStartingPointTableGUI\getItems(), ilUserStartingPointGUI\getStartingPointSelectionOption(), ilPersonalSettingsGUI\initGeneralSettingsForm(), and ilUserStartingPointGUI\saveStartingPoint().
|
private |
Definition at line 50 of file class.ilUserStartingPointRepository.php.
|
private |
Definition at line 47 of file class.ilUserStartingPointRepository.php.