ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilUserRoleStartingPointTableGUI Class Reference

TableGUI class for LTI consumer listing. More...

+ Inheritance diagram for ilUserRoleStartingPointTableGUI:
+ Collaboration diagram for ilUserRoleStartingPointTableGUI:

Public Member Functions

 __construct (object $parent_obj, private Repository $starting_point_repository, private ilRbacReview $rbac_review, private UIFactory $ui_factory, private Renderer $ui_renderer,)
 
 getItems ()
 Get data. More...
 
- 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 ()
 
 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

 fillRow (array $row_data)
 
- 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...
 

Private Member Functions

 getActions (int $id, ?int $role_id)
 
 getEditLink (int $id, ?int $role_id)
 
 isSortingHidden (int $id)
 
 getTitleForCriterium (int $id, ?int $role_id, string $criterium)
 

Private Attributes

const TABLE_POSITION_DEFAULT = 9999
 

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
 
- Protected Attributes inherited from ilTable2GUI
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_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
 

Detailed Description

TableGUI class for LTI consumer listing.

Author
Jesús López lopez.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 29 of file class.ilUserRoleStartingPointTableGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilUserRoleStartingPointTableGUI::__construct ( object  $parent_obj,
private Repository  $starting_point_repository,
private ilRbacReview  $rbac_review,
private UIFactory  $ui_factory,
private Renderer  $ui_renderer 
)

Definition at line 33 of file class.ilUserRoleStartingPointTableGUI.php.

39 {
40 $this->setId('usrrolesp');
41
43
44 $this->getItems();
45
46 $this->setLimit(9999);
47 $this->setTitle($this->lng->txt('user_role_starting_point'));
48
49 $this->addColumn($this->lng->txt('user_order'));
50 $this->addColumn($this->lng->txt('criteria'));
51 $this->addColumn($this->lng->txt('starting_page'));
52 $this->addColumn($this->lng->txt('actions'));
53 $this->setFormAction($this->ctrl->getFormAction($parent_obj));
54 $this->setRowTemplate('tpl.user_role_starting_point_row.html', 'components/ILIAS/User');
55 $this->addCommandButton('saveOrder', $this->lng->txt('save_order'));
56
57 $this->setExternalSorting(true);
58 }
setLimit(int $a_limit=0, int $a_default_limit=0)
set max.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
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)
setExternalSorting(bool $a_val)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setId(string $a_val)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), ilTable2GUI\addColumn(), ilTable2GUI\addCommandButton(), ILIAS\Repository\ctrl(), getItems(), ILIAS\Repository\lng(), ilTable2GUI\setExternalSorting(), ilTable2GUI\setFormAction(), ilTable2GUI\setId(), ilTable2GUI\setLimit(), ilTable2GUI\setRowTemplate(), and ilTable2GUI\setTitle().

+ Here is the call graph for this function:

Member Function Documentation

◆ fillRow()

ilUserRoleStartingPointTableGUI::fillRow ( array  $row_data)
protected
Parameters
array<string|int>$row_data

Reimplemented from ilTable2GUI.

Definition at line 136 of file class.ilUserRoleStartingPointTableGUI.php.

136 : void
137 {
138 $id = $row_data['id'];
139 $role_id = $row_data['role_id'] ?? null;
140 $this->ctrl->setParameter($this->getParentObject(), 'spid', $id);
141
142 if ($this->isSortingHidden($id)) {
143 $this->tpl->setVariable('HIDDEN', 'hidden');
144 } else {
145 $this->tpl->setVariable('VAL_ID', 'position[' . (string) $id . ']');
146 $this->tpl->setVariable('VAL_POS', $row_data['starting_position']);
147 }
148
149 $this->tpl->setVariable(
150 'TXT_TITLE',
152 $id,
153 $role_id,
154 $row_data['criteria']
155 )
156 );
157
158 $actions = $this->getActions($id, $role_id);
159
160 $this->tpl->setVariable('TXT_PAGE', $row_data['starting_page']);
161
162 $list = $this->ui_factory->dropdown()->standard($actions)->withLabel(
163 $this->lng->txt('actions')
164 );
165
166 $this->tpl->setVariable('ACTION', $this->ui_renderer->render($list));
167 }
getTitleForCriterium(int $id, ?int $role_id, string $criterium)

References ilTable2GUI\$id, ilTable2GUI\$row_data, ILIAS\Repository\ctrl(), getActions(), ilTable2GUI\getParentObject(), getTitleForCriterium(), isSortingHidden(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getActions()

ilUserRoleStartingPointTableGUI::getActions ( int  $id,
?int  $role_id 
)
private
Returns
array<strings>

Definition at line 172 of file class.ilUserRoleStartingPointTableGUI.php.

172 : array
173 {
174 $actions = [];
175
176 $edit_url = $this->getEditLink($id, $role_id);
177
178 $actions[] = $this->ui_factory->link()->standard(
179 $this->lng->txt('edit'),
180 $edit_url
181 );
182
183 if ($id !== $this->starting_point_repository->getDefaultStartingPointID()
184 && $id !== $this->starting_point_repository->getUserStartingPointID()) {
185 $delete_url = $this->ctrl->getLinkTarget(
186 $this->getParentObject(),
187 'deleteStartingPoint'
188 );
189 $actions[] = $this->ui_factory->link()->standard(
190 $this->lng->txt('delete'),
191 $delete_url
192 );
193 }
194
195 return $actions;
196 }

References ilTable2GUI\$id, ILIAS\Repository\ctrl(), getEditLink(), ilTable2GUI\getParentObject(), and ILIAS\Repository\lng().

Referenced by fillRow().

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

◆ getEditLink()

ilUserRoleStartingPointTableGUI::getEditLink ( int  $id,
?int  $role_id 
)
private

Definition at line 198 of file class.ilUserRoleStartingPointTableGUI.php.

198 : string
199 {
200 $cmd = 'initRoleStartingPointForm';
201 if ($id === $this->starting_point_repository->getUserStartingPointID()) {
202 $cmd = 'initUserStartingPointForm';
203 }
204
205 $this->ctrl->setParameter($this->getParentObject(), 'rolid', $role_id);
206 return $this->ctrl->getLinkTargetByClass(
207 get_class($this->getParentObject()),
208 $cmd
209 );
210 }

References ilTable2GUI\$id, ILIAS\Repository\ctrl(), and ilTable2GUI\getParentObject().

Referenced by getActions().

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

◆ getItems()

ilUserRoleStartingPointTableGUI::getItems ( )

Get data.

Definition at line 63 of file class.ilUserRoleStartingPointTableGUI.php.

63 : void
64 {
65 $dc = new ilObjectDataCache();
66
67 $valid_points = $this->starting_point_repository->getPossibleStartingPoints();
68
69 $starting_points = [];
70
71 $available_starting_points = $this->starting_point_repository->getStartingPoints();
72
73 foreach ($available_starting_points as $available_starting_point) {
74 $starting_point_type = $available_starting_point->getStartingPointType();
75 $position = $available_starting_point->getPosition();
76 $sp_text = $this->lng->txt($valid_points[$starting_point_type]) ?? '';
77
78 if ($starting_point_type === Repository::START_REPOSITORY_OBJ
79 && $available_starting_point->getStartingObject() !== null) {
80 $starting_object_ref_id = $available_starting_point->getStartingObject();
81 $object_id = ilObject::_lookupObjId($starting_object_ref_id);
82 $type = $dc->lookupType($object_id);
83 $title = $dc->lookupTitle($object_id);
84 $sp_text = $this->lng->txt('obj_' . $type) . ' '
85 . '<i>"' . $title . '" (' . $starting_object_ref_id . ')</i>';
86 }
87
88 if ($available_starting_point->isRoleBasedStartingPoint()) {
89 $options = unserialize($available_starting_point->getRuleOptions(), ['allowed_classes' => false]);
90
91 $role_obj = ilObjectFactory::getInstanceByObjId((int) $options['role_id'], false);
92 if (!($role_obj instanceof \ilObjRole)) {
93 continue;
94 }
95
96 $starting_points[] = [
97 'id' => $available_starting_point->getId(),
98 'criteria' => $role_obj->getTitle(),
99 'starting_page' => $sp_text,
100 'starting_position' => $position,
101 'role_id' => $role_obj->getId()
102 ];
103 }
104 }
105
106 $default_sp = $this->starting_point_repository->getSystemDefaultStartingPointType();
107 $starting_point = $this->lng->txt($valid_points[$default_sp]);
108 if ($default_sp === Repository::START_REPOSITORY_OBJ) {
109 $starting_object_ref_id = $this->starting_point_repository->getSystemDefaultStartingObject();
110
111 $object_id = ilObject::_lookupObjId($starting_object_ref_id);
112 $type = $dc->lookupType($object_id);
113 $title = $dc->lookupTitle($object_id);
114 $starting_point = $this->lng->txt('obj_' . $type) . ' '
115 . '<i>"' . $title . '" (' . $starting_object_ref_id . ')</i>';
116 }
117
118 $starting_points[] = [
119 'id' => $this->starting_point_repository->getDefaultStartingPointID(),
120 'criteria' => $this->lng->txt('default'),
121 'starting_page' => $starting_point,
122 'starting_position' => self::TABLE_POSITION_DEFAULT
123 ];
124
125 $sorted_starting_points = $this->starting_point_repository->reArrangePositions(
126 ilArrayUtil::sortArray($starting_points, 'starting_position', 'asc', true)
127 );
128
129 $this->setData($sorted_starting_points);
130 }
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
Class ilObjRole.
class ilObjectDataCache
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
static _lookupObjId(int $ref_id)
setData(array $a_data)
Set table data.

References ilTableGUI\$title, ilObject\_lookupObjId(), ilObjectFactory\getInstanceByObjId(), ILIAS\Repository\lng(), ilTable2GUI\setData(), ilArrayUtil\sortArray(), and TABLE_POSITION_DEFAULT.

Referenced by __construct().

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

◆ getTitleForCriterium()

ilUserRoleStartingPointTableGUI::getTitleForCriterium ( int  $id,
?int  $role_id,
string  $criterium 
)
private

Definition at line 220 of file class.ilUserRoleStartingPointTableGUI.php.

224 : string {
225 if ($id === $this->starting_point_repository->getDefaultStartingPointID()
226 || $id === $this->starting_point_repository->getUserStartingPointID()) {
227 return $criterium;
228 }
229
230 $parent_title = '';
231 if ($role_id !== null && ilObject::_lookupType($role_id) === 'role') {
232 $ref_id = $this->rbac_review->getObjectReferenceOfRole($role_id);
233 if ($ref_id !== ROLE_FOLDER_ID) {
234 $parent_title = ' (' . ilObject::_lookupTitle(ilObject::_lookupObjId($ref_id)) . ')';
235 }
236 }
237 return $this->lng->txt('has_role') . ': '
238 . ilObjRole::_getTranslation($criterium)
239 . $parent_title;
240 }
static _getTranslation(string $a_role_title)
static _lookupType(int $id, bool $reference=false)
static _lookupTitle(int $obj_id)
const ROLE_FOLDER_ID
Definition: constants.php:34
$ref_id
Definition: ltiauth.php:66

Referenced by fillRow().

+ Here is the caller graph for this function:

◆ isSortingHidden()

ilUserRoleStartingPointTableGUI::isSortingHidden ( int  $id)
private

Definition at line 212 of file class.ilUserRoleStartingPointTableGUI.php.

212 : bool
213 {
214 if ($id === $this->starting_point_repository->getDefaultStartingPointID()) {
215 return true;
216 }
217 return false;
218 }

References ilTable2GUI\$id.

Referenced by fillRow().

+ Here is the caller graph for this function:

Field Documentation

◆ TABLE_POSITION_DEFAULT

const ilUserRoleStartingPointTableGUI::TABLE_POSITION_DEFAULT = 9999
private

Definition at line 31 of file class.ilUserRoleStartingPointTableGUI.php.

Referenced by getItems().


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