ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Class ilObjCourseAccess. More...
Public Member Functions | |
__construct () | |
_checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null) | |
@inheritDoc More... | |
![]() | |
_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) | |
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) |
@inheritDoc More... | |
static | _getCommands () |
@inheritDoc More... | |
static | _checkGoto (string $target) |
@inheritDoc More... | |
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) |
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... | |
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... | |
static | getConditionOperators () |
Returns an array with valid operators for the specific object type. More... | |
static | checkCondition (int $a_trigger_obj_id, string $a_operator, string $a_value, int $a_usr_id) |
check condition for a specific user and object 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 |
||
) |
@inheritDoc
Reimplemented from ilObjectAccess.
Definition at line 103 of file class.ilObjCourseAccess.php.
References $ref_id, $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(), and ILIAS\Repository\user().
|
static |
@inheritDoc
Reimplemented from ilObjectAccess.
Definition at line 244 of file class.ilObjCourseAccess.php.
References $DIC, and ANONYMOUS_USER_ID.
|
static |
@inheritDoc
Reimplemented from ilObjectAccess.
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(), and ilObjCourse\register().
|
static |
Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling.
Used in ListGUI and Learning Progress
Reimplemented from ilObjectAccess.
Definition at line 417 of file class.ilObjCourseAccess.php.
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.
Reimplemented from ilObjectAccess.
Definition at line 426 of file class.ilObjCourseAccess.php.
References $DIC, $lng, and ilWaitingList\_preloadOnListInfo().
|
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, and ilCourseConstants\IL_CRS_SUBSCRIPTION_UNLIMITED.
Referenced by ilObjCourse\_registrationEnabled().
|
static |
Definition at line 449 of file class.ilObjCourseAccess.php.
Referenced by ilObjCourse\register().
|
static |
@inheritDoc
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 $user_id, ilLOUserResults\lookupResult(), and ilLOSettings\TYPE_TEST_QUALIFIED.
|
static |
Definition at line 454 of file class.ilObjCourseAccess.php.
References $DIC, $ilDB, $lng, $res, ilDBConstants\FETCHMODE_OBJECT, ilDatePresentation\formatPeriod(), IL_CAL_DATETIME, ilDBConstants\T_INTEGER, 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, $info, $lng, $res, ilDateTime\_before(), ilCourseParticipant\_getInstanceByObjId(), ilDBConstants\FETCHMODE_OBJECT, ilDatePresentation\formatDate(), IL_CAL_UNIX, ILIAS\Repository\int(), ilWaitingList\lookupListSize(), ilCourseConstants\SUBSCRIPTION_LIMITED, ilCourseConstants\SUBSCRIPTION_UNLIMITED, and ilDBConstants\T_INTEGER.
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.