ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilDclGenericMultiInputGUI. More...
Public Member Functions | |
getLimit () | |
setLimit ($limit) | |
set a limit of possible lines, 0 = no limit More... | |
isAllowEmptyFields () | |
setAllowEmptyFields ($allow_empty_fields) | |
__construct ($a_title="", $a_postvar="") | |
Constructor. More... | |
getHook ($key) | |
addHook ($key, $options) | |
removeHook ($key) | |
addInput (ilFormPropertyGUI $input, $options=array()) | |
isShowLabel () | |
setShowLabel ($show_label) | |
getInputs () | |
Get Options. More... | |
setMulti ($a_multi, $a_sortable=false, $a_addremove=true) | |
setValue ($a_value) | |
Set Value. More... | |
getValue () | |
Get Value. More... | |
setValueByArray ($a_values) | |
Set value by array. More... | |
checkInput () | |
Check input, strip slashes etc. More... | |
addCustomAttribute ($key, $value, $override=false) | |
getCustomAttributes () | |
render ($iterator_id=0, $clean_render=false) | |
Render item. More... | |
insert (&$a_tpl) | |
Insert property html. More... | |
getTableFilterHTML () | |
Get HTML for table filter. More... | |
getToolbarHTML () | |
Get HTML for toolbar. More... | |
getSubItems () | |
Public Member Functions inherited from ilFormPropertyGUI | |
__construct ($a_title="", $a_postvar="") | |
Constructor. More... | |
executeCommand () | |
Execute command. More... | |
getType () | |
Get Type. More... | |
setTitle ($a_title) | |
Set Title. More... | |
getTitle () | |
Get Title. More... | |
setPostVar ($a_postvar) | |
Set Post Variable. More... | |
getPostVar () | |
Get Post Variable. More... | |
getFieldId () | |
Get Post Variable. More... | |
setInfo ($a_info) | |
Set Information Text. More... | |
getInfo () | |
Get Information Text. More... | |
setAlert ($a_alert) | |
Set Alert Text. More... | |
getAlert () | |
Get Alert Text. More... | |
setRequired ($a_required) | |
Set Required. More... | |
getRequired () | |
Get Required. More... | |
setDisabled ($a_disabled) | |
Set Disabled. More... | |
getDisabled () | |
Get Disabled. More... | |
checkInput () | |
Check input, strip slashes etc. More... | |
setParentForm ($a_parentform) | |
Set Parent Form. More... | |
getParentForm () | |
Get Parent Form. More... | |
setParent ($a_val) | |
Set Parent GUI object. More... | |
getParent () | |
Get Parent GUI object. More... | |
getSubForm () | |
Get sub form html. More... | |
hideSubForm () | |
Sub form hidden on init? More... | |
setHiddenTitle ($a_val) | |
Set hidden title (for screenreaders) More... | |
getHiddenTitle () | |
Get hidden title. More... | |
getItemByPostVar ($a_post_var) | |
Get item by post var. More... | |
serializeData () | |
serialize data More... | |
unserializeData ($a_data) | |
unserialize data More... | |
writeToSession () | |
Write to session. More... | |
clearFromSession () | |
Clear session value. More... | |
readFromSession () | |
Read from session. More... | |
getHiddenTag ($a_post_var, $a_value) | |
Get hidden tag (used for disabled properties) More... | |
setMulti ($a_multi, $a_sortable=false, $a_addremove=true) | |
Set Multi. More... | |
getMulti () | |
Get Multi. More... | |
setMultiValues (array $a_values) | |
Set multi values. More... | |
getMultiValues () | |
Get multi values. More... | |
getContentOutsideFormTag () | |
Get content that has to reside outside of the parent form tag, e.g. More... | |
stripSlashesAddSpaceFallback ($a_str) | |
Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More... | |
Data Fields | |
const | HOOK_IS_LINE_REMOVABLE = "hook_is_line_removable" |
const | HOOK_IS_INPUT_DISABLED = "hook_is_disabled" |
const | HOOK_BEFORE_INPUT_RENDER = "hook_before_render" |
Protected Member Functions | |
createInputPostVar ($iterator_id, ilFormPropertyGUI $input) | |
Protected Member Functions inherited from ilFormPropertyGUI | |
setType ($a_type) | |
Set Type. More... | |
getMultiIconsHTML () | |
Get HTML for multiple value icons. More... | |
Protected Attributes | |
$cust_attr = array() | |
$value | |
$inputs = array() | |
$input_options = array() | |
$hooks = array() | |
$line_values = array() | |
$template_dir = '' | |
$post_var_cache = array() | |
$show_label = false | |
$limit = 0 | |
$allow_empty_fields = false | |
Protected Attributes inherited from ilFormPropertyGUI | |
$ctrl | |
$lng | |
$type | |
$title | |
$postvar | |
$info | |
$alert | |
$required = false | |
$parentgui | |
$parentform | |
$hidden_title = "" | |
$multi = false | |
$multi_sortable = false | |
$multi_addremove = true | |
$multi_values | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilFormPropertyGUI | |
static | removeProhibitedCharacters ($a_text) |
Remove prohibited characters see #19159. More... | |
Class ilDclGenericMultiInputGUI.
Definition at line 11 of file class.ilDclGenericMultiInputGUI.php.
ilDclGenericMultiInputGUI::__construct | ( | $a_title = "" , |
|
$a_postvar = "" |
|||
) |
Constructor.
string | $a_title | Title |
string | $a_postvar | Post Variable |
Definition at line 106 of file class.ilDclGenericMultiInputGUI.php.
References setMulti(), and ilFormPropertyGUI\setType().
ilDclGenericMultiInputGUI::addCustomAttribute | ( | $key, | |
$value, | |||
$override = false |
|||
) |
$key | ||
$value | ||
bool | false | $override |
Definition at line 306 of file class.ilDclGenericMultiInputGUI.php.
Referenced by render().
ilDclGenericMultiInputGUI::addHook | ( | $key, | |
$options | |||
) |
array | $options |
Definition at line 130 of file class.ilDclGenericMultiInputGUI.php.
References $key, and $options.
ilDclGenericMultiInputGUI::addInput | ( | ilFormPropertyGUI | $input, |
$options = array() |
|||
) |
$input | ||
array | $options |
Definition at line 157 of file class.ilDclGenericMultiInputGUI.php.
References $options, ilFormPropertyGUI\getPostVar(), and ilFormPropertyGUI\setRequired().
ilDclGenericMultiInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Definition at line 260 of file class.ilDclGenericMultiInputGUI.php.
References $_POST, $inputs, ilFormPropertyGUI\$lng, $valid, array, ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), ilFormPropertyGUI\setAlert(), and ilUtil\stripSlashes().
|
protected |
$iterator_id | ||
ilFormPropertyGUI | $input |
Definition at line 331 of file class.ilDclGenericMultiInputGUI.php.
References ilFormPropertyGUI\getMulti(), and ilFormPropertyGUI\getPostVar().
Referenced by render().
ilDclGenericMultiInputGUI::getCustomAttributes | ( | ) |
Definition at line 319 of file class.ilDclGenericMultiInputGUI.php.
References $cust_attr, and array.
Referenced by render().
ilDclGenericMultiInputGUI::getHook | ( | $key | ) |
Definition at line 117 of file class.ilDclGenericMultiInputGUI.php.
References $key.
Referenced by render().
ilDclGenericMultiInputGUI::getInputs | ( | ) |
Get Options.
Definition at line 187 of file class.ilDclGenericMultiInputGUI.php.
References $inputs.
ilDclGenericMultiInputGUI::getLimit | ( | ) |
ilDclGenericMultiInputGUI::getSubItems | ( | ) |
bool | false | $a_sortable |
Definition at line 529 of file class.ilDclGenericMultiInputGUI.php.
References array.
ilDclGenericMultiInputGUI::getTableFilterHTML | ( | ) |
Get HTML for table filter.
Definition at line 479 of file class.ilDclGenericMultiInputGUI.php.
References $html, and render().
ilDclGenericMultiInputGUI::getToolbarHTML | ( | ) |
Get HTML for toolbar.
Definition at line 490 of file class.ilDclGenericMultiInputGUI.php.
References $html, and render().
ilDclGenericMultiInputGUI::getValue | ( | ) |
ilDclGenericMultiInputGUI::insert | ( | & | $a_tpl | ) |
Insert property html.
Definition at line 439 of file class.ilDclGenericMultiInputGUI.php.
References $counter, $data, $DIC, $i, $output, $tpl, array, ilFormPropertyGUI\getFieldId(), ilFormPropertyGUI\getMulti(), and render().
ilDclGenericMultiInputGUI::isAllowEmptyFields | ( | ) |
Definition at line 85 of file class.ilDclGenericMultiInputGUI.php.
References $allow_empty_fields.
ilDclGenericMultiInputGUI::isShowLabel | ( | ) |
Definition at line 167 of file class.ilDclGenericMultiInputGUI.php.
References $show_label.
Referenced by render().
ilDclGenericMultiInputGUI::removeHook | ( | $key | ) |
$key |
Definition at line 141 of file class.ilDclGenericMultiInputGUI.php.
References $key.
ilDclGenericMultiInputGUI::render | ( | $iterator_id = 0 , |
|
$clean_render = false |
|||
) |
Render item.
int | $iterator_id |
ilException |
Definition at line 349 of file class.ilDclGenericMultiInputGUI.php.
References $inputs, $key, $tpl, $value, ilGlyphGUI\ADD, addCustomAttribute(), createInputPostVar(), ilGlyphGUI\DOWN, ilGlyphGUI\get(), getCustomAttributes(), ilFormPropertyGUI\getDisabled(), getHook(), ilFormPropertyGUI\getMulti(), getValue(), isShowLabel(), ilGlyphGUI\REMOVE, and ilGlyphGUI\UP.
Referenced by getTableFilterHTML(), getToolbarHTML(), and insert().
ilDclGenericMultiInputGUI::setAllowEmptyFields | ( | $allow_empty_fields | ) |
boolean | $allow_empty_fields |
Definition at line 94 of file class.ilDclGenericMultiInputGUI.php.
References $allow_empty_fields.
ilDclGenericMultiInputGUI::setLimit | ( | $limit | ) |
set a limit of possible lines, 0 = no limit
mixed | $limit |
Definition at line 76 of file class.ilDclGenericMultiInputGUI.php.
References $limit.
ilDclGenericMultiInputGUI::setMulti | ( | $a_multi, | |
$a_sortable = false , |
|||
$a_addremove = true |
|||
) |
bool | $a_multi |
Definition at line 196 of file class.ilDclGenericMultiInputGUI.php.
Referenced by __construct(), ilDclDateSelectionFieldRepresentation\buildOptionsInput(), and ilDclTextSelectionFieldRepresentation\buildOptionsInput().
ilDclGenericMultiInputGUI::setShowLabel | ( | $show_label | ) |
boolean | $show_label |
Definition at line 176 of file class.ilDclGenericMultiInputGUI.php.
References $show_label.
ilDclGenericMultiInputGUI::setValue | ( | $a_value | ) |
Set Value.
string | $a_value | Value |
Definition at line 208 of file class.ilDclGenericMultiInputGUI.php.
References $key, and IL_CAL_DATE.
Referenced by setValueByArray().
ilDclGenericMultiInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 244 of file class.ilDclGenericMultiInputGUI.php.
References $data, ilFormPropertyGUI\getMulti(), ilFormPropertyGUI\getPostVar(), and setValue().
|
protected |
Definition at line 59 of file class.ilDclGenericMultiInputGUI.php.
Referenced by isAllowEmptyFields(), and setAllowEmptyFields().
|
protected |
Definition at line 19 of file class.ilDclGenericMultiInputGUI.php.
Referenced by getCustomAttributes().
|
protected |
Definition at line 35 of file class.ilDclGenericMultiInputGUI.php.
|
protected |
Definition at line 31 of file class.ilDclGenericMultiInputGUI.php.
|
protected |
Definition at line 27 of file class.ilDclGenericMultiInputGUI.php.
Referenced by checkInput(), getInputs(), and render().
|
protected |
Definition at line 55 of file class.ilDclGenericMultiInputGUI.php.
Referenced by getLimit(), and setLimit().
|
protected |
Definition at line 39 of file class.ilDclGenericMultiInputGUI.php.
|
protected |
Definition at line 47 of file class.ilDclGenericMultiInputGUI.php.
|
protected |
Definition at line 51 of file class.ilDclGenericMultiInputGUI.php.
Referenced by isShowLabel(), and setShowLabel().
|
protected |
Definition at line 43 of file class.ilDclGenericMultiInputGUI.php.
|
protected |
Definition at line 23 of file class.ilDclGenericMultiInputGUI.php.
Referenced by addCustomAttribute(), and render().
const ilDclGenericMultiInputGUI::HOOK_BEFORE_INPUT_RENDER = "hook_before_render" |
Definition at line 15 of file class.ilDclGenericMultiInputGUI.php.
const ilDclGenericMultiInputGUI::HOOK_IS_INPUT_DISABLED = "hook_is_disabled" |
Definition at line 14 of file class.ilDclGenericMultiInputGUI.php.
const ilDclGenericMultiInputGUI::HOOK_IS_LINE_REMOVABLE = "hook_is_line_removable" |
Definition at line 13 of file class.ilDclGenericMultiInputGUI.php.