19 declare(strict_types=1);
41 $props = $obj->getObjectProperties()->getPropertyIsOnline();
42 $props = $status ? $props->withOnline() : $props->withOffline();
43 $obj->getObjectProperties()->storePropertyIsOnline($props);
54 if(! in_array($obj_type, self::$objs_with_check_for_online_status)) {
59 if($obj_type === self::S_SURVEY) {
60 return $obj->hasQuestions();
62 if($obj_type === self::S_TEST) {
63 return count($obj->getQuestions()) > 0;
70 return \ilObject::_lookupType($ref_id,
true);
75 return \ilObjectFactory::getInstanceByRefId($ref_id);
setOnlineStatus(int $ref_id, bool $status)
static _lookupObjId(int $ref_id)
static lookupOfflineStatus(int $obj_id)
Lookup offline status using objectDataCache.
getObjectTypeFor(int $ref_id)
getOnlineStatus(int $ref_id)
hasChangeableOnlineStatus(int $ref_id)
static array $objs_with_check_for_online_status