ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilIdentifiedMultiValuesInputGUI Class Reference
+ Inheritance diagram for ilIdentifiedMultiValuesInputGUI:
+ Collaboration diagram for ilIdentifiedMultiValuesInputGUI:

Public Member Functions

 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 getElementAddCmd ()
 
 setElementAddCmd ($elementAddCmd)
 
 getElementRemoveCmd ()
 
 setElementRemoveCmd ($elementRemoveCmd)
 
 getElementMoveUpCommand ()
 
 setElementMoveUpCommand ($elementMoveUpCommand)
 
 getElementMoveDownCommand ()
 
 setElementMoveDownCommand ($elementMoveDownCommand)
 
 setValues ($values)
 
 getValues ()
 
 setValue ($value)
 Set Value. More...
 
 getValue ()
 Get Value. More...
 
 setMultiValues (array $values)
 Set multi values. More...
 
 getMultiValues ()
 Get multi values. More...
 
 setIdentifiedMultiValues ($values)
 
 getIdentifiedMultiValues ()
 
 setValueByArray ($a_values)
 Set value by array. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 onCheckInput ()
 
 prepareReprintable (assQuestion $question)
 
- Public Member Functions inherited from ilTextInputGUI
 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 setValue ($a_value)
 Set Value. More...
 
 getValue ()
 Get Value. More...
 
 setValidationFailureMessage ($a_msg)
 Set message string for validation failure. More...
 
 getValidationFailureMessage ()
 
 setValidationRegexp ($a_value)
 Set validation regexp. More...
 
 getValidationRegexp ()
 Get validation regexp. More...
 
 setMaxLength ($a_maxlength)
 Set Max Length. More...
 
 getMaxLength ()
 Get Max Length. More...
 
 setSize ($a_size)
 Set Size. More...
 
 setInlineStyle ($a_style)
 Set inline style. More...
 
 getInlineStyle ()
 Get inline style. More...
 
 setCssClass ($a_class)
 
 getCssClass ()
 
 setValueByArray ($a_values)
 Set value by array. More...
 
 getSize ()
 Get Size. More...
 
 setSuffix ($a_value)
 Set suffix. More...
 
 getSuffix ()
 Get suffix. More...
 
 setInputType ($a_type)
 set input type More...
 
 getInputType ()
 get input type More...
 
 setSubmitFormOnEnter ($a_val)
 Set submit form on enter. More...
 
 getSubmitFormOnEnter ()
 Get submit form on enter. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 getDataSource ()
 get datasource link for js autocomplete More...
 
 setDataSource ($href, $a_delimiter=null)
 set datasource link for js autocomplete More...
 
 setDataSourceSubmitOnSelection ($a_stat)
 
 getDataSourceSubmitOnSelection ()
 
 setDataSourceSubmitUrl ($a_url)
 
 getDataSourceSubmitUrl ()
 
 setMultiValues (array $a_values)
 Set multi values. More...
 
 insert ($a_tpl)
 Insert property html. More...
 
 getTableFilterHTML ()
 Get HTML for table filter. More...
 
 getToolbarHTML ()
 Get HTML for toolbar. More...
 
 setDisableHtmlAutoComplete ($autocomplete)
 
 isHtmlAutoCompleteDisabled ()
 
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem ($a_item)
 Add Subitem. More...
 
 getSubItems ()
 Get Subitems. More...
 
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively More...
 
 checkSubItemsInput ()
 Check SubItems. More...
 
 getSubForm ()
 Get sub form html. More...
 
 getItemByPostVar ($a_post_var)
 Get item by post var. More...
 
- 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...
 
 getTableFilterLabelFor ()
 Get label "for" attribute value for filter. More...
 
 getFormLabelFor ()
 Get label "for" attribute value for form. More...
 
- Public Member Functions inherited from ilTableFilterItem
 getTableFilterHTML ()
 Get input item HTML to be inserted into table filters. More...
 
 getTableFilterLabelFor ()
 Get label "for" attribute value. More...
 
 getToolbarHTML ()
 Get input item HTML to be inserted into ilToolbarGUI. 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, $subFieldIndex)
 
 getMultiValuePosIndexedFieldId ($identifier, $positionIndex)
 
 getMultiValuePosIndexedSubFieldId ($identifier, $subFieldIndex, $positionIndex)
 
 getFieldIdFromPostVar ($tempPostVar)
 
 getPostVarSubField ($subFieldIndex)
 
 getMultiValuePostVarSubField ($identifier, $subFieldIndex)
 
 getMultiValuePostVarSubFieldPosIndexed ($identifier, $subFieldIndex, $positionIndex)
 
 getMultiValuePostVarPosIndexed ($identifier, $positionIndex)
 
 getMultiValuePostVar ($identifier)
 
 buildMultiValueSubmitVar ($identifier, $positionIndex, $submitCommand)
 
 setIdentifiedMultiValuesByArray ($a_values)
 
 prepareMultiValuesInput ($values)
 
 prepareMultiValuesSubmit ($values)
 
 getFormValuesManipulators ()
 
 addFormValuesManipulator (ilFormValuesManipulator $manipulator)
 
 getSubFieldCompletedPostVar ($subFieldIndex, $elemPostVar)
 
- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type. More...
 
 getMultiIconsHTML ()
 Get HTML for multiple value icons. More...
 

Protected Attributes

 $elementAddCmd = self::ELEMENT_DEFAULT_ADD_CMD
 
 $elementRemoveCmd = self::ELEMENT_DEFAULT_REMOVE_CMD
 
 $elementMoveUpCommand = self::ELEMENT_DEFAULT_MOVE_UP_CMD
 
 $elementMoveDownCommand = self::ELEMENT_DEFAULT_MOVE_DOWN_CMD
 
 $identified_multi_values = array()
 
 $formValuesManipulationChain = array()
 
- Protected Attributes inherited from ilTextInputGUI
 $value
 
 $maxlength = 200
 
 $size = 40
 
 $validationRegexp
 
 $validationFailureMessage = ''
 
 $suffix
 
 $style_css
 
 $css_class
 
 $ajax_datasource
 
 $ajax_datasource_delimiter
 
 $ajax_datasource_commit = false
 
 $ajax_datasource_commit_url
 
 $submit_form_on_enter = false
 
 $autocomplete_disabled = false
 
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
 $sub_items = array()
 
- 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...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

Parameters
string$a_titleTitle
string$a_postvarPost Variable

Reimplemented from ilTextInputGUI.

Reimplemented in ilMultipleImagesInputGUI, ilMultipleTextsInputGUI, and ilMultipleNestedOrderingElementsInputGUI.

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

30 {
31 parent::__construct($a_title, $a_postvar);
32
33 require_once 'Services/Form/classes/class.ilFormSubmitRecursiveSlashesStripper.php';
35
36 require_once 'Services/Form/classes/class.ilIdentifiedMultiValuesJsPositionIndexRemover.php';
38
39 //$this->setMulti(true); // this is another planet, do not enable (!)
40 }
addFormValuesManipulator(ilFormValuesManipulator $manipulator)

References addFormValuesManipulator().

+ Here is the call graph for this function:

Member Function Documentation

◆ addFormValuesManipulator()

ilIdentifiedMultiValuesInputGUI::addFormValuesManipulator ( ilFormValuesManipulator  $manipulator)
protected

◆ buildMultiValueSubmitVar()

ilIdentifiedMultiValuesInputGUI::buildMultiValueSubmitVar (   $identifier,
  $positionIndex,
  $submitCommand 
)
protected

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

205 {
206 $elemSubmitVar = "cmd[{$submitCommand}][{$this->getFieldId()}]";
207 $elemSubmitVar .= "[$identifier][$positionIndex]";
208
209 return $elemSubmitVar;
210 }

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

+ Here is the caller graph for this function:

◆ checkInput()

ilIdentifiedMultiValuesInputGUI::checkInput ( )
final

Check input, strip slashes etc.

set alert, if input is not ok.

Returns
boolean Input ok, true/false

Reimplemented from ilTextInputGUI.

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

231 {
232 if (!is_array($_POST[$this->getPostVar()])) {
233 $_POST[$this->getPostVar()] = array();
234 }
235
236 $_POST[$this->getPostVar()] = $this->prepareMultiValuesSubmit(
237 $_POST[$this->getPostVar()]
238 );
239
240 return $this->onCheckInput();
241 }
$_POST["username"]
getPostVar()
Get Post Variable.

References $_POST, ilFormPropertyGUI\getPostVar(), onCheckInput(), and prepareMultiValuesSubmit().

+ Here is the call graph for this function:

◆ getElementAddCmd()

ilIdentifiedMultiValuesInputGUI::getElementAddCmd ( )

◆ getElementMoveDownCommand()

ilIdentifiedMultiValuesInputGUI::getElementMoveDownCommand ( )

◆ getElementMoveUpCommand()

ilIdentifiedMultiValuesInputGUI::getElementMoveUpCommand ( )

◆ getElementRemoveCmd()

ilIdentifiedMultiValuesInputGUI::getElementRemoveCmd ( )

◆ getFieldIdFromPostVar()

ilIdentifiedMultiValuesInputGUI::getFieldIdFromPostVar (   $tempPostVar)
protected

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

156 {
157 $basicPostVar = $this->getPostVar();
158 $this->setPostVar($tempPostVar);
159
160 // uses getPostVar() internally, our postvar does not have the counter included
161 $multiValueFieldId = $this->getFieldId();
162 // now ALL brackets ("[", "]") are escaped, even the ones for the counter
163
164 $this->setPostVar($basicPostVar);
165 return $multiValueFieldId;
166 }
getFieldId()
Get Post Variable.
setPostVar($a_postvar)
Set Post Variable.

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

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

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

◆ getFormValuesManipulators()

ilIdentifiedMultiValuesInputGUI::getFormValuesManipulators ( )
protected

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

References $formValuesManipulationChain.

Referenced by prepareMultiValuesInput(), and prepareMultiValuesSubmit().

+ Here is the caller graph for this function:

◆ getIdentifiedMultiValues()

◆ getMultiValuePosIndexedFieldId()

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

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

140 {
141 $tempPostVar = $this->getMultiValuePostVarPosIndexed($identifier, $positionIndex);
142 $multiValueFieldId = $this->getFieldIdFromPostVar($tempPostVar);
143
144 return $multiValueFieldId;
145 }

References getFieldIdFromPostVar(), and getMultiValuePostVarPosIndexed().

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

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

◆ getMultiValuePosIndexedSubFieldId()

ilIdentifiedMultiValuesInputGUI::getMultiValuePosIndexedSubFieldId (   $identifier,
  $subFieldIndex,
  $positionIndex 
)
protected

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

148 {
149 $tempPostVar = $this->getMultiValuePostVarSubFieldPosIndexed($identifier, $subFieldIndex, $positionIndex);
150 $multiValueFieldId = $this->getFieldIdFromPostVar($tempPostVar);
151
152 return $multiValueFieldId;
153 }
getMultiValuePostVarSubFieldPosIndexed($identifier, $subFieldIndex, $positionIndex)

References getFieldIdFromPostVar(), and getMultiValuePostVarSubFieldPosIndexed().

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

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

◆ getMultiValuePostVar()

ilIdentifiedMultiValuesInputGUI::getMultiValuePostVar (   $identifier)
protected

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

198 {
199 $elemPostVar = $this->getPostVar();
200 $elemPostVar .= "[$identifier]";
201 return $elemPostVar;
202 }

References ilFormPropertyGUI\getPostVar().

Referenced by getMultiValuePostVarPosIndexed(), and getMultiValuePostVarSubField().

+ 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 189 of file class.ilIdentifiedMultiValuesInputGUI.php.

190 {
191 $elemPostVar = $this->getMultiValuePostVar($identifier);
192 $elemPostVar .= "[$positionIndex]";
193
194 return $elemPostVar;
195 }

References getMultiValuePostVar().

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

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

◆ getMultiValuePostVarSubField()

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

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

174 {
175 $elemPostVar = $this->getMultiValuePostVar($identifier);
176 $elemPostVar = $this->getSubFieldCompletedPostVar($subFieldIndex, $elemPostVar);
177
178 return $elemPostVar;
179 }

References getMultiValuePostVar(), and getSubFieldCompletedPostVar().

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

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

◆ getMultiValuePostVarSubFieldPosIndexed()

ilIdentifiedMultiValuesInputGUI::getMultiValuePostVarSubFieldPosIndexed (   $identifier,
  $subFieldIndex,
  $positionIndex 
)
protected

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

182 {
183 $elemPostVar = $this->getMultiValuePostVarPosIndexed($identifier, $positionIndex);
184 $elemPostVar = $this->getSubFieldCompletedPostVar($subFieldIndex, $elemPostVar);
185
186 return $elemPostVar;
187 }

References getMultiValuePostVarPosIndexed(), and getSubFieldCompletedPostVar().

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

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

◆ getMultiValues()

ilIdentifiedMultiValuesInputGUI::getMultiValues ( )

Get multi values.

Returns
array

Reimplemented from ilFormPropertyGUI.

Reimplemented in ilDclMultiTextInputGUI.

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

116 {
117 require_once 'Services/Form/exceptions/class.ilFormException.php';
118 throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
119 }
Class ilFormException.

◆ getMultiValueSubFieldId()

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

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

132 {
133 $tempPostVar = $this->getMultiValuePostVarSubField($identifier, $subFieldIndex);
134 $multiValueFieldId = $this->getFieldIdFromPostVar($tempPostVar);
135
136 return $multiValueFieldId;
137 }

References getFieldIdFromPostVar(), and getMultiValuePostVarSubField().

Referenced by ilMultipleNestedOrderingElementsInputGUI\renderListItem().

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

◆ getPostVarSubField()

ilIdentifiedMultiValuesInputGUI::getPostVarSubField (   $subFieldIndex)
protected

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

169 {
170 return $this->getSubFieldCompletedPostVar($subFieldIndex, $this->getPostVar());
171 }

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

Referenced by ilMultipleNestedOrderingElementsInputGUI\renderJsInit().

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

◆ getSubFieldCompletedPostVar()

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

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

281 {
282 $fieldPostVar = "{$this->getPostVar()}[$subFieldIndex]";
283 $elemPostVar = str_replace($this->getPostVar(), $fieldPostVar, $elemPostVar);
284 return $elemPostVar;
285 }

References ilFormPropertyGUI\getPostVar().

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

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

◆ getValue()

ilIdentifiedMultiValuesInputGUI::getValue ( )

Get Value.

Returns
string Value

Reimplemented from ilTextInputGUI.

Reimplemented in ilDclMultiTextInputGUI.

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

104 {
105 require_once 'Services/Form/exceptions/class.ilFormException.php';
106 throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
107 }

◆ getValues()

ilIdentifiedMultiValuesInputGUI::getValues ( )

Reimplemented in ilDclMultiTextInputGUI.

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

92 {
93 require_once 'Services/Form/exceptions/class.ilFormException.php';
94 throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
95 }

◆ onCheckInput()

ilIdentifiedMultiValuesInputGUI::onCheckInput ( )
abstract

Reimplemented in ilMultipleImagesInputGUI, ilMultipleNestedOrderingElementsInputGUI, and ilMultipleTextsInputGUI.

Referenced by checkInput().

+ Here is the caller graph for this function:

◆ prepareMultiValuesInput()

ilIdentifiedMultiValuesInputGUI::prepareMultiValuesInput (   $values)
finalprotected

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

246 {
247 foreach ($this->getFormValuesManipulators() as $manipulator) {
248 /* @var ilFormValuesManipulator $manipulator */
249 $values = $manipulator->manipulateFormInputValues($values);
250 }
251
252 return $values;
253 }
$values

References $values, and getFormValuesManipulators().

Referenced by setIdentifiedMultiValues().

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

◆ prepareMultiValuesSubmit()

ilIdentifiedMultiValuesInputGUI::prepareMultiValuesSubmit (   $values)
finalprotected

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

256 {
257 foreach ($this->getFormValuesManipulators() as $manipulator) {
258 /* @var ilFormValuesManipulator $manipulator */
259 $values = $manipulator->manipulateFormSubmitValues($values);
260 }
261
262 return $values;
263 }

References $values, and getFormValuesManipulators().

Referenced by checkInput(), and setValueByArray().

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

◆ prepareReprintable()

ilIdentifiedMultiValuesInputGUI::prepareReprintable ( assQuestion  $question)

◆ setElementAddCmd()

ilIdentifiedMultiValuesInputGUI::setElementAddCmd (   $elementAddCmd)
Parameters
string$elementAddCmd

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

51 {
52 $this->elementAddCmd = $elementAddCmd;
53 }

References $elementAddCmd.

◆ setElementMoveDownCommand()

ilIdentifiedMultiValuesInputGUI::setElementMoveDownCommand (   $elementMoveDownCommand)

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

81 {
82 $this->elementMoveDownCommand = $elementMoveDownCommand;
83 }

References $elementMoveDownCommand.

◆ setElementMoveUpCommand()

ilIdentifiedMultiValuesInputGUI::setElementMoveUpCommand (   $elementMoveUpCommand)

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

71 {
72 $this->elementMoveUpCommand = $elementMoveUpCommand;
73 }

References $elementMoveUpCommand.

◆ setElementRemoveCmd()

ilIdentifiedMultiValuesInputGUI::setElementRemoveCmd (   $elementRemoveCmd)

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

61 {
62 $this->elementRemoveCmd = $elementRemoveCmd;
63 }

References $elementRemoveCmd.

◆ setIdentifiedMultiValues()

ilIdentifiedMultiValuesInputGUI::setIdentifiedMultiValues (   $values)
final

◆ setIdentifiedMultiValuesByArray()

ilIdentifiedMultiValuesInputGUI::setIdentifiedMultiValuesByArray (   $a_values)
protected

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

226 {
227 $this->identified_multi_values = $a_values[$this->getPostVar()];
228 }

References ilFormPropertyGUI\getPostVar().

Referenced by setValueByArray().

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

◆ setMultiValues()

ilIdentifiedMultiValuesInputGUI::setMultiValues ( array  $a_values)

Set multi values.

Parameters
array$a_values

Reimplemented from ilTextInputGUI.

Reimplemented in ilDclMultiTextInputGUI.

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

110 {
111 require_once 'Services/Form/exceptions/class.ilFormException.php';
112 throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
113 }

◆ setValue()

ilIdentifiedMultiValuesInputGUI::setValue (   $a_value)

Set Value.

Parameters
string$a_valueValue

Reimplemented from ilTextInputGUI.

Reimplemented in ilDclMultiTextInputGUI.

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

98 {
99 require_once 'Services/Form/exceptions/class.ilFormException.php';
100 throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
101 }

◆ setValueByArray()

ilIdentifiedMultiValuesInputGUI::setValueByArray (   $a_values)
final

Set value by array.

Parameters
array$a_valuesvalue array

Reimplemented from ilTextInputGUI.

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

213 {
214 if (!is_array($a_values[$this->getPostVar()])) {
215 $a_values[$this->getPostVar()] = array();
216 }
217
218 $a_values[$this->getPostVar()] = $this->prepareMultiValuesSubmit(
219 $a_values[$this->getPostVar()]
220 );
221
222 $this->setIdentifiedMultiValuesByArray($a_values);
223 }

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

+ Here is the call graph for this function:

◆ setValues()

ilIdentifiedMultiValuesInputGUI::setValues (   $values)

Reimplemented in ilDclMultiTextInputGUI.

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

86 {
87 require_once 'Services/Form/exceptions/class.ilFormException.php';
88 throw new ilFormException('setter unsupported, use setIdentifiedMultiValues() instead!');
89 }

Field Documentation

◆ $elementAddCmd

ilIdentifiedMultiValuesInputGUI::$elementAddCmd = self::ELEMENT_DEFAULT_ADD_CMD
protected

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

Referenced by getElementAddCmd(), and setElementAddCmd().

◆ $elementMoveDownCommand

ilIdentifiedMultiValuesInputGUI::$elementMoveDownCommand = self::ELEMENT_DEFAULT_MOVE_DOWN_CMD
protected

◆ $elementMoveUpCommand

ilIdentifiedMultiValuesInputGUI::$elementMoveUpCommand = self::ELEMENT_DEFAULT_MOVE_UP_CMD
protected

◆ $elementRemoveCmd

ilIdentifiedMultiValuesInputGUI::$elementRemoveCmd = self::ELEMENT_DEFAULT_REMOVE_CMD
protected

◆ $formValuesManipulationChain

ilIdentifiedMultiValuesInputGUI::$formValuesManipulationChain = array()
protected

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

Referenced by getFormValuesManipulators().

◆ $identified_multi_values

ilIdentifiedMultiValuesInputGUI::$identified_multi_values = array()
protected

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

Referenced by getIdentifiedMultiValues().

◆ ELEMENT_DEFAULT_ADD_CMD

const ilIdentifiedMultiValuesInputGUI::ELEMENT_DEFAULT_ADD_CMD = 'addElement'

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

◆ ELEMENT_DEFAULT_MOVE_DOWN_CMD

const ilIdentifiedMultiValuesInputGUI::ELEMENT_DEFAULT_MOVE_DOWN_CMD = 'moveDownElement'

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

◆ ELEMENT_DEFAULT_MOVE_UP_CMD

const ilIdentifiedMultiValuesInputGUI::ELEMENT_DEFAULT_MOVE_UP_CMD = 'moveUpElement'

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

◆ ELEMENT_DEFAULT_REMOVE_CMD

const ilIdentifiedMultiValuesInputGUI::ELEMENT_DEFAULT_REMOVE_CMD = 'removeElement'

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


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