Definition at line 21 of file LSItemOnlineStatus.php.
◆ getObject()
LSItemOnlineStatus::getObject |
( |
int |
$ref_id | ) |
|
|
protected |
◆ getObjectTypeFor()
LSItemOnlineStatus::getObjectTypeFor |
( |
int |
$ref_id | ) |
|
|
protected |
◆ getOnlineStatus()
LSItemOnlineStatus::getOnlineStatus |
( |
int |
$ref_id | ) |
|
◆ hasChangeableOnlineStatus()
LSItemOnlineStatus::hasChangeableOnlineStatus |
( |
int |
$ref_id | ) |
|
Definition at line 51 of file LSItemOnlineStatus.php.
References getObject(), and getObjectTypeFor().
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;
getObjectTypeFor(int $ref_id)
◆ setOnlineStatus()
LSItemOnlineStatus::setOnlineStatus |
( |
int |
$ref_id, |
|
|
bool |
$status |
|
) |
| |
Definition at line 38 of file LSItemOnlineStatus.php.
References getObject().
41 $props = $obj->getObjectProperties()->getPropertyIsOnline();
42 $props = $status ? $props->withOnline() : $props->withOffline();
43 $obj->getObjectProperties()->storePropertyIsOnline($props);
◆ $objs_with_check_for_online_status
array LSItemOnlineStatus::$objs_with_check_for_online_status |
|
staticprivate |
◆ S_CONTENTPAGE
const LSItemOnlineStatus::S_CONTENTPAGE = "copa" |
◆ S_EXERCISE
const LSItemOnlineStatus::S_EXERCISE = "exc" |
◆ S_FILE
const LSItemOnlineStatus::S_FILE = "file" |
◆ S_IND_ASSESSMENT
const LSItemOnlineStatus::S_IND_ASSESSMENT = "iass" |
◆ S_LEARNMODULE_HTML
const LSItemOnlineStatus::S_LEARNMODULE_HTML = "htlm" |
◆ S_LEARNMODULE_IL
const LSItemOnlineStatus::S_LEARNMODULE_IL = "lm" |
◆ S_SAHS
const LSItemOnlineStatus::S_SAHS = "sahs" |
◆ S_SURVEY
const LSItemOnlineStatus::S_SURVEY = "svy" |
◆ S_TEST
const LSItemOnlineStatus::S_TEST = "tst" |
The documentation for this class was generated from the following file: