ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Class ilObjCourseAccess. More...
Public Member Functions | |
__construct () | |
_checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null) | |
![]() | |
_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 | getConditionOperators () |
Get operators. More... | |
static | checkCondition (int $a_trigger_obj_id, string $a_operator, string $a_value, int $a_usr_id) |
static | _getCommands () |
static | _checkGoto (string $target) |
static | _lookupViewMode (int $a_id) |
static | _isActivated (int $a_obj_id, ?bool &$a_visible_flag=null, bool $a_mind_member_view=true) |
static | _registrationEnabled (int $a_obj_id) |
static | lookupRegistrationInfo (int $a_obj_id) |
static | _isOffline (int $obj_id) |
static | _preloadData (array $obj_ids, array $ref_ids) |
Preload data. More... | |
static | getBookingInfoRepo () |
static | _usingRegistrationCode () |
static | lookupPeriodInfo (int $a_obj_id) |
![]() | |
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 Member Functions | |
isObjectiveResultRangeAchieved (int $user_id, int $trigger_obj_id, string $a_value) | |
Protected Attributes | |
ilAccessHandler | $access |
ilObjUser | $user |
ilLanguage | $lng |
ilRbacSystem | $rbacSystem |
Static Protected Attributes | |
static bool | $using_code = false |
static ILIAS BookingManager Reservations ReservationDBRepository | $booking_repo = null |
ilObjCourseAccess::__construct | ( | ) |
Definition at line 36 of file class.ilObjCourseAccess.php.
References $DIC, ILIAS\Repository\access(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
ilObjCourseAccess::_checkAccess | ( | string | $cmd, |
string | $permission, | ||
int | $ref_id, | ||
int | $obj_id, | ||
?int | $user_id = null |
||
) |
Definition at line 103 of file class.ilObjCourseAccess.php.
References $user_id, ilCourseParticipants\_getInstanceByObjId(), ilCourseParticipant\_getInstanceByObjId(), ilWaitingList\_isOnList(), ILIAS\Repository\access(), ilDatePresentation\formatDate(), ilAccessInfo\IL_NO_OBJECT_ACCESS, ilAccessInfo\IL_STATUS_INFO, ILIAS\Repository\lng(), ilObjCourse\mayLeave(), null, and ILIAS\Repository\user().
|
static |
Definition at line 244 of file class.ilObjCourseAccess.php.
References $DIC, and ANONYMOUS_USER_ID.
|
static |
Definition at line 215 of file class.ilObjCourseAccess.php.
References ilDAVActivationChecker\_isActive().
Referenced by ilObjCourseReferenceAccess\_getCommands(), and ilObjCourseListGUI\init().
|
static |
Definition at line 287 of file class.ilObjCourseAccess.php.
References $ref_id, ilObject\_getAllReferences(), ilMemberViewSettings\getInstance(), ilObjectActivation\getItem(), and ilObjectActivation\TIMINGS_ACTIVATION.
Referenced by ilObjCourse\_isActivated(), ilPortfolioPageGUI\getCoursesOfUser(), and ilObjCourse\register().
|
static |
Definition at line 417 of file class.ilObjCourseAccess.php.
References null.
Referenced by ilObjCourse\register().
|
static |
Definition at line 273 of file class.ilObjCourseAccess.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and ilContainer\VIEW_DEFAULT.
Referenced by ilObjFolder\getViewMode(), ilObjGroup\getViewMode(), and ilObjGroupGUI\initForm().
|
static |
Preload data.
Definition at line 426 of file class.ilObjCourseAccess.php.
References $DIC, ilWaitingList\_preloadOnListInfo(), and ilLanguage\loadLanguageModule().
|
static |
Definition at line 315 of file class.ilObjCourseAccess.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, ilCourseConstants\IL_CRS_SUBSCRIPTION_DEACTIVATED, ilCourseConstants\IL_CRS_SUBSCRIPTION_LIMITED, ilCourseConstants\IL_CRS_SUBSCRIPTION_UNLIMITED, and null.
Referenced by ilObjCourse\_registrationEnabled().
|
static |
Definition at line 449 of file class.ilObjCourseAccess.php.
Referenced by ilObjCourse\register().
|
static |
Implements ilConditionHandling.
Definition at line 61 of file class.ilObjCourseAccess.php.
References ilParticipants\_hasPassed(), ilConditionHandler\OPERATOR_PASSED, and ilConditionHandler\OPERATOR_RESULT_RANGE_PERCENTAGE.
|
static |
Definition at line 444 of file class.ilObjCourseAccess.php.
Referenced by ilObjCourseListGUI\getProperties().
|
static |
Get operators.
Implements ilConditionHandling.
Definition at line 50 of file class.ilObjCourseAccess.php.
References ilConditionHandler\OPERATOR_PASSED, and ilConditionHandler\OPERATOR_RESULT_RANGE_PERCENTAGE.
|
protected |
Definition at line 78 of file class.ilObjCourseAccess.php.
References ilLOUserResults\lookupResult(), and ilLOSettings\TYPE_TEST_QUALIFIED.
|
static |
Definition at line 454 of file class.ilObjCourseAccess.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, ilDatePresentation\formatPeriod(), IL_CAL_DATETIME, ilLanguage\loadLanguageModule(), null, ilDBConstants\T_INTEGER, ilLanguage\txt(), and ilTimeZone\UTC.
Referenced by ilCourseMailTemplateMemberContext\getCachedPeriodByObjId(), ilCourseMailTemplateTutorContext\getCachedPeriodByObjId(), and ilObjCourseListGUI\getProperties().
|
static |
Definition at line 350 of file class.ilObjCourseAccess.php.
References $DIC, $ilDB, $res, ilDateTime\_before(), ilCourseParticipant\_getInstanceByObjId(), ilDBConstants\FETCHMODE_OBJECT, ilDatePresentation\formatDate(), IL_CAL_UNIX, ILIAS\Repository\int(), ilWaitingList\lookupListSize(), ilCourseConstants\SUBSCRIPTION_LIMITED, ilCourseConstants\SUBSCRIPTION_UNLIMITED, ilDBConstants\T_INTEGER, and ilLanguage\txt().
Referenced by ilCourseRegistrationGUI\fillMaxMembers(), ilObjCourseListGUI\getProperties(), and ilObjCourseGUI\infoScreen().
|
protected |
Definition at line 31 of file class.ilObjCourseAccess.php.
|
staticprotected |
Definition at line 29 of file class.ilObjCourseAccess.php.
|
protected |
Definition at line 33 of file class.ilObjCourseAccess.php.
|
protected |
Definition at line 34 of file class.ilObjCourseAccess.php.
|
protected |
Definition at line 32 of file class.ilObjCourseAccess.php.
|
staticprotected |
Definition at line 28 of file class.ilObjCourseAccess.php.