ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Handle user timings. More...
Public Member Functions | |
getContainerObjId () | |
Get container obj id. More... | |
getContainerRefId () | |
Get container ref_id. More... | |
getItemIds () | |
init () | |
Init activation items. More... | |
handleNewMembership ($a_usr_id, ilDateTime $sub_date) | |
handleUnsubscribe ($a_usr_id) | |
Handle unsubscribe. More... | |
Static Public Member Functions | |
static | getInstanceByContainerId ($a_container_obj_id) |
Get instance by container id. More... | |
static | lookupTimingsExceededByUser (array $a_user_ids) |
Check if users currently exceeded ANY object. More... | |
static | lookupTimings (array $a_user_ids, array &$a_meta=null, $a_only_exceeded=true) |
Lookup references, users with exceeded timings. More... | |
static | getObjectsWithInactiveLP (array $a_ref_ids, array &$a_obj_map=null) |
Check object LP modes. More... | |
Protected Member Functions | |
__construct ($a_container_obj_id) | |
Singleton constructor. More... | |
Private Attributes | |
$container_obj_id = 0 | |
$container_ref_id = 0 | |
$initialized = false | |
$item_ids = array() | |
Static Private Attributes | |
static | $instances = array() |
|
protected |
Singleton constructor.
Definition at line 28 of file class.ilTimingsUser.php.
References ilObject\_getAllReferences().
ilTimingsUser::getContainerObjId | ( | ) |
Get container obj id.
Definition at line 52 of file class.ilTimingsUser.php.
References $container_obj_id.
ilTimingsUser::getContainerRefId | ( | ) |
Get container ref_id.
Definition at line 60 of file class.ilTimingsUser.php.
References $container_ref_id.
Referenced by init().
|
static |
Get instance by container id.
int | $a_container_obj_id |
Definition at line 41 of file class.ilTimingsUser.php.
Referenced by ilCourseAppEventListener\destroyTimings(), and ilCourseAppEventListener\initializeTimings().
ilTimingsUser::getItemIds | ( | ) |
Definition at line 65 of file class.ilTimingsUser.php.
References $item_ids.
Referenced by handleNewMembership().
|
static |
Check object LP modes.
int[] | $a_ref_ids | |
array | &$a_obj_map |
Definition at line 345 of file class.ilTimingsUser.php.
References $DIC, $ilDB, $query, $res, $row, $type, ilLPObjSettings\_lookupDBModeForObjects(), ilObjectLP\getInstance(), ilObjectLP\isSupportedObjectType(), ilLPObjSettings\LP_MODE_DEACTIVATED, and ilLPObjSettings\LP_MODE_UNDEFINED.
ilTimingsUser::handleNewMembership | ( | $a_usr_id, | |
ilDateTime | $sub_date | ||
) |
int | $a_usr_id | |
ilDateTime | $sub_date |
ilDateTimeException |
Definition at line 92 of file class.ilTimingsUser.php.
References ilObjectActivation\getItem(), getItemIds(), IL_CAL_DAY, IL_CAL_UNIX, ilDateTime\increment(), and ilObjectActivation\TIMINGS_PRESETTING.
ilTimingsUser::handleUnsubscribe | ( | $a_usr_id | ) |
ilTimingsUser::init | ( | ) |
Init activation items.
Definition at line 73 of file class.ilTimingsUser.php.
References $GLOBALS, getContainerRefId(), and ilObjectActivation\preloadData().
|
static |
Lookup references, users with exceeded timings.
int[] | $a_user_ids | |
array | &$a_meta | |
bool | $a_only_exceeded |
Definition at line 160 of file class.ilTimingsUser.php.
References $DIC, $ilDB, $query, $res, $row, ilLPStatus\_lookupCompletedForObject(), ilLogLevel\DEBUG, ilParticipants\getUserMembershipAssignmentsByType(), ilCourseConstants\IL_CRS_VIEW_TIMING, ilCourseConstants\IL_CRS_VIEW_TIMING_ABSOLUTE, ilCourseConstants\IL_CRS_VIEW_TIMING_RELATIVE, and ilObjectActivation\TIMINGS_PRESETTING.
Referenced by ilTimingsCronReminder\getExceededObjectsForUser(), and ilTimingsCronReminder\getObjectsWithTimingsForUser().
|
static |
Check if users currently exceeded ANY object.
int[] | $a_user_ids |
Definition at line 139 of file class.ilTimingsUser.php.
References $res.
Referenced by ilTimingsCronReminder\gatherUsersWithExceededTimings().
|
private |
Definition at line 16 of file class.ilTimingsUser.php.
Referenced by getContainerObjId().
|
private |
Definition at line 17 of file class.ilTimingsUser.php.
Referenced by getContainerRefId().
|
private |
Definition at line 19 of file class.ilTimingsUser.php.
|
staticprivate |
Definition at line 14 of file class.ilTimingsUser.php.
|
private |
Definition at line 20 of file class.ilTimingsUser.php.
Referenced by getItemIds().