class ilTimingCache
More...
◆ __construct()
ilTimingCache::__construct |
( |
int |
$ref_id | ) |
|
◆ _getTimings()
static ilTimingCache::_getTimings |
( |
int |
$a_ref_id | ) |
|
|
static |
◆ getInstanceByRefId()
static ilTimingCache::getInstanceByRefId |
( |
int |
$ref_id | ) |
|
|
static |
◆ isWarningRequired()
ilTimingCache::isWarningRequired |
( |
int |
$usr_id | ) |
|
Definition at line 51 of file class.ilTimingCache.php.
51 : bool
52 {
53 if (in_array($usr_id, $this->completed_users)) {
54 return false;
55 }
56 foreach ($this->collection_items as $item) {
58 if ($item_instance->isWarningRequired($usr_id)) {
59 return true;
60 }
61 }
62 if (!$this->timings_active) {
63 return false;
64 }
65
66
67 if ($this->timings['changeable'] && isset($this->timings_user[$usr_id]['end'])) {
68 $end = $this->timings_user[$usr_id]['end'];
69 } else {
70 $end = $this->timings['suggestion_end'];
71 }
72 return $end < time();
73 }
static getInstanceByRefId(int $ref_id)
References getInstanceByRefId().
◆ readObjectInformation()
ilTimingCache::readObjectInformation |
( |
| ) |
|
|
protected |
◆ $collection_items
array ilTimingCache::$collection_items = array() |
|
private |
◆ $completed_users
array ilTimingCache::$completed_users = array() |
|
private |
◆ $instances
array ilTimingCache::$instances = [] |
|
staticprivate |
◆ $obj_id
int ilTimingCache::$obj_id = 0 |
|
private |
◆ $ref_id
int ilTimingCache::$ref_id = 0 |
|
private |
◆ $timings
array ilTimingCache::$timings = array() |
|
private |
◆ $timings_active
bool ilTimingCache::$timings_active = false |
|
private |
◆ $timings_user
array ilTimingCache::$timings_user = array() |
|
private |
The documentation for this class was generated from the following file: