ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilIdentifiedMultiValuesInputGUI 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 ilIdentifiedMultiValuesInputGUI:
+ Collaboration diagram for ilIdentifiedMultiValuesInputGUI:

Public Member Functions

 __construct ($a_title="", $a_postvar="")
 
 getElementAddCmd ()
 
 setElementAddCmd (string $element_add_cmd)
 
 getElementRemoveCmd ()
 
 setElementRemoveCmd (string $element_remove_cmd)
 
 getElementMoveUpCommand ()
 
 setElementMoveUpCommand (string $element_move_up_cmd)
 
 getElementMoveDownCommand ()
 
 setElementMoveDownCommand (string $element_move_down_cmd)
 
 setValues ($values)
 
 getValues ()
 
 setValue ($value)
 
 getValue ()
 
 setMultiValues (array $values)
 
 getMultiValues ()
 
 setIdentifiedMultiValues ($values)
 
 getIdentifiedMultiValues ()
 
 setValueByArray (array $a_values)
 
 getInput ()
 
 checkInput ()
 
 onCheckInput ()
 
 prepareReprintable (assQuestion $question)
 
- Public Member Functions inherited from ilTextInputGUI
 __construct (string $a_title="", string $a_postvar="")
 
 setValue ($a_value)
 
 getValue ()
 
 setValidationFailureMessage (string $a_msg)
 
 getValidationFailureMessage ()
 
 setValidationRegexp (string $a_value)
 
 getValidationRegexp ()
 
 setMaxLength (?int $a_maxlength)
 
 getMaxLength ()
 
 setSize (int $a_size)
 
 setInlineStyle (string $a_style)
 
 getInlineStyle ()
 
 setCssClass (string $a_class)
 
 getCssClass ()
 
 setValueByArray (array $a_values)
 
 getSize ()
 
 setSuffix (string $a_value)
 
 getSuffix ()
 
 setInputType (string $a_type)
 set input type More...
 
 getInputType ()
 
 setSubmitFormOnEnter (bool $a_val)
 
 getSubmitFormOnEnter ()
 
 checkInput ()
 
 getInput ()
 
 getDataSource ()
 
 setDataSource (string $href, ?string $a_delimiter=null)
 
 setDataSourceSubmitOnSelection (bool $a_stat)
 
 getDataSourceSubmitOnSelection ()
 
 setDataSourceSubmitUrl (string $a_url)
 
 getDataSourceSubmitUrl ()
 
 setMultiValues (array $a_values)
 
 render (string $a_mode="")
 
 insert (ilTemplate $a_tpl)
 
 getTableFilterHTML ()
 Get input item HTML to be inserted into table filters. More...
 
 getToolbarHTML ()
 Get input item HTML to be inserted into ilToolbarGUI. More...
 
 setDisableHtmlAutoComplete (bool $autocomplete)
 
 isHtmlAutoCompleteDisabled ()
 
 getPostValueForComparison ()
 
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem (ilFormPropertyGUI $a_item)
 
 getSubItems ()
 
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively More...
 
 checkSubItemsInput ()
 Check SubItems. More...
 
 getSubForm ()
 
 getItemByPostVar (string $a_post_var)
 
- Public Member Functions inherited from ilFormPropertyGUI
 __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...
 
- Public Member Functions inherited from ilTableFilterItem
 getTableFilterLabelFor ()
 Get label "for" attribute value. More...
 

Data Fields

const ELEMENT_DEFAULT_ADD_CMD = 'addElement'
 
const ELEMENT_DEFAULT_REMOVE_CMD = 'removeElement'
 
const ELEMENT_DEFAULT_MOVE_UP_CMD = 'moveUpElement'
 
const ELEMENT_DEFAULT_MOVE_DOWN_CMD = 'moveDownElement'
 

Protected Member Functions

 getMultiValueSubFieldId ($identifier, $sub_field_index)
 
 getMultiValuePosIndexedFieldId ($identifier, $position_index)
 
 getMultiValuePosIndexedSubFieldId ($identifier, $sub_field_index, $position_index)
 
 getFieldIdFromPostVar ($temp_post_var)
 
 getPostVarSubField ($sub_field_index)
 
 getMultiValuePostVarSubField ($identifier, $sub_field_index)
 
 getMultiValuePostVarSubFieldPosIndexed ($identifier, $sub_field_index, $position_index)
 
 getMultiValuePostVarPosIndexed ($identifier, $positionIndex)
 
 getMultiValuePostVar ($identifier)
 
 buildMultiValueSubmitVar ($identifier, $position_index, $submit_cmd)
 
 setIdentifiedMultiValuesByArray ($a_values)
 
 prepareMultiValuesInput ($values)
 
 prepareMultiValuesSubmit ($values)
 
 getFormValuesManipulators ()
 
 addFormValuesManipulator (ilFormValuesManipulator $manipulator)
 
 getSubFieldCompletedPostVar ($subFieldIndex, $elem_post_var)
 
- Protected Member Functions inherited from ilFormPropertyGUI
 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

string $element_add_cmd = self::ELEMENT_DEFAULT_ADD_CMD
 
string $element_remove_cmd = self::ELEMENT_DEFAULT_REMOVE_CMD
 
string $element_move_up_cmd = self::ELEMENT_DEFAULT_MOVE_UP_CMD
 
string $element_move_down_cmd = self::ELEMENT_DEFAULT_MOVE_DOWN_CMD
 
 $identified_multi_values = []
 
 $formValuesManipulationChain = []
 
- Protected Attributes inherited from ilTextInputGUI
 $value = null
 
int $maxlength = 200
 
int $size = 40
 
string $validationRegexp = ""
 
string $validationFailureMessage = ''
 
string $suffix = ""
 
string $style_css = ""
 
string $css_class = ""
 
string $ajax_datasource = ""
 
string $ajax_datasource_delimiter = null
 
bool $ajax_datasource_commit = false
 
string $ajax_datasource_commit_url = ""
 
bool $submit_form_on_enter = false
 
bool $autocomplete_disabled = false
 
string $input_type = ""
 
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
array $sub_items = array()
 
- Protected Attributes inherited from ilFormPropertyGUI
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 Public Member Functions inherited from ilFormPropertyGUI
static removeProhibitedCharacters (string $a_text)
 Remove prohibited characters see #19159. More...
 

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

Author
Björn Heyser bheys.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de

Definition at line 22 of file class.ilIdentifiedMultiValuesInputGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilIdentifiedMultiValuesInputGUI::__construct (   $a_title = "",
  $a_postvar = "" 
)

Definition at line 37 of file class.ilIdentifiedMultiValuesInputGUI.php.

References ILIAS\GlobalScreen\Provider\__construct(), and addFormValuesManipulator().

38  {
39  parent::__construct($a_title, $a_postvar);
40 
42  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
addFormValuesManipulator(ilFormValuesManipulator $manipulator)
+ Here is the call graph for this function:

Member Function Documentation

◆ addFormValuesManipulator()

ilIdentifiedMultiValuesInputGUI::addFormValuesManipulator ( ilFormValuesManipulator  $manipulator)
protected

Definition at line 258 of file class.ilIdentifiedMultiValuesInputGUI.php.

Referenced by ilAssOrderingImagesInputGUI\__construct(), ilAssOrderingTextsInputGUI\__construct(), __construct(), ilAssNestedOrderingElementsInputGUI\__construct(), and ilMultipleImagesInputGUI\__construct().

258  : void
259  {
260  $this->formValuesManipulationChain[] = $manipulator;
261  }
+ Here is the caller graph for this function:

◆ buildMultiValueSubmitVar()

ilIdentifiedMultiValuesInputGUI::buildMultiValueSubmitVar (   $identifier,
  $position_index,
  $submit_cmd 
)
protected

Definition at line 191 of file class.ilIdentifiedMultiValuesInputGUI.php.

Referenced by ilMultipleImagesInputGUI\render().

191  : string
192  {
193  $elem_submit_var = "cmd[{$submit_cmd}][{$this->getFieldId()}]";
194  $elem_submit_var .= "[$identifier][$position_index]";
195 
196  return $elem_submit_var;
197  }
+ Here is the caller graph for this function:

◆ checkInput()

ilIdentifiedMultiValuesInputGUI::checkInput ( )
final

Definition at line 227 of file class.ilIdentifiedMultiValuesInputGUI.php.

References onCheckInput().

227  : bool
228  {
229  return $this->onCheckInput();
230  }
+ Here is the call graph for this function:

◆ getElementAddCmd()

ilIdentifiedMultiValuesInputGUI::getElementAddCmd ( )

Definition at line 44 of file class.ilIdentifiedMultiValuesInputGUI.php.

References $element_add_cmd.

44  : string
45  {
47  }

◆ getElementMoveDownCommand()

ilIdentifiedMultiValuesInputGUI::getElementMoveDownCommand ( )

◆ getElementMoveUpCommand()

ilIdentifiedMultiValuesInputGUI::getElementMoveUpCommand ( )

Definition at line 64 of file class.ilIdentifiedMultiValuesInputGUI.php.

References $element_move_up_cmd.

64  : string
65  {
67  }

◆ getElementRemoveCmd()

ilIdentifiedMultiValuesInputGUI::getElementRemoveCmd ( )

Definition at line 54 of file class.ilIdentifiedMultiValuesInputGUI.php.

References $element_remove_cmd.

54  : string
55  {
57  }

◆ getFieldIdFromPostVar()

ilIdentifiedMultiValuesInputGUI::getFieldIdFromPostVar (   $temp_post_var)
protected

Definition at line 146 of file class.ilIdentifiedMultiValuesInputGUI.php.

References ilFormPropertyGUI\getFieldId(), ilFormPropertyGUI\getPostVar(), and ilFormPropertyGUI\setPostVar().

Referenced by getMultiValuePosIndexedFieldId(), getMultiValuePosIndexedSubFieldId(), and getMultiValueSubFieldId().

146  : string
147  {
148  $basic_post_var = $this->getPostVar();
149  $this->setPostVar($temp_post_var);
150 
151  // uses getPostVar() internally, our postvar does not have the counter included
152  $multi_value_field_id = $this->getFieldId();
153  // now ALL brackets ("[", "]") are escaped, even the ones for the counter
154 
155  $this->setPostVar($basic_post_var);
156  return $multi_value_field_id;
157  }
setPostVar(string $a_postvar)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFormValuesManipulators()

ilIdentifiedMultiValuesInputGUI::getFormValuesManipulators ( )
protected

Definition at line 253 of file class.ilIdentifiedMultiValuesInputGUI.php.

References $formValuesManipulationChain.

Referenced by prepareMultiValuesInput(), and prepareMultiValuesSubmit().

+ Here is the caller graph for this function:

◆ getIdentifiedMultiValues()

◆ getInput()

ilIdentifiedMultiValuesInputGUI::getInput ( )
Returns
string[]

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

References ilFormPropertyGUI\arrayArray(), ilFormPropertyGUI\getPostVar(), and prepareMultiValuesSubmit().

Referenced by ilMultipleTextsInputGUI\onCheckInput(), and ilMultipleImagesInputGUI\onCheckInput().

220  : array
221  {
222  $values = $this->arrayArray($this->getPostVar());
223 
224  return $this->prepareMultiValuesSubmit($values);
225  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMultiValuePosIndexedFieldId()

ilIdentifiedMultiValuesInputGUI::getMultiValuePosIndexedFieldId (   $identifier,
  $position_index 
)
protected

Definition at line 134 of file class.ilIdentifiedMultiValuesInputGUI.php.

References getFieldIdFromPostVar(), and getMultiValuePostVarPosIndexed().

Referenced by ilMultipleTextsInputGUI\render().

134  : string
135  {
136  $temp_post_var = $this->getMultiValuePostVarPosIndexed($identifier, $position_index);
137  return $this->getFieldIdFromPostVar($temp_post_var);
138  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMultiValuePosIndexedSubFieldId()

ilIdentifiedMultiValuesInputGUI::getMultiValuePosIndexedSubFieldId (   $identifier,
  $sub_field_index,
  $position_index 
)
protected

Definition at line 140 of file class.ilIdentifiedMultiValuesInputGUI.php.

References getFieldIdFromPostVar(), and getMultiValuePostVarSubFieldPosIndexed().

Referenced by ilMultipleTextsInputGUI\render(), and ilMultipleImagesInputGUI\render().

140  : string
141  {
142  $temp_post_var = $this->getMultiValuePostVarSubFieldPosIndexed($identifier, $sub_field_index, $position_index);
143  return $this->getFieldIdFromPostVar($temp_post_var);
144  }
getMultiValuePostVarSubFieldPosIndexed($identifier, $sub_field_index, $position_index)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMultiValuePostVar()

ilIdentifiedMultiValuesInputGUI::getMultiValuePostVar (   $identifier)
protected

Definition at line 184 of file class.ilIdentifiedMultiValuesInputGUI.php.

References ilFormPropertyGUI\getPostVar().

Referenced by getMultiValuePostVarPosIndexed(), and getMultiValuePostVarSubField().

184  : string
185  {
186  $elem_post_var = $this->getPostVar();
187  $elem_post_var .= "[$identifier]";
188  return $elem_post_var;
189  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMultiValuePostVarPosIndexed()

ilIdentifiedMultiValuesInputGUI::getMultiValuePostVarPosIndexed (   $identifier,
  $positionIndex 
)
protected

Definition at line 176 of file class.ilIdentifiedMultiValuesInputGUI.php.

References getMultiValuePostVar().

Referenced by getMultiValuePosIndexedFieldId(), getMultiValuePostVarSubFieldPosIndexed(), and ilMultipleTextsInputGUI\render().

176  : string
177  {
178  $elem_post_var = $this->getMultiValuePostVar($identifier);
179  $elem_post_var .= "[$positionIndex]";
180 
181  return $elem_post_var;
182  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMultiValuePostVarSubField()

ilIdentifiedMultiValuesInputGUI::getMultiValuePostVarSubField (   $identifier,
  $sub_field_index 
)
protected

Definition at line 164 of file class.ilIdentifiedMultiValuesInputGUI.php.

References getMultiValuePostVar(), and getSubFieldCompletedPostVar().

Referenced by getMultiValueSubFieldId(), and ilAssNestedOrderingElementsInputGUI\renderListItem().

165  {
166  $elem_post_var = $this->getMultiValuePostVar($identifier);
167  return $this->getSubFieldCompletedPostVar($sub_field_index, $elem_post_var);
168  }
getSubFieldCompletedPostVar($subFieldIndex, $elem_post_var)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMultiValuePostVarSubFieldPosIndexed()

ilIdentifiedMultiValuesInputGUI::getMultiValuePostVarSubFieldPosIndexed (   $identifier,
  $sub_field_index,
  $position_index 
)
protected

Definition at line 170 of file class.ilIdentifiedMultiValuesInputGUI.php.

References getMultiValuePostVarPosIndexed(), and getSubFieldCompletedPostVar().

Referenced by getMultiValuePosIndexedSubFieldId(), and ilMultipleImagesInputGUI\render().

171  {
172  $elem_post_var = $this->getMultiValuePostVarPosIndexed($identifier, $position_index);
173  return $this->getSubFieldCompletedPostVar($sub_field_index, $elem_post_var);
174  }
getSubFieldCompletedPostVar($subFieldIndex, $elem_post_var)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMultiValues()

ilIdentifiedMultiValuesInputGUI::getMultiValues ( )

Definition at line 113 of file class.ilIdentifiedMultiValuesInputGUI.php.

113  : array
114  {
115  throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
116  }

◆ getMultiValueSubFieldId()

ilIdentifiedMultiValuesInputGUI::getMultiValueSubFieldId (   $identifier,
  $sub_field_index 
)
protected

Definition at line 128 of file class.ilIdentifiedMultiValuesInputGUI.php.

References getFieldIdFromPostVar(), and getMultiValuePostVarSubField().

128  : string
129  {
130  $temp_post_var = $this->getMultiValuePostVarSubField($identifier, $sub_field_index);
131  return $this->getFieldIdFromPostVar($temp_post_var);
132  }
getMultiValuePostVarSubField($identifier, $sub_field_index)
+ Here is the call graph for this function:

◆ getPostVarSubField()

ilIdentifiedMultiValuesInputGUI::getPostVarSubField (   $sub_field_index)
protected

Definition at line 159 of file class.ilIdentifiedMultiValuesInputGUI.php.

References ilFormPropertyGUI\getPostVar(), and getSubFieldCompletedPostVar().

160  {
161  return $this->getSubFieldCompletedPostVar($sub_field_index, $this->getPostVar());
162  }
getSubFieldCompletedPostVar($subFieldIndex, $elem_post_var)
+ Here is the call graph for this function:

◆ getSubFieldCompletedPostVar()

ilIdentifiedMultiValuesInputGUI::getSubFieldCompletedPostVar (   $subFieldIndex,
  $elem_post_var 
)
protected
Parameters
$subFieldIndex
$elem_post_var
Returns
mixed

Definition at line 268 of file class.ilIdentifiedMultiValuesInputGUI.php.

References ilFormPropertyGUI\getPostVar().

Referenced by getMultiValuePostVarSubField(), getMultiValuePostVarSubFieldPosIndexed(), and getPostVarSubField().

269  {
270  $field_post_var = "{$this->getPostVar()}[$subFieldIndex]";
271  return str_replace($this->getPostVar(), $field_post_var, $elem_post_var);
272  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getValue()

ilIdentifiedMultiValuesInputGUI::getValue ( )

Definition at line 103 of file class.ilIdentifiedMultiValuesInputGUI.php.

104  {
105  throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
106  }

◆ getValues()

ilIdentifiedMultiValuesInputGUI::getValues ( )
Returns
mixed
Exceptions
ilFormException

Definition at line 93 of file class.ilIdentifiedMultiValuesInputGUI.php.

94  {
95  throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
96  }

◆ onCheckInput()

ilIdentifiedMultiValuesInputGUI::onCheckInput ( )
abstract

Referenced by checkInput().

+ Here is the caller graph for this function:

◆ prepareMultiValuesInput()

ilIdentifiedMultiValuesInputGUI::prepareMultiValuesInput (   $values)
finalprotected

Definition at line 234 of file class.ilIdentifiedMultiValuesInputGUI.php.

References getFormValuesManipulators().

Referenced by ilMultipleImagesInputGUI\render(), and setIdentifiedMultiValues().

235  {
236  foreach ($this->getFormValuesManipulators() as $manipulator) {
237  $values = $manipulator->manipulateFormInputValues($values);
238  }
239 
240  return $values;
241  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareMultiValuesSubmit()

ilIdentifiedMultiValuesInputGUI::prepareMultiValuesSubmit (   $values)
finalprotected

Definition at line 243 of file class.ilIdentifiedMultiValuesInputGUI.php.

References getFormValuesManipulators().

Referenced by getInput(), and setValueByArray().

244  {
245  foreach ($this->getFormValuesManipulators() as $manipulator) {
246  /* @var ilFormValuesManipulator $manipulator */
247  $values = $manipulator->manipulateFormSubmitValues($values);
248  }
249 
250  return $values;
251  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareReprintable()

ilIdentifiedMultiValuesInputGUI::prepareReprintable ( assQuestion  $question)

Definition at line 274 of file class.ilIdentifiedMultiValuesInputGUI.php.

References getIdentifiedMultiValues(), and setIdentifiedMultiValues().

+ Here is the call graph for this function:

◆ setElementAddCmd()

ilIdentifiedMultiValuesInputGUI::setElementAddCmd ( string  $element_add_cmd)

Definition at line 49 of file class.ilIdentifiedMultiValuesInputGUI.php.

References $element_add_cmd.

49  : void
50  {
51  $this->element_add_cmd = $element_add_cmd;
52  }

◆ setElementMoveDownCommand()

ilIdentifiedMultiValuesInputGUI::setElementMoveDownCommand ( string  $element_move_down_cmd)

Definition at line 79 of file class.ilIdentifiedMultiValuesInputGUI.php.

References $element_move_down_cmd.

79  : void
80  {
81  $this->element_move_down_cmd = $element_move_down_cmd;
82  }

◆ setElementMoveUpCommand()

ilIdentifiedMultiValuesInputGUI::setElementMoveUpCommand ( string  $element_move_up_cmd)

Definition at line 69 of file class.ilIdentifiedMultiValuesInputGUI.php.

References $element_move_up_cmd.

69  : void
70  {
71  $this->element_move_up_cmd = $element_move_up_cmd;
72  }

◆ setElementRemoveCmd()

ilIdentifiedMultiValuesInputGUI::setElementRemoveCmd ( string  $element_remove_cmd)

Definition at line 59 of file class.ilIdentifiedMultiValuesInputGUI.php.

References $element_remove_cmd.

59  : void
60  {
61  $this->element_remove_cmd = $element_remove_cmd;
62  }

◆ setIdentifiedMultiValues()

ilIdentifiedMultiValuesInputGUI::setIdentifiedMultiValues (   $values)
final

Definition at line 118 of file class.ilIdentifiedMultiValuesInputGUI.php.

References prepareMultiValuesInput().

Referenced by prepareReprintable(), ilAssOrderingTextsInputGUI\setElementList(), ilAssOrderingImagesInputGUI\setElementList(), and ilAssNestedOrderingElementsInputGUI\setElementList().

118  : void
119  {
120  $this->identified_multi_values = $this->prepareMultiValuesInput($values);
121  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setIdentifiedMultiValuesByArray()

ilIdentifiedMultiValuesInputGUI::setIdentifiedMultiValuesByArray (   $a_values)
protected

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

References ilFormPropertyGUI\getPostVar().

Referenced by setValueByArray().

212  : void
213  {
214  $this->identified_multi_values = $a_values[$this->getPostVar()];
215  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMultiValues()

ilIdentifiedMultiValuesInputGUI::setMultiValues ( array  $values)

Definition at line 108 of file class.ilIdentifiedMultiValuesInputGUI.php.

108  : void
109  {
110  throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
111  }

◆ setValue()

ilIdentifiedMultiValuesInputGUI::setValue (   $value)

Definition at line 98 of file class.ilIdentifiedMultiValuesInputGUI.php.

98  : void
99  {
100  throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
101  }

◆ setValueByArray()

ilIdentifiedMultiValuesInputGUI::setValueByArray ( array  $a_values)
final

Definition at line 199 of file class.ilIdentifiedMultiValuesInputGUI.php.

References ilFormPropertyGUI\getPostVar(), prepareMultiValuesSubmit(), and setIdentifiedMultiValuesByArray().

199  : void
200  {
201  if (!isset($a_values[$this->getPostVar()]) || !is_array($a_values[$this->getPostVar()])) {
202  $a_values[$this->getPostVar()] = [];
203  }
204 
205  $a_values[$this->getPostVar()] = $this->prepareMultiValuesSubmit(
206  $a_values[$this->getPostVar()]
207  );
208 
209  $this->setIdentifiedMultiValuesByArray($a_values);
210  }
+ Here is the call graph for this function:

◆ setValues()

ilIdentifiedMultiValuesInputGUI::setValues (   $values)

Definition at line 84 of file class.ilIdentifiedMultiValuesInputGUI.php.

84  : void
85  {
86  throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
87  }

Field Documentation

◆ $element_add_cmd

string ilIdentifiedMultiValuesInputGUI::$element_add_cmd = self::ELEMENT_DEFAULT_ADD_CMD
protected

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

Referenced by getElementAddCmd(), and setElementAddCmd().

◆ $element_move_down_cmd

string ilIdentifiedMultiValuesInputGUI::$element_move_down_cmd = self::ELEMENT_DEFAULT_MOVE_DOWN_CMD
protected

◆ $element_move_up_cmd

string ilIdentifiedMultiValuesInputGUI::$element_move_up_cmd = self::ELEMENT_DEFAULT_MOVE_UP_CMD
protected

◆ $element_remove_cmd

string ilIdentifiedMultiValuesInputGUI::$element_remove_cmd = self::ELEMENT_DEFAULT_REMOVE_CMD
protected

◆ $formValuesManipulationChain

ilIdentifiedMultiValuesInputGUI::$formValuesManipulationChain = []
protected

Definition at line 35 of file class.ilIdentifiedMultiValuesInputGUI.php.

Referenced by getFormValuesManipulators().

◆ $identified_multi_values

ilIdentifiedMultiValuesInputGUI::$identified_multi_values = []
protected

◆ ELEMENT_DEFAULT_ADD_CMD

const ilIdentifiedMultiValuesInputGUI::ELEMENT_DEFAULT_ADD_CMD = 'addElement'

Definition at line 24 of file class.ilIdentifiedMultiValuesInputGUI.php.

◆ ELEMENT_DEFAULT_MOVE_DOWN_CMD

const ilIdentifiedMultiValuesInputGUI::ELEMENT_DEFAULT_MOVE_DOWN_CMD = 'moveDownElement'

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

◆ ELEMENT_DEFAULT_MOVE_UP_CMD

const ilIdentifiedMultiValuesInputGUI::ELEMENT_DEFAULT_MOVE_UP_CMD = 'moveUpElement'

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

◆ ELEMENT_DEFAULT_REMOVE_CMD

const ilIdentifiedMultiValuesInputGUI::ELEMENT_DEFAULT_REMOVE_CMD = 'removeElement'

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


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