|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Handle user timings. More...
Collaboration diagram for ilTimingsUser: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().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:| ilTimingsUser::getItemIds | ( | ) |
Definition at line 65 of file class.ilTimingsUser.php.
References $item_ids.
Referenced by handleNewMembership().
Here is the caller graph for this function:
|
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, $type, ilLPObjSettings\_lookupDBModeForObjects(), ilObjectLP\getInstance(), ilObjectLP\isSupportedObjectType(), ilLPObjSettings\LP_MODE_DEACTIVATED, and ilLPObjSettings\LP_MODE_UNDEFINED.
Referenced by lookupTimings().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:| ilTimingsUser::handleUnsubscribe | ( | $a_usr_id | ) |
Handle unsubscribe.
| type | $a_usr_id |
Definition at line 121 of file class.ilTimingsUser.php.
| ilTimingsUser::init | ( | ) |
Init activation items.
Definition at line 73 of file class.ilTimingsUser.php.
References $GLOBALS, getContainerRefId(), and ilObjectActivation\preloadData().
Here is the call graph for this function:
|
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, ilLPStatus\_lookupCompletedForObject(), ilLogLevel\DEBUG, getObjectsWithInactiveLP(), 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
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().