4 require_once
'Services/Form/interfaces/interface.ilFormValuesManipulator.php';
150 $postVar .= self::INDENTATIONS_POSTVAR_SUFFIX;
151 $postVar .= self::INDENTATIONS_POSTVAR_SUFFIX_JS;
158 if( !count($elementsOrValues) )
173 return $elementsOrValues;
180 foreach($elements as $identifier => $orderingElement)
184 case self::CONTEXT_MAINTAIN_ELEMENT_TEXT:
189 case self::CONTEXT_MAINTAIN_ELEMENT_IMAGE:
194 case self::CONTEXT_MAINTAIN_HIERARCHY:
227 'answer_id' => $element->
getId(),
237 if( !count($valuesOrElements) )
252 return $valuesOrElements;
261 foreach($values as $identifier => $value)
264 $element->setRandomIdentifier($identifier);
266 $element->setPosition($position++);
268 if( $this->
getContext() == self::CONTEXT_MAINTAIN_HIERARCHY )
270 $element->setIndentation($value);
274 $element->setContent($value);
277 if( $this->
getContext() == self::CONTEXT_MAINTAIN_ELEMENT_IMAGE )
285 $elements[$identifier] = $element;
305 if( !isset($fileUpload[$property]) || !strlen($fileUpload[$property]) )
310 return $fileUpload[$property];
317 if( !isset($uploadFiles[$identifier]) )
322 return $uploadFiles[$identifier];
329 return $submittedUploadFiles;
334 foreach($submittedUploadFiles as $identifier => $uploadProperties)
336 if( !isset($uploadProperties[
'tmp_name']) )
338 unset($submittedUploadFiles[$identifier]);
342 if( !strlen($uploadProperties[
'tmp_name']) )
344 unset($submittedUploadFiles[$identifier]);
348 if( !is_uploaded_file($uploadProperties[
'tmp_name']) )
350 unset($submittedUploadFiles[$identifier]);
355 return $submittedUploadFiles;
363 $submittedUploadFiles =
array();
367 foreach( $valueElement as $elementIdentifier => $uploadValue )
369 if( !isset( $submittedUploadFiles[$elementIdentifier] ) )
371 $submittedUploadFiles[$elementIdentifier] =
array();
374 $submittedUploadFiles[$elementIdentifier][$uploadProperty] = $uploadValue;
378 return $submittedUploadFiles;
417 $identifierArr = $fieldArr[$this->
getPostVar()];
419 return key($identifierArr) == $identifier;
Add rich text string
The name of the decorator.
setImagePathFs($imagePathFs)
setImagePathWeb($imagePathWeb)
getPresentationImageUrl()
Create styles array
The data for the language used.
setImageThumbnailPrefix($imageThumbnailPrefix)