4 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
23 $this->lng->loadLanguageModule(
'crs');
25 $this->start_obj = $a_start_objects;
31 if($a_parent_cmd ==
'listStructure')
33 $this->
addColumn($this->lng->txt(
'cntr_ordering'),
'pos',
'5%');
36 $this->
addColumn($this->lng->txt(
'type'),
'type', 1);
37 $this->
addColumn($this->lng->txt(
'title'),
'title');
38 $this->
addColumn($this->lng->txt(
'description'),
'description');
41 if($a_parent_cmd !=
'listStructure')
43 $this->
setTitle($this->lng->txt(
'crs_select_starter'));
44 $this->
addMultiCommand(
'addStarter', $this->lng->txt(
'crs_add_starter'));
53 $this->
setTitle($this->lng->txt(
'crs_start_objects'));
61 $this->
setRowTemplate(
"tpl.start_objects_row.html",
"Services/Container");
62 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
68 if($a_parent_cmd !=
'listStructure')
84 foreach($this->start_obj->getPossibleStarters() as $item_ref_id)
88 $data[$item_ref_id][
'id'] = $item_ref_id;
89 $data[$item_ref_id][
'title'] = $tmp_obj->getTitle();
90 $data[$item_ref_id][
'type'] = $this->lng->txt(
'obj_'.$tmp_obj->getType());
93 if(strlen($tmp_obj->getDescription()))
95 $data[$item_ref_id][
'description'] = $tmp_obj->getDescription();
106 foreach($this->start_obj->getStartObjects() as $start_id => $item)
110 $data[$item[
'item_ref_id']][
'id'] = $start_id;
111 $data[$item[
'item_ref_id']][
'title'] = $tmp_obj->getTitle();
112 $data[$item[
'item_ref_id']][
'type'] = $this->lng->txt(
'obj_'.$tmp_obj->getType());
116 $data[$item[
'item_ref_id']][
'pos'] = $counter;
118 if(strlen($tmp_obj->getDescription()))
120 $data[$item[
'item_ref_id']][
'description'] = $tmp_obj->getDescription();
131 $this->tpl->setCurrentBlock(
'pos_bl');
132 $this->tpl->setVariable(
"POS_ID", $a_set[
"id"]);
133 $this->tpl->setVariable(
"POS", $a_set[
"pos"]);
134 $this->tpl->parseCurrentBlock();
137 $this->tpl->setVariable(
"ID", $a_set[
"id"]);
138 $this->tpl->setVariable(
"TXT_TITLE", $a_set[
"title"]);
139 $this->tpl->setVariable(
"TXT_DESCRIPTION", $a_set[
"description"]);
140 $this->tpl->setVariable(
"ICON_SRC", $a_set[
"icon"]);
141 $this->tpl->setVariable(
"ICON_ALT", $a_set[
"type"]);