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 |
◆ 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.
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'];
121 return $end < time();
◆ 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: