ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Select explorer tree nodes input GUI. More...
Public Member Functions | |
__construct (string $a_title, string $a_postvar, ilExplorerBaseGUI $a_explorer_gui, bool $a_multi=false) | |
getExplHandleCmd () | |
Get explorer handle command function. More... | |
handleExplorerCommand () | |
Handle explorer command. More... | |
getTitleForNodeId ($a_id) | |
Get title for node id (needs to be overwritten, if explorer is not a tree eplorer. More... | |
setValue ($a_value) | |
getValue () | |
setValueByArray (array $a_values) | |
Set value by array. More... | |
checkInput () | |
Check input, strip slashes etc. More... | |
getInput () | |
render (string $a_mode="property_form") | |
Render item. More... | |
insert (ilTemplate $a_tpl) | |
Insert property html. More... | |
getTableFilterHTML () | |
Get HTML for table filter. More... | |
![]() | |
__construct (string $a_title="", string $a_postvar="") | |
executeCommand () | |
getType () | |
setTitle (string $a_title) | |
getTitle () | |
setPostVar (string $a_postvar) | |
getPostVar () | |
getFieldId () | |
setInfo (string $a_info) | |
getInfo () | |
setAlert (string $a_alert) | |
getAlert () | |
setRequired (bool $a_required) | |
getRequired () | |
setDisabled (bool $a_disabled) | |
getDisabled () | |
checkInput () | |
Check input, strip slashes etc. More... | |
setParentForm (ilPropertyFormGUI $a_parentform) | |
getParentForm () | |
setParent (ilFormPropertyGUI $a_val) | |
getParent () | |
getSubForm () | |
hideSubForm () | |
setHiddenTitle (string $a_val) | |
getHiddenTitle () | |
getItemByPostVar (string $a_post_var) | |
Get item by post var. More... | |
serializeData () | |
unserializeData (string $a_data) | |
setParentTable ($a_val) | |
Set parent table. More... | |
getParentTable () | |
Get parent table. More... | |
writeToSession () | |
clearFromSession () | |
readFromSession () | |
getHiddenTag (string $a_post_var, string $a_value) | |
setMulti (bool $a_multi, bool $a_sortable=false, bool $a_addremove=true) | |
getMulti () | |
setMultiValues (array $a_values) | |
getMultiValues () | |
getContentOutsideFormTag () | |
Get content that has to reside outside of the parent form tag, e.g. More... | |
stripSlashesAddSpaceFallback (string $a_str) | |
Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More... | |
getTableFilterLabelFor () | |
Get label "for" attribute value for filter. More... | |
getFormLabelFor () | |
Get label "for" attribute value for form. More... | |
setRequestParam (string $key, $val) | |
This writes the request (aka post) values. More... | |
![]() | |
getTableFilterLabelFor () | |
Get label "for" attribute value. More... | |
Protected Member Functions | |
getInitializationOnLoadCode () | |
![]() | |
symbol () | |
setType (string $a_type) | |
checkParentFormTable () | |
getSessionKey () | |
getMultiIconsHTML () | |
int ($key) | |
intArray ($key) | |
str ($key) | |
raw ($key) | |
strArray ($key) | |
arrayArray ($key) | |
isRequestParamArray (string $key) | |
getRequestParam (string $key, Refinery\Transformation $t) | |
Protected Attributes | |
ilGlobalTemplateInterface | $global_template |
UIServices | $ui |
$value | |
bool | $multi_nodes |
ilExplorerBaseGUI | $explorer_gui |
bool | $disabled = false |
$on_load_code | |
The on load code sould only be added once, otherwise the select link opens two modals and stuff breaks (https://mantis.ilias.de/view.php?id=42821). More... | |
![]() | |
array | $set_params = [] |
ilTable2GUI | $parent_table = null |
ilFormPropertyGUI | $parent_gui = null |
ilCtrl | $ctrl |
ilLanguage | $lng |
string | $type = "" |
string | $title = "" |
string | $postvar = "" |
string | $info = "" |
string | $alert = "" |
bool | $required = false |
ilPropertyFormGUI | $parentform = null |
string | $hidden_title = "" |
bool | $multi = false |
bool | $multi_sortable = false |
bool | $multi_addremove = true |
array | $multi_values = [] |
RequestInterface | $request |
HTTP Services | $http |
Refinery Factory | $refinery = null |
bool | $disabled = false |
ilGlobalTemplateInterface | $global_tpl = null |
Additional Inherited Members | |
![]() | |
static | removeProhibitedCharacters (string $a_text) |
Remove prohibited characters see #19159. More... | |
Select explorer tree nodes input GUI.
Definition at line 28 of file class.ilExplorerSelectInputGUI.php.
ilExplorerSelectInputGUI::__construct | ( | string | $a_title, |
string | $a_postvar, | ||
ilExplorerBaseGUI | $a_explorer_gui, | ||
bool | $a_multi = false |
||
) |
Definition at line 50 of file class.ilExplorerSelectInputGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\lng(), ilFormPropertyGUI\setType(), and ILIAS\Repository\ui().
ilExplorerSelectInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Definition at line 136 of file class.ilExplorerSelectInputGUI.php.
References ilFormPropertyGUI\$lng, getInput(), ilFormPropertyGUI\getRequired(), ilFormPropertyGUI\setAlert(), and ilLanguage\txt().
ilExplorerSelectInputGUI::getExplHandleCmd | ( | ) |
Get explorer handle command function.
Definition at line 72 of file class.ilExplorerSelectInputGUI.php.
Referenced by ilTaxSelectInputGUI\__construct(), and ilRepositorySelector2InputGUI\__construct().
|
protected |
Definition at line 268 of file class.ilExplorerSelectInputGUI.php.
References $on_load_code, ilFormPropertyGUI\getFieldId(), and ILIAS\Repository\ui().
Referenced by ilRepositorySelector2InputGUI\getOnloadCode(), and render().
ilExplorerSelectInputGUI::getInput | ( | ) |
Definition at line 154 of file class.ilExplorerSelectInputGUI.php.
References ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\str(), and ilFormPropertyGUI\strArray().
Referenced by checkInput().
ilExplorerSelectInputGUI::getTableFilterHTML | ( | ) |
Get HTML for table filter.
Implements ilTableFilterItem.
Definition at line 262 of file class.ilExplorerSelectInputGUI.php.
References render().
|
abstract |
Get title for node id (needs to be overwritten, if explorer is not a tree eplorer.
Referenced by handleExplorerCommand(), and render().
ilExplorerSelectInputGUI::getValue | ( | ) |
Definition at line 119 of file class.ilExplorerSelectInputGUI.php.
References $value.
Referenced by handleExplorerCommand(), and render().
ilExplorerSelectInputGUI::handleExplorerCommand | ( | ) |
Handle explorer command.
Definition at line 80 of file class.ilExplorerSelectInputGUI.php.
References getTitleForNodeId(), and getValue().
ilExplorerSelectInputGUI::insert | ( | ilTemplate | $a_tpl | ) |
Insert property html.
Definition at line 252 of file class.ilExplorerSelectInputGUI.php.
References ilTemplate\parseCurrentBlock(), render(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
ilExplorerSelectInputGUI::render | ( | string | $a_mode = "property_form" | ) |
Render item.
Definition at line 166 of file class.ilExplorerSelectInputGUI.php.
References ilFormPropertyGUI\$lng, $on_load_code, ILIAS\UI\examples\Input\Field\Checkbox\disabled(), ilFormPropertyGUI\getFieldId(), getInitializationOnLoadCode(), ilLinkButton\getInstance(), ilFormPropertyGUI\getPostVar(), getTitleForNodeId(), getValue(), and ilLanguage\txt().
Referenced by getTableFilterHTML(), and insert().
ilExplorerSelectInputGUI::setValue | ( | $a_value | ) |
string|int|array | node id or array of node ids (multi mode) |
Definition at line 103 of file class.ilExplorerSelectInputGUI.php.
Referenced by ilCronOerHarvester\addCustomSettingsToForm(), and setValueByArray().
ilExplorerSelectInputGUI::setValueByArray | ( | array | $a_values | ) |
Set value by array.
Definition at line 127 of file class.ilExplorerSelectInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and setValue().
|
protected |
Definition at line 39 of file class.ilExplorerSelectInputGUI.php.
|
protected |
Definition at line 38 of file class.ilExplorerSelectInputGUI.php.
Referenced by ilRepositorySelector2InputGUI\getExplorerGUI().
|
protected |
Definition at line 30 of file class.ilExplorerSelectInputGUI.php.
|
protected |
Definition at line 37 of file class.ilExplorerSelectInputGUI.php.
|
protected |
The on load code sould only be added once, otherwise the select link opens two modals and stuff breaks (https://mantis.ilias.de/view.php?id=42821).
This is only necessary if the input is rendered twice, and might lead to problems if the post var is changed in between.
Definition at line 48 of file class.ilExplorerSelectInputGUI.php.
Referenced by getInitializationOnLoadCode(), and render().
|
protected |
Definition at line 31 of file class.ilExplorerSelectInputGUI.php.
|
protected |
Definition at line 36 of file class.ilExplorerSelectInputGUI.php.
Referenced by getValue().