19 declare(strict_types=1);
49 $this->
lng = $DIC[
'lng'];
50 $this->
user = $DIC[
'ilUser'];
51 $this->
access = $DIC[
'ilAccess'];
52 $this->factory = $DIC[
'ui.factory'];
53 $this->renderer = $DIC[
'ui.renderer'];
61 if (is_null($this->assignments)) {
68 public function getHTML():
string 77 $lso_ref_id = array_shift($ref_ids);
86 if (!$this->
access->checkAccess(
'read',
'', $lso_ref_id)) {
97 if (count($items) == 0) {
101 $std_list = $this->factory->panel()->listing()->standard($this->
lng->txt(
'dash_learningsequences'), array(
102 $this->factory->item()->group(
108 return $this->renderer->render($std_list);
118 return $this->factory->item()->standard($link)
124 ->withLeadIcon($this->
getIcon($title))
133 if (count($ls_lp_items) == 0) {
137 foreach ($ls_lp_items as $item) {
149 return $this->factory->button()->shy($title, $link);
165 if (is_null($this->icon)) {
166 $this->icon = $this->factory->symbol()->icon()->standard(
getLsoItem(ilObjLearningSequence $lso_obj)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This describes how an icon could be modified during construction of UI.
Personal Desktop-Presentation for the LearningSequence.
static _getAllReferences(int $id)
get all reference ids for object ID
const LP_STATUS_IN_PROGRESS_NUM
getLinkedTitle(int $ref_id, string $title)
getOnlineStatus(int $ref_id)
static isOffline(int $ref_id)
isRelevantLso(ilObjLearningSequence $obj)
static getInstanceByRefId(int $ref_id)
Common interface to all items.
getLSLearnerItems(int $usr_id)
static _getLink(?int $a_ref_id, string $a_type='', array $a_params=array(), string $append="")
static _getMembershipByType(int $a_usr_id, array $a_type, bool $a_only_member_role=false)
get membership by type Get course or group membership
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...