19 declare(strict_types=0);
45 if (!isset(self::$instances[$ref_id])) {
48 return self::$instances[
$ref_id];
53 if (in_array($usr_id, $this->completed_users)) {
56 foreach ($this->collection_items as $item) {
57 $item_instance = self::getInstanceByRefId($item);
58 if ($item_instance->isWarningRequired($usr_id)) {
62 if (!$this->timings_active) {
67 if ($this->timings[
'changeable'] && isset($this->timings_user[$usr_id][
'end'])) {
68 $end = $this->timings_user[$usr_id][
'end'];
70 $end = $this->timings[
'suggestion_end'];
78 $this->timings_active =
false;
80 $this->timings_active =
true;
85 $collection = $olp->getCollectionInstance();
87 $this->collection_items = $collection->getItems();
94 static $cache = array();
96 if (isset($cache[$a_ref_id])) {
97 return $cache[$a_ref_id];
102 return $cache[$a_ref_id];
static _getPlanedTimingsByItem($a_item_id)
static _lookupObjId(int $ref_id)
LP collection of repository objects.
isWarningRequired(int $usr_id)
static _getCompleted(int $a_obj_id)
static getItem(int $ref_id)
static _getTimings(int $a_ref_id)
static getInstance(int $obj_id)
static getInstanceByRefId(int $ref_id)