19declare(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)
121 $this->
lng->txt(
'status') => $this->getOnlineStatus(
$ref_id)
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(
Builds a Color from either hex- or rgb values.
Renderer that dispatches rendering of UI components to a Renderer found in the same namespace as the ...
Personal Desktop-Presentation for the LearningSequence.
getOnlineStatus(int $ref_id)
getLsoItem(ilObjLearningSequence $lso_obj)
isRelevantLso(ilObjLearningSequence $obj)
getLinkedTitle(int $ref_id, string $title)
const LP_STATUS_IN_PROGRESS_NUM
static _getLink(?int $a_ref_id, string $a_type='', array $a_params=array(), string $append="")
static isOffline(int $ref_id)
getLSLearnerItems(int $usr_id)
static getInstanceByRefId(int $ref_id)
static _getAllReferences(int $id)
get all reference ids for object ID
static _getMembershipByType(int $a_usr_id, array $a_type, bool $a_only_member_role=false)
get membership by type Get course or group membership
Common interface to all items.
This describes how an icon could be modified during construction of UI.
An entity that renders components to a string output.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...