ILIAS
trunk Revision v11.0_alpha-1843-g9e1fad99175
|
This class represents a repository selector in a property form. More...
Public Member Functions | |
__construct (string $a_title="", string $a_postvar="") | |
setValue ($a_value) | |
getValue () | |
setValueByArray (array $a_values) | |
setSelectText (string $a_val) | |
getSelectText () | |
setHeaderMessage (string $a_val) | |
getHeaderMessage () | |
setClickableTypes (array $a_types) | |
getClickableTypes () | |
checkInput () | |
getInput () | |
showRepositorySelection () | |
selectRepositoryItem () | |
reset () | |
render ($a_mode="property_form") | |
insert (ilTemplate $a_tpl) | |
getTableFilterHTML () | |
Get input item HTML to be inserted into table filters. 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 | |
getHighlightedNode () | |
getVisibleTypes () | |
![]() | |
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 | |
array | $clickable_types = [] |
string | $hm = "" |
string | $select_text = "" |
ilGlobalTemplateInterface | $tpl |
ilTree | $tree |
ilObjUser | $user |
ilObjectDataCache | $obj_data_cache |
array | $options = [] |
int | $value = 0 |
array | $container_types = array("root", "cat", "grp", "fold", "crs") |
![]() | |
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... | |
This class represents a repository selector in a property form.
The implementation is kind of beta. It looses all other inputs, if the selector link is used.
Definition at line 30 of file class.ilRepositorySelectorInputGUI.php.
ilRepositorySelectorInputGUI::__construct | ( | string | $a_title = "" , |
string | $a_postvar = "" |
||
) |
Definition at line 43 of file class.ilRepositorySelectorInputGUI.php.
References $DIC, ilFormPropertyGUI\$lng, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), setClickableTypes(), setHeaderMessage(), setSelectText(), ilFormPropertyGUI\setType(), ilLanguage\txt(), and ILIAS\Repository\user().
ilRepositorySelectorInputGUI::checkInput | ( | ) |
Definition at line 113 of file class.ilRepositorySelectorInputGUI.php.
References ilFormPropertyGUI\$lng, ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), ilFormPropertyGUI\setAlert(), ilFormPropertyGUI\str(), and ilLanguage\txt().
ilRepositorySelectorInputGUI::getClickableTypes | ( | ) |
Definition at line 108 of file class.ilRepositorySelectorInputGUI.php.
References $clickable_types.
Referenced by getVisibleTypes(), render(), and showRepositorySelection().
ilRepositorySelectorInputGUI::getHeaderMessage | ( | ) |
Definition at line 98 of file class.ilRepositorySelectorInputGUI.php.
References $hm.
Referenced by showRepositorySelection().
|
protected |
Definition at line 256 of file class.ilRepositorySelectorInputGUI.php.
References $tree, ilObject\_lookupType(), ilTree\getParentId(), getValue(), and getVisibleTypes().
Referenced by showRepositorySelection().
ilRepositorySelectorInputGUI::getInput | ( | ) |
Definition at line 124 of file class.ilRepositorySelectorInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and ilFormPropertyGUI\str().
ilRepositorySelectorInputGUI::getSelectText | ( | ) |
Definition at line 88 of file class.ilRepositorySelectorInputGUI.php.
References $select_text.
Referenced by render().
ilRepositorySelectorInputGUI::getTableFilterHTML | ( | ) |
Get input item HTML to be inserted into table filters.
Implements ilTableFilterItem.
Definition at line 250 of file class.ilRepositorySelectorInputGUI.php.
References render().
ilRepositorySelectorInputGUI::getValue | ( | ) |
Definition at line 73 of file class.ilRepositorySelectorInputGUI.php.
References $value.
Referenced by getHighlightedNode(), render(), and showRepositorySelection().
|
protected |
Definition at line 267 of file class.ilRepositorySelectorInputGUI.php.
References getClickableTypes().
Referenced by getHighlightedNode(), and showRepositorySelection().
ilRepositorySelectorInputGUI::insert | ( | ilTemplate | $a_tpl | ) |
Definition at line 243 of file class.ilRepositorySelectorInputGUI.php.
References ilTemplate\parseCurrentBlock(), render(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
ilRepositorySelectorInputGUI::render | ( | $a_mode = "property_form" | ) |
Definition at line 180 of file class.ilRepositorySelectorInputGUI.php.
References ilFormPropertyGUI\$ctrl, ilFormPropertyGUI\$lng, $nd, $obj_data_cache, ilFormPropertyGUI\$parent_gui, ilFormPropertyGUI\$title, $tree, ILIAS\UICore\GlobalTemplate\get(), getClickableTypes(), ilFormPropertyGUI\getFieldId(), ilTree\getNodeData(), ilFormPropertyGUI\getParentTable(), ilFormPropertyGUI\getPostVar(), getSelectText(), getValue(), ilLegacyFormElementsUtil\prepareFormOutput(), ROOT_FOLDER_ID, ILIAS\UICore\GlobalTemplate\setVariable(), and ilLanguage\txt().
Referenced by getTableFilterHTML(), and insert().
ilRepositorySelectorInputGUI::reset | ( | ) |
Definition at line 170 of file class.ilRepositorySelectorInputGUI.php.
References ilFormPropertyGUI\$ctrl, setValue(), and ilFormPropertyGUI\writeToSession().
ilRepositorySelectorInputGUI::selectRepositoryItem | ( | ) |
Definition at line 160 of file class.ilRepositorySelectorInputGUI.php.
References ilFormPropertyGUI\$ctrl, setValue(), and ilFormPropertyGUI\writeToSession().
ilRepositorySelectorInputGUI::setClickableTypes | ( | array | $a_types | ) |
Definition at line 103 of file class.ilRepositorySelectorInputGUI.php.
Referenced by __construct().
ilRepositorySelectorInputGUI::setHeaderMessage | ( | string | $a_val | ) |
Definition at line 93 of file class.ilRepositorySelectorInputGUI.php.
Referenced by __construct().
ilRepositorySelectorInputGUI::setSelectText | ( | string | $a_val | ) |
Definition at line 83 of file class.ilRepositorySelectorInputGUI.php.
Referenced by __construct(), ilLPTableBaseGUI\initBaseFilter(), ilMStListCoursesTableGUI\initFilter(), ilMStShowUserCoursesTableGUI\initFilter(), and ilUserTableGUI\initFilter().
ilRepositorySelectorInputGUI::setValue | ( | $a_value | ) |
int | string | $a_value |
Definition at line 68 of file class.ilRepositorySelectorInputGUI.php.
References ilFormPropertyGUI\int().
Referenced by reset(), selectRepositoryItem(), and setValueByArray().
ilRepositorySelectorInputGUI::setValueByArray | ( | array | $a_values | ) |
Definition at line 78 of file class.ilRepositorySelectorInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and setValue().
ilRepositorySelectorInputGUI::showRepositorySelection | ( | ) |
Definition at line 129 of file class.ilRepositorySelectorInputGUI.php.
References ilFormPropertyGUI\$ctrl, $tpl, getClickableTypes(), getHeaderMessage(), getHighlightedNode(), ilFormPropertyGUI\getPostVar(), getValue(), getVisibleTypes(), ILIAS\UICore\GlobalTemplate\setContent(), and ilCtrl\setParameter().
|
protected |
Definition at line 32 of file class.ilRepositorySelectorInputGUI.php.
Referenced by getClickableTypes().
|
protected |
Definition at line 41 of file class.ilRepositorySelectorInputGUI.php.
|
protected |
Definition at line 33 of file class.ilRepositorySelectorInputGUI.php.
Referenced by getHeaderMessage().
|
protected |
Definition at line 38 of file class.ilRepositorySelectorInputGUI.php.
Referenced by render().
|
protected |
Definition at line 39 of file class.ilRepositorySelectorInputGUI.php.
|
protected |
Definition at line 34 of file class.ilRepositorySelectorInputGUI.php.
Referenced by getSelectText().
|
protected |
Definition at line 35 of file class.ilRepositorySelectorInputGUI.php.
Referenced by showRepositorySelection().
|
protected |
Definition at line 36 of file class.ilRepositorySelectorInputGUI.php.
Referenced by getHighlightedNode(), and render().
|
protected |
Definition at line 37 of file class.ilRepositorySelectorInputGUI.php.
|
protected |
Definition at line 40 of file class.ilRepositorySelectorInputGUI.php.
Referenced by getValue().