34         $lng = $DIC->language();
    35         $ilCtrl = $DIC->ctrl();
    38         $this->
ctrl = $ilCtrl;
    39         $this->
lng->loadLanguageModule(
'crs');
    41         $this->start_obj = $a_start_objects;
    47         if ($a_parent_cmd === 
'listStructure') {
    48             $this->
addColumn($this->
lng->txt(
'cntr_ordering'), 
'pos', 
'5%');
    53         $this->
addColumn($this->
lng->txt(
'description'), 
'description');
    56         if ($a_parent_cmd !== 
'listStructure') {
    57             $this->
setTitle($this->
lng->txt(
'crs_select_starter'));
    65             $this->
setTitle($this->
lng->txt(
'crs_start_objects'));
    73         $this->
setRowTemplate(
"tpl.start_objects_row.html", 
"components/ILIAS/Container");
    80         if ($a_parent_cmd !== 
'listStructure') {
    94         foreach ($this->start_obj->getPossibleStarters() as $item_ref_id) {
    97             $data[$item_ref_id][
'id'] = $item_ref_id;
    98             $data[$item_ref_id][
'title'] = $tmp_obj->getTitle();
    99             $data[$item_ref_id][
'type'] = $this->
lng->txt(
'obj_' . $tmp_obj->getType());
   102             if ($tmp_obj->getDescription() !== 
'') {
   103                 $data[$item_ref_id][
'description'] = $tmp_obj->getDescription();
   114         foreach ($this->start_obj->getStartObjects() as $start_id => $item) {
   117             $data[$item[
'item_ref_id']][
'id'] = $start_id;
   118             $data[$item[
'item_ref_id']][
'title'] = $tmp_obj->getTitle();
   119             $data[$item[
'item_ref_id']][
'type'] = $this->
lng->txt(
'obj_' . $tmp_obj->getType());
   123             $data[$item[
'item_ref_id']][
'pos'] = $counter;
   125             if ($tmp_obj->getDescription() !== 
'') {
   126                 $data[$item[
'item_ref_id']][
'description'] = $tmp_obj->getDescription();
   133     protected function fillRow(array $a_set): void
   136             $this->tpl->setCurrentBlock(
'pos_bl');
   137             $this->tpl->setVariable(
"POS_ID", $a_set[
"id"]);
   138             $this->tpl->setVariable(
"POS", $a_set[
"pos"]);
   139             $this->tpl->parseCurrentBlock();
   142         $this->tpl->setVariable(
"ID", $a_set[
"id"]);
   143         $this->tpl->setVariable(
"TXT_TITLE", $a_set[
"title"]);
   144         $this->tpl->setVariable(
"TXT_DESCRIPTION", $a_set[
"description"] ?? 
'');
   145         $this->tpl->setVariable(
"ICON_SRC", $a_set[
"icon"]);
   146         $this->tpl->setVariable(
"ICON_ALT", $a_set[
"type"]);
 
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item. 
 
ilContainerStartObjects $start_obj
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setDefaultOrderField(string $a_defaultorderfield)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id 
 
__construct(ilContainerStartObjectsGUI $a_parent_obj, string $a_parent_cmd, ilContainerStartObjects $a_start_objects)
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
__construct(Container $dic, ilPlugin $plugin)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
addMultiCommand(string $a_cmd, string $a_text)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Class ilContainerStartObjectsGUI.