4 require_once
'Services/Form/interfaces/interface.ilFormValuesManipulator.php';
23 $brandedValues = array();
25 foreach ($origValues as $identifier => $val) {
29 return $brandedValues;
34 return self::IDENTIFIER_INDICATOR_PREFIX . $identifier;
45 if (is_array($cmdArrayLevel)) {
46 $currentKey = key($cmdArrayLevel);
47 $nextLevel = current($cmdArrayLevel);
51 unset($cmdArrayLevel[$currentKey]);
57 $cmdArrayLevel[$currentKey] = $nextLevel;
60 return $cmdArrayLevel;
74 } elseif (is_array($val)) {
86 if (!is_array($val)) {
90 if (count($val) != 1) {
99 $indicatorPrefixLength = self::IDENTIFIER_INDICATOR_PREFIX;
101 if (strlen(
$key) <= strlen($indicatorPrefixLength)) {
105 if (substr(
$key, 0, strlen($indicatorPrefixLength)) != $indicatorPrefixLength) {
114 return str_replace(self::IDENTIFIER_INDICATOR_PREFIX,
'',
$key);
119 return current($value);
cleanSubmitCommandFromPossibleIdentifierIndicators($cmdArrayLevel)
const IDENTIFIER_INDICATOR_PREFIX
manipulateFormInputValues($inputValues)
manipulateFormSubmitValues($submitValues)
brandIdentifiersWithIndicator($origValues)
fetchPositionIndexedValue($value)
removeIdentifierIndicator($key)
removePositionIndexLevels($values)
getIndicatorBrandedIdentifier($identifier)
isPositionIndexLevel($val)