ILIAS  release_8 Revision v8.24
ilContainerStartObjectsContentTableGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilContainerStartObjectsContentTableGUI:
+ Collaboration diagram for ilContainerStartObjectsContentTableGUI:

Public Member Functions

 __construct (?object $a_parent_obj, string $a_parent_cmd, ilContainerStartObjects $a_start_objects, bool $a_enable_desktop=true)
 
- Public Member Functions inherited from ilTable2GUI
 __construct (?object $a_parent_obj, string $a_parent_cmd="", string $a_template_context="")
 
 setOpenFormTag (bool $a_val)
 
 getOpenFormTag ()
 
 setCloseFormTag (bool $a_val)
 
 getCloseFormTag ()
 
 determineLimit ()
 
 getSelectableColumns ()
 Get selectable columns. More...
 
 determineSelectedColumns ()
 
 isColumnSelected (string $col)
 
 getSelectedColumns ()
 
 resetOffset (bool $a_in_determination=false)
 
 initFilter ()
 
 getParentObject ()
 
 getParentCmd ()
 
 setTopAnchor (string $a_val)
 
 getTopAnchor ()
 
 setNoEntriesText (string $a_text)
 
 getNoEntriesText ()
 
 setIsDataTable (bool $a_val)
 
 getIsDataTable ()
 
 setEnableTitle (bool $a_enabletitle)
 
 getEnableTitle ()
 
 setEnableHeader (bool $a_enableheader)
 
 getEnableHeader ()
 
 setEnableNumInfo (bool $a_val)
 
 getEnableNumInfo ()
 
 setTitle (string $a_title, string $a_icon="", string $a_icon_alt="")
 
 setDescription (string $a_val)
 
 getDescription ()
 
 setOrderField (string $a_order_field)
 
 getOrderField ()
 
 setData (array $a_data)
 Set table data. More...
 
 getData ()
 
 dataExists ()
 
 setPrefix (string $a_prefix)
 set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort separately) More...
 
 getPrefix ()
 
 addFilterItem (ilTableFilterItem $a_input_item, bool $a_optional=false)
 
 addFilterItemByMetaType (string $id, int $type=self::FILTER_TEXT, bool $a_optional=false, string $caption="")
 Add filter by standard type. More...
 
 getFilterItems (bool $a_optionals=false)
 
 getFilterItemByPostVar (string $a_post_var)
 
 setFilterCols (int $a_val)
 
 getFilterCols ()
 
 setDisableFilterHiding (bool $a_val=true)
 
 getDisableFilterHiding ()
 
 isFilterSelected (string $a_col)
 Is given filter selected? More...
 
 getSelectedFilters ()
 
 determineSelectedFilters ()
 
 setCustomPreviousNext (string $a_prev_link, string $a_next_link)
 
 setFormAction (string $a_form_action, bool $a_multipart=false)
 
 getFormAction ()
 
 setFormName (string $a_name="")
 
 getFormName ()
 get the name of the parent form More...
 
 setId (string $a_val)
 
 getId ()
 
 setDisplayAsBlock (bool $a_val)
 
 getDisplayAsBlock ()
 
 setSelectAllCheckbox (string $a_select_all_checkbox, bool $a_select_all_on_top=false)
 
 setExternalSorting (bool $a_val)
 
 getExternalSorting ()
 
 setFilterCommand (string $a_val, string $a_caption="")
 
 getFilterCommand ()
 
 setResetCommand (string $a_val, string $a_caption="")
 
 getResetCommand ()
 
 setExternalSegmentation (bool $a_val)
 
 getExternalSegmentation ()
 
 setRowTemplate (string $a_template, string $a_template_dir="")
 Set row template. More...
 
 setDefaultOrderField (string $a_defaultorderfield)
 
 getDefaultOrderField ()
 
 setDefaultOrderDirection (string $a_defaultorderdirection)
 
 getDefaultOrderDirection ()
 
 setDefaultFilterVisiblity (bool $a_status)
 
 getDefaultFilterVisibility ()
 
 clearCommandButtons ()
 
 addCommandButton (string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
 addCommandButtonInstance (ilButtonBase $a_button)
 
 addMultiItemSelectionButton (string $a_sel_var, array $a_options, string $a_cmd, string $a_text, string $a_default_selection='')
 
 setCloseCommand (string $a_link)
 
 addMultiCommand (string $a_cmd, string $a_text)
 
 addHiddenInput (string $a_name, string $a_value)
 
 addHeaderCommand (string $a_href, string $a_text, string $a_target="", string $a_img="")
 
 setTopCommands (bool $a_val)
 
 getTopCommands ()
 
 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)
 
 getNavParameter ()
 
 setOrderLink (string $key, string $order_dir)
 
 fillHeader ()
 
 determineOffsetAndOrder (bool $a_omit_offset=false)
 
 storeNavParameter ()
 
 getHTML ()
 Get HTML. More...
 
 numericOrdering (string $a_field)
 Should this field be sorted numeric? More...
 
 render ()
 
 writeFilterToSession ()
 
 resetFilter ()
 
 fillFooter ()
 
 getLinkbar (string $a_num)
 
 fillHiddenRow ()
 
 fillActionRow ()
 
 setHeaderHTML (string $html)
 
 storeProperty (string $type, string $value)
 
 loadProperty (string $type)
 
 getCurrentState ()
 get current settings for order, limit, columns and filter More...
 
 setContext (string $id)
 
 getContext ()
 
 setShowRowsSelector (bool $a_value)
 Toggle rows-per-page selector. More...
 
 getShowRowsSelector ()
 
 setShowTemplates (bool $a_value)
 
 getShowTemplates ()
 
 restoreTemplate (string $a_name)
 Restore state from template. More...
 
 saveTemplate (string $a_name)
 Save current state as template. More...
 
 deleteTemplate (string $a_name)
 
 getLimit ()
 
 getOffset ()
 
 setExportFormats (array $formats)
 Set available export formats. More...
 
 setPrintMode (bool $a_value=false)
 
 getPrintMode ()
 
 getExportMode ()
 
 exportData (int $format, bool $send=false)
 Export and optionally send current table data. More...
 
 setEnableAllCommand (bool $a_value)
 
 setRowSelectorLabel (string $row_selector_label)
 
 getRowSelectorLabel ()
 
 setPreventDoubleSubmission (bool $a_val)
 
 getPreventDoubleSubmission ()
 
 setLimit (int $a_limit=0, int $a_default_limit=0)
 set max. More...
 
- Public Member Functions inherited from ilTableGUI
 __construct (array $a_data=[], bool $a_global_tpl=true)
 
 setTemplate (ilTemplate $a_tpl)
 
 getTemplateObject ()
 
 setData (array $a_data)
 Set table data. More...
 
 getData ()
 
 setTitle (string $a_title, string $a_icon="", string $a_icon_alt="")
 
 setHelp (string $a_help_page, string $a_help_icon, string $a_help_icon_alt="")
 
 setHeaderNames (array $a_header_names)
 
 getColumnCount ()
 
 setHeaderVars (array $a_header_vars, array $a_header_params=[])
 
 setColumnWidth (array $a_column_width)
 set table column widths More...
 
 setOneColumnWidth (string $a_column_width, int $a_column_number)
 
 setMaxCount (int $a_max_count)
 set max. More...
 
 setLimit (int $a_limit=0, int $a_default_limit=0)
 set max. More...
 
 getLimit ()
 
 setPrefix (string $a_prefix)
 set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort separately) More...
 
 setOffset (int $a_offset)
 set dataset offset More...
 
 getOffset ()
 
 setOrderColumn (string $a_order_column="", string $a_default_column="")
 
 getOrderColumn ()
 
 setOrderDirection (string $a_order_direction)
 
 getOrderDirection ()
 
 setFooter (string $a_style, string $a_previous="", string $a_next="")
 
 enable (string $a_module_name)
 
 disable (string $a_module_name)
 
 sortData ()
 
 render ()
 
 renderHeader ()
 
 setOrderLink (string $key, string $order_dir)
 
 setStyle (string $a_element, string $a_style)
 
 getStyle (string $a_element)
 
 setBase (string $a_base)
 
 getBase ()
 
 getFormName ()
 get the name of the parent form More...
 
 setFormName (string $a_name="cmd")
 
 getSelectAllCheckbox ()
 get the name of the checkbox that should be toggled with a select all button More...
 
 setSelectAllCheckbox (string $a_select_all_checkbox)
 
 clearActionButtons ()
 
 addActionButton (string $btn_name, string $btn_value)
 

Protected Member Functions

 getItems ()
 
 getItemListGUI (string $a_type)
 
 getListItem (array $a_item)
 
 fillRow (array $a_set)
 Standard Version of Fill Row. More...
 
- Protected Member Functions inherited from ilTable2GUI
 getRequestedValues ()
 
 prepareOutput ()
 Anything that must be done before HTML is generated. More...
 
 isFilterVisible ()
 Check if filter is visible: manually shown (session, db) or default value set. More...
 
 isAdvMDFilter (ilAdvancedMDRecordGUI $a_gui, ilTableFilterItem $a_element)
 Check if filter element is based on adv md. More...
 
 fillRow (array $a_set)
 Standard Version of Fill Row. More...
 
 getFilterValue (ilTableFilterItem $a_item)
 Get current filter value. More...
 
 setFilterValue (ilTableFilterItem $a_item, $a_value)
 
 fillMetaExcel (ilExcel $a_excel, int &$a_row)
 Add meta information to excel export. More...
 
 fillHeaderExcel (ilExcel $a_excel, int &$a_row)
 Excel Version of Fill Header. More...
 
 fillRowExcel (ilExcel $a_excel, int &$a_row, array $a_set)
 Excel Version of Fill Row. More...
 
 fillMetaCSV (ilCSVWriter $a_csv)
 Add meta information to csv export. More...
 
 fillHeaderCSV (ilCSVWriter $a_csv)
 CSV Version of Fill Header. More...
 
 fillRowCSV (ilCSVWriter $a_csv, array $a_set)
 CSV Version of Fill Row. More...
 

Protected Attributes

ilObjUser $user
 
ilObjectDataCache $obj_data_cache
 
ilAccessHandler $access
 
ilObjectDefinition $obj_definition
 
ilContainerStartObjects $start_object
 
array $item_list_guis
 
bool $enable_desktop
 
ilFavouritesManager $fav_manager
 
- Protected Attributes inherited from ilTable2GUI
string $requested_tmpl_delete
 
string $requested_tmpl_create
 
string $requested_nav_par2 = ""
 
string $requested_nav_par = ""
 
string $requested_nav_par1 = ""
 
ILIAS Table TableGUIRequest $table_request = null
 
array $selected_columns = []
 
ilCtrl $ctrl
 
object $parent_obj = null
 
string $parent_cmd = ""
 
string $close_command = ""
 
string $top_anchor = "il_table_top"
 
array $filters = array()
 
array $optional_filters = array()
 
string $filter_cmd = 'applyFilter'
 
string $reset_cmd = 'resetFilter'
 
int $filter_cols = 5
 
bool $ext_sort = false
 
bool $ext_seg = false
 
string $context = ""
 
array $mi_sel_buttons = []
 
bool $disable_filter_hiding = false
 
bool $top_commands = true
 
array $selectable_columns = array()
 
array $selected_column = array()
 
bool $show_templates = false
 
bool $show_rows_selector = true
 
bool $rows_selector_off = false
 
bool $nav_determined = false
 
bool $limit_determined = false
 
bool $filters_determined = false
 
bool $columns_determined = false
 
bool $open_form_tag = true
 
bool $close_form_tag = true
 
array $export_formats = []
 
int $export_mode = 0
 
bool $print_mode = false
 
bool $enable_command_for_all = false
 
bool $restore_filter = false
 
array $restore_filter_values = []
 
bool $default_filter_visibility = false
 
array $sortable_fields = array()
 
bool $prevent_double_submission = true
 
string $row_selector_label = ""
 
bool $select_all_on_top = false
 
array $sel_buttons = []
 
string $nav_value = ''
 
string $noentriestext = ''
 
string $css_row = ''
 
bool $display_as_block = false
 
string $description = ''
 
string $id = ""
 
bool $custom_prev_next = false
 
string $reset_cmd_txt = ""
 
string $defaultorderfield = ""
 
string $defaultorderdirection = ""
 
array $column = []
 
bool $datatable = false
 
bool $num_info = false
 
bool $form_multipart = false
 
array $row_data = []
 
string $order_field = ""
 
array $selected_filter = []
 
string $form_action = ""
 
string $formname = ""
 
string $sort_order = ""
 
array $buttons = []
 
array $multi = []
 
array $hidden_inputs = []
 
array $header_commands = []
 
string $row_template = ""
 
string $row_template_dir = ""
 
string $filter_cmd_txt = ""
 
string $custom_prev = ""
 
string $custom_next = ""
 
array $raw_post_data = null
 
ilGlobalTemplateInterface $main_tpl
 
- Protected Attributes inherited from ilTableGUI
string $sort_order
 
string $link_params
 
array $header_params
 
 $tpl
 
ilLanguage $lng
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTable2GUI
static getAllCommandLimit ()
 
- Static Public Member Functions inherited from ilTableGUI
static linkbar (string $AScript, int $AHits, int $ALimit, int $AOffset, array $AParams=array(), array $ALayout=array(), string $prefix='')
 
- Data Fields inherited from ilTable2GUI
const FILTER_TEXT = 1
 
const FILTER_SELECT = 2
 
const FILTER_DATE = 3
 
const FILTER_LANGUAGE = 4
 
const FILTER_NUMBER_RANGE = 5
 
const FILTER_DATE_RANGE = 6
 
const FILTER_DURATION_RANGE = 7
 
const FILTER_DATETIME_RANGE = 8
 
const FILTER_CHECKBOX = 9
 
const EXPORT_EXCEL = 1
 
const EXPORT_CSV = 2
 
const ACTION_ALL_LIMIT = 1000
 
- Data Fields inherited from ilTableGUI
string $title = ""
 
string $icon = ""
 
string $icon_alt = ""
 
string $help_page = ""
 
string $help_icon = ""
 
string $help_icon_alt = ""
 
array $header_names = []
 
array $header_vars = []
 
array $linkbar_vars = []
 
array $data = []
 
int $column_count = 0
 
array $column_width = []
 
int $max_count = 0
 
int $limit = 0
 
bool $max_limit = false
 
int $offset = 0
 
string $order_column = ""
 
string $order_direction = ""
 
string $footer_style = ""
 
string $footer_previous = ""
 
string $footer_next = ""
 
bool $lang_support = true
 
bool $global_tpl = false
 
string $form_name = ""
 
string $select_all_checkbox = ""
 
array $action_buttons = []
 
string $prefix = ""
 
string $base = ""
 
array $enabled
 
array $styles
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning ilContainerStartObjectsContentTableGUI

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 23 of file class.ilContainerStartObjectsContentTableGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilContainerStartObjectsContentTableGUI::__construct ( ?object  $a_parent_obj,
string  $a_parent_cmd,
ilContainerStartObjects  $a_start_objects,
bool  $a_enable_desktop = true 
)

Definition at line 34 of file class.ilContainerStartObjectsContentTableGUI.php.

39 {
40 global $DIC;
41
42 $this->user = $DIC->user();
43 $this->obj_data_cache = $DIC["ilObjDataCache"];
44 $this->access = $DIC->access();
45 $this->obj_definition = $DIC["objDefinition"];
46 $lng = $DIC->language();
47 $ilCtrl = $DIC->ctrl();
48
49 $this->lng = $lng;
50 $this->lng->loadLanguageModule('rep');
51 $this->ctrl = $ilCtrl;
52
53 $this->start_object = $a_start_objects;
54 $this->enable_desktop = $a_enable_desktop;
55
56 parent::__construct($a_parent_obj, $a_parent_cmd);
57
58 $this->addColumn($this->lng->txt('crs_nr'), 'nr');
59 $this->addColumn($this->lng->txt('title'), 'title');
60 $this->addColumn($this->lng->txt('crs_objective_accomplished'), 'status');
61 $this->addColumn($this->lng->txt('actions'), '');
62
63 $this->setTitle($this->lng->txt('crs_table_start_objects'));
64 $this->setDescription($this->lng->txt('crs_info_start'));
65
66 $this->setRowTemplate("tpl.start_objects_content_row.html", "Services/Container");
67 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
68
69 $this->setDefaultOrderField('nr');
70 $this->setDefaultOrderDirection('asc');
71 $this->fav_manager = new ilFavouritesManager();
72
73 $this->getItems();
74 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setDescription(string $a_val)
setFormAction(string $a_form_action, bool $a_multipart=false)
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)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
ilLanguage $lng
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $DIC, ilTableGUI\$lng, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ilTable2GUI\addColumn(), ILIAS\Repository\ctrl(), getItems(), ILIAS\Repository\lng(), ilTable2GUI\setDefaultOrderDirection(), ilTable2GUI\setDefaultOrderField(), ilTable2GUI\setDescription(), ilTable2GUI\setFormAction(), ilTable2GUI\setRowTemplate(), ilTable2GUI\setTitle(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ fillRow()

ilContainerStartObjectsContentTableGUI::fillRow ( array  $a_set)
protected

Standard Version of Fill Row.

Most likely to be overwritten by derived class.

Parameters
array$a_setdata array

Reimplemented from ilTable2GUI.

Definition at line 242 of file class.ilContainerStartObjectsContentTableGUI.php.

242 : void
243 {
244 $this->tpl->setVariable("VAL_NR", $a_set["nr"]);
245
246 // begin-patch lok
247 $this->tpl->setVariable("TXT_TITLE", $this->getListItem($a_set));
248 $this->tpl->setVariable("TXT_STATUS", $a_set["status"]);
249 $this->tpl->setVariable("IMG_STATUS", $a_set["status_img"]);
250
251 if ($a_set["actions"]) {
252 $this->tpl->setCurrentBlock("link");
253 foreach ($a_set["actions"] as $url => $caption) {
254 $this->tpl->setVariable("LINK_HREF", $url);
255 $this->tpl->setVariable("LINK_NAME", $caption);
256 }
257 $this->tpl->parseCurrentBlock();
258 }
259 }
$url

References $url, and getListItem().

+ Here is the call graph for this function:

◆ getItemListGUI()

ilContainerStartObjectsContentTableGUI::getItemListGUI ( string  $a_type)
protected

Definition at line 167 of file class.ilContainerStartObjectsContentTableGUI.php.

168 {
169 $objDefinition = $this->obj_definition;
170
171 if (!isset($this->item_list_guis[$a_type])) {
172 $class = $objDefinition->getClassName($a_type);
173 // Fixed problem with deactivated plugins and existing repo. object plugin objects on the user's desktop
174 if (!$class) {
175 return null;
176 }
177 // Fixed problem with deactivated plugins and existing repo. object plugin objects on the user's desktop
178 $location = $objDefinition->getLocation($a_type);
179 if (!$location) {
180 return null;
181 }
182 $full_class = "ilObj" . $class . "ListGUI";
183 $item_list_gui = new $full_class();
184 $this->item_list_guis[$a_type] = $item_list_gui;
185 } else {
186 $item_list_gui = $this->item_list_guis[$a_type];
187 }
188
189 $item_list_gui->setDefaultCommandParameters([]);
190
191 return $item_list_gui;
192 }
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: buildRTE.php:22
getClassName(string $obj_name)

References $location, $obj_definition, and ilObjectDefinition\getClassName().

Referenced by getListItem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getItems()

ilContainerStartObjectsContentTableGUI::getItems ( )
protected

Definition at line 76 of file class.ilContainerStartObjectsContentTableGUI.php.

76 : void
77 {
79 $ilObjDataCache = $this->obj_data_cache;
80 $ilAccess = $this->access;
81
82 $lm_continue = new ilCourseLMHistory($this->start_object->getRefId(), $ilUser->getId());
83 $continue_data = $lm_continue->getLMHistory();
84
85 $items = [];
86 $counter = 0;
87 foreach ($this->start_object->getStartObjects() as $start) {
88 $obj_id = $ilObjDataCache->lookupObjId((int) $start['item_ref_id']);
89 $ref_id = $start['item_ref_id'];
90 $type = $ilObjDataCache->lookupType($obj_id);
91
92 if (!$ilAccess->checkAccess("visible", "", $ref_id)) {
93 continue;
94 }
95
96 // start object status
97 if ($this->start_object->isFullfilled($ilUser->getId(), $ref_id)) {
98 $accomplished = 'accomplished';
99 } else {
100 $accomplished = 'not_accomplished';
101 }
102
103 // add/remove desktop
104 $actions = [];
105 if ($this->enable_desktop) {
106 // add to desktop link
107 if (!$this->fav_manager->ifIsFavourite($ilUser->getId(), $ref_id)) {
108 if ($ilAccess->checkAccess('read', '', $ref_id)) {
109 $this->ctrl->setParameter($this->getParentObject(), 'item_ref_id', $ref_id);
110 $this->ctrl->setParameter($this->getParentObject(), 'item_id', $ref_id);
111 $this->ctrl->setParameter($this->getParentObject(), 'type', $type);
112 $url = $this->ctrl->getLinkTarget($this->getParentObject(), 'addToDesk');
113 $actions[$url] = $this->lng->txt("rep_add_to_favourites");
114 }
115 } else {
116 $this->ctrl->setParameter($this->getParentObject(), 'item_ref_id', $ref_id);
117 $this->ctrl->setParameter($this->getParentObject(), 'item_id', $ref_id);
118 $this->ctrl->setParameter($this->getParentObject(), 'type', $type);
119 $url = $this->ctrl->getLinkTarget($this->getParentObject(), 'removeFromDesk');
120 $actions[$url] = $this->lng->txt("rep_remove_from_favourites");
121 }
122 }
123
124 $default_params = null;
125 if ($type === "tst") {
126 $default_params["crs_show_result"] = $ref_id;
127 }
128 /* continue is currently inactive
129 if(isset($continue_data[$ref_id]))
130 {
131 // :TODO: should "continue" be default or 2nd link/action?
132 // $this->lng->txt('continue_work')
133 $default_params["obj_id"] = $continue_data[$ref_id]['lm_page_id'];
134 }
135 */
136
137 if ($accomplished === 'accomplished') {
138 $icon = ilUtil::getImagePath("icon_ok.svg");
139 } else {
140 $icon = ilUtil::getImagePath("icon_not_ok.svg");
141 }
142
143 $items[] = [
144 "nr" => ++$counter,
145 "obj_id" => $obj_id,
146 "ref_id" => $ref_id,
147 "type" => $type,
148 "append_default" => $default_params,
149 "title" => $ilObjDataCache->lookupTitle($obj_id),
150 "description" => $ilObjDataCache->lookupDescription($obj_id),
151 "status" => $this->lng->txt('crs_objective_' . $accomplished),
152 "status_img" => $icon,
153 "actions" => $actions
154 ];
155 }
156
158 foreach ($items as $item) {
159 $preloader->addItem($item["obj_id"], $item["type"], $item["ref_id"]);
160 }
161 $preloader->preload();
162 unset($preloader);
163
164 $this->setData($items);
165 }
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...
setData(array $a_data)
Set table data.
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
$ilUser
Definition: imgupload.php:34
$ref_id
Definition: ltiauth.php:67
$type

References $access, ilTableGUI\$icon, $ilUser, $obj_data_cache, $ref_id, $type, $url, $user, ilObjectListGUI\CONTEXT_REPOSITORY, ILIAS\Repository\ctrl(), ilUtil\getImagePath(), ilTable2GUI\getParentObject(), ILIAS\Repository\lng(), and ilTable2GUI\setData().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getListItem()

ilContainerStartObjectsContentTableGUI::getListItem ( array  $a_item)
protected

Definition at line 195 of file class.ilContainerStartObjectsContentTableGUI.php.

195 : string
196 {
197 $item_list_gui = $this->getItemListGUI($a_item["type"]);
198 if (!$item_list_gui) {
199 return "";
200 }
201
202 $item_list_gui->setContainerObject($this);
203 $item_list_gui->enableCommands(true, true);
204
205 // ilObjectActivation::addListGUIActivationProperty($item_list_gui, $a_item);
206
207 // notes, comment currently do not work properly
208 $item_list_gui->enableNotes(false);
209 $item_list_gui->enableComments(false);
210 $item_list_gui->enableTags(false);
211
212 $item_list_gui->enableIcon(true);
213 $item_list_gui->enableDelete(false);
214 $item_list_gui->enableCut(false);
215 $item_list_gui->enableCopy(false);
216 $item_list_gui->enableLink(false);
217 $item_list_gui->enableInfoScreen(true);
218 $item_list_gui->enableSubscribe(false);
219
220 $level = 3;
221
222 if ($level < 3) {
223 $item_list_gui->enableDescription(false);
224 $item_list_gui->enableProperties(false);
225 $item_list_gui->enablePreconditions(false);
226 }
227
228 if ($a_item["append_default"]) {
229 $item_list_gui->setDefaultCommandParameters($a_item["append_default"]);
230 }
231 if (is_object($item_list_gui)) {
232 return $item_list_gui->getListItemHTML(
233 $a_item["ref_id"],
234 $a_item["obj_id"],
235 $a_item["title"],
236 $a_item["description"]
237 );
238 }
239 return "";
240 }

References getItemListGUI().

Referenced by fillRow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilContainerStartObjectsContentTableGUI::$access
protected

Definition at line 27 of file class.ilContainerStartObjectsContentTableGUI.php.

Referenced by getItems().

◆ $enable_desktop

bool ilContainerStartObjectsContentTableGUI::$enable_desktop
protected

◆ $fav_manager

ilFavouritesManager ilContainerStartObjectsContentTableGUI::$fav_manager
protected

◆ $item_list_guis

array ilContainerStartObjectsContentTableGUI::$item_list_guis
protected

◆ $obj_data_cache

ilObjectDataCache ilContainerStartObjectsContentTableGUI::$obj_data_cache
protected

Definition at line 26 of file class.ilContainerStartObjectsContentTableGUI.php.

Referenced by getItems().

◆ $obj_definition

ilObjectDefinition ilContainerStartObjectsContentTableGUI::$obj_definition
protected

Definition at line 28 of file class.ilContainerStartObjectsContentTableGUI.php.

Referenced by getItemListGUI().

◆ $start_object

ilContainerStartObjects ilContainerStartObjectsContentTableGUI::$start_object
protected

◆ $user

ilObjUser ilContainerStartObjectsContentTableGUI::$user
protected

Definition at line 25 of file class.ilContainerStartObjectsContentTableGUI.php.

Referenced by getItems().


The documentation for this class was generated from the following file: