19 declare(strict_types=1);
29 protected \ilLanguage
$lng;
30 protected \ILIAS\UI\Factory
$f;
36 protected $current_node = 0,
37 protected $transl =
"" 40 $this->f = $DIC->ui()->factory();
41 $this->
lng = $DIC->language();
46 if (!in_array($this->transl, [
"-",
""])) {
47 $lmobjtrans = new \ilLMObjTranslation($child[
"child"], $this->transl);
48 return $lmobjtrans->getTitle();
50 return $child[
"title"];
55 $current_node = ($this->current_node > 0)
57 : $this->lm_tree->readRootId();
58 if (is_null($this->childs)) {
59 $this->childs = $this->lm_tree->getChildsByType($current_node, $this->type);
69 array $parameters = []
74 $deactivated_elements =
false;
75 if ($child[
"type"] ===
"pg") {
81 (
bool)
$lm_set->get(
"time_scheduled_page_activation")
85 $scheduled = ((bool)
$lm_set->get(
"time_scheduled_page_activation") &&
95 if (!in_array($this->transl, [
"-",
""])) {
99 "id" => $child[
"child"],
100 "deactivated_elements" => $deactivated_elements,
102 "scheduled" => $scheduled,
103 "type" => $child[
"type"],
104 "title" => $child[
"title"],
105 "trans_title" => $trans_title
112 array $parameters = []
119 return $field ===
"id";
static _lookupActive(int $a_id, string $a_parent_type, bool $a_check_scheduled_activation=false, string $a_lang="-")
lookup activation status
isFieldNumeric(string $field)
static _isScheduledActivation(int $a_id, string $a_parent_type, string $a_lang="-")
Check whether page is activated by time schedule.
__construct(protected \ilLMTree $lm_tree, protected $type="", protected $current_node=0, protected $transl="")
getData(array $fields, ?Range $range=null, ?Order $order=null, array $filter=[], array $parameters=[])
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Both the subject and the direction need to be specified when expressing an order. ...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static _lookupContainsDeactivatedElements(int $a_id, string $a_parent_type, string $a_lang="-")
lookup whether page contains deactivated elements
count(array $filter=[], array $parameters=[])
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getChildTitle(array $child)
A simple class to express a naive range of whole positive numbers.