43 $this->
user = $DIC->user();
69 $params = $DIC->http()->request()->getQueryParams();
70 $this->obj_id = (string) ($params[
"obj_id"] ??
"");
71 $this->transl = (string) ($params[
"transl"] ??
"");
73 if ($this->obj_id > 0) {
81 $class = (is_object($this->parent_obj))
82 ? get_class($this->parent_obj)
84 $this->
ctrl->setParameterByClass($class,
"obj_id", $this->obj_id);
96 return $this->lm->getTitle();
99 $lang = ($this->transl !=
"")
105 $this->lm->isActiveNumbering(),
118 if ($a_node[
"child"] == $this->obj_id ||
134 if (!isset($this->lp_cache[$this->lm->getId()])) {
135 $this->lp_cache[$this->lm->getId()] =
false;
144 $info = $class::_getStatusInfo($this->lm->getId());
148 if (isset($info[
"items"])) {
149 foreach ($info[
"items"] as $item_id) {
151 if (isset($info[
"in_progress"][$item_id]) &&
152 in_array(
$ilUser->getId(), $info[
"in_progress"][$item_id])) {
154 } elseif (isset($info[
"completed"][$item_id]) &&
155 in_array(
$ilUser->getId(), $info[
"completed"][$item_id])) {
158 $this->lp_cache[$this->lm->getId()][$item_id] = $status;
164 if (isset($this->lp_cache[$this->lm->getId()]) &&
165 isset($this->lp_cache[$this->lm->getId()][$a_id])) {
167 return $icons->getImagePathForStatus($this->lp_cache[$this->lm->getId()][$a_id]);
const LP_STATUS_COMPLETED_NUM
__construct( $a_parent_obj, string $a_parent_cmd, ilObjContentObject $a_lm, string $a_id="")
setSkipRootNode(bool $a_val)
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
const LP_STATUS_IN_PROGRESS_NUM
const LP_MODE_COLLECTION_MANUAL
static getInstance(int $variant=ilLPStatusIcons::ICON_VARIANT_DEFAULT, ?\ILIAS\UI\Renderer $renderer=null, ?\ILIAS\UI\Factory $factory=null)
setPathOpen($a_id)
Set node path to be opened.
const LP_MODE_COLLECTION_TLT
static preloadDataByLM(int $a_lm_id)
Preload data records by lm.
static checkAccess(int $a_ref_id, bool $a_allow_only_read=true)
check access to learning progress
static getInstance(int $a_tree_id)
isNodeHighlighted($a_node)
setPreloadChilds(bool $a_val)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getClassById(int $a_obj_id, ?int $a_mode=null)
getNodeId($a_node)
Get id for node.
const LP_STATUS_NOT_ATTEMPTED_NUM
getRootNode()
Get root node.
static preloadActivationDataByParentId(int $a_parent_id)
Preload activation data by Parent Id.
Explorer class that works on tree objects (Services/Tree)
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance(int $obj_id)
static _getNodePresentationTitle(array $a_node, string $a_mode=self::PAGE_TITLE, bool $a_include_numbers=false, bool $a_time_scheduled_activation=false, bool $a_force_content=false, int $a_lm_id=0, string $a_lang="-")