class ilTimingCache
More...
◆ __construct()
ilTimingCache::__construct |
( |
|
$ref_id | ) |
|
◆ _getTimings()
static& ilTimingCache::_getTimings |
( |
|
$a_ref_id | ) |
|
|
static |
◆ _showWarning()
static ilTimingCache::_showWarning |
( |
|
$a_ref_id, |
|
|
|
$a_usr_id |
|
) |
| |
|
static |
- Deprecated:
- 7
- Parameters
-
- Returns
- bool
Definition at line 169 of file class.ilTimingCache.php.
References $end, $obj_id, $timings, _getTimings(), ilLPStatus\_hasUserCompleted(), ilObjectLP\getInstance(), time, and ilObjectActivation\TIMINGS_PRESETTING.
171 global $ilObjDataCache;
173 $obj_id = $ilObjDataCache->lookupObjId($a_ref_id);
176 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
184 if (
$timings[
'item'][
'changeable'] and
$timings[
'user'][$a_usr_id][
'end']) {
194 include_once
'./Services/Object/classes/class.ilObjectLP.php';
196 $collection = $olp->getCollectionInstance();
198 foreach ($collection->getItems() as $item) {
LP collection of repository objects.
static _showWarning($a_ref_id, $a_usr_id)
static _hasUserCompleted($a_obj_id, $a_user_id)
Lookup user object completion.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
static getInstance($a_obj_id)
static & _getTimings($a_ref_id)
◆ getInstanceByRefId()
static ilTimingCache::getInstanceByRefId |
( |
|
$ref_id | ) |
|
|
static |
◆ isWarningRequired()
ilTimingCache::isWarningRequired |
( |
|
$usr_id | ) |
|
- Parameters
-
- Returns
- bool
Definition at line 100 of file class.ilTimingCache.php.
References $end, and time.
102 if (in_array($usr_id, $this->completed_users)) {
105 foreach ($this->collection_items as $item) {
106 $item_instance = self::getInstanceByRefId($item);
107 if ($item_instance->isWarningRequired($usr_id)) {
111 if (!$this->timings_active) {
116 if ($this->timings[
'changeable'] && isset($this->timings_user[$usr_id][
'end'])) {
117 $end = $this->timings_user[$usr_id][
'end'];
119 $end = $this->timings[
'suggestion_end'];
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
◆ readObjectInformation()
ilTimingCache::readObjectInformation |
( |
| ) |
|
|
protected |
◆ $collection_items
ilTimingCache::$collection_items = array() |
|
private |
◆ $completed_users
ilTimingCache::$completed_users = array() |
|
private |
◆ $instances
ilTimingCache::$instances = array() |
|
staticprivate |
◆ $obj_id
ilTimingCache::$obj_id = 0 |
|
private |
◆ $ref_id
ilTimingCache::$ref_id = 0 |
|
private |
◆ $timings
ilTimingCache::$timings = array() |
|
private |
◆ $timings_active
ilTimingCache::$timings_active = false |
|
private |
◆ $timings_user
ilTimingCache::$timings_user = array() |
|
private |
The documentation for this class was generated from the following file: