33 $brandedValues = array();
35 foreach ($origValues as $identifier => $val) {
39 return $brandedValues;
44 return self::IDENTIFIER_INDICATOR_PREFIX . $identifier;
55 if (is_array($cmdArrayLevel)) {
56 $currentKey = key($cmdArrayLevel);
57 $nextLevel = current($cmdArrayLevel);
61 unset($cmdArrayLevel[$currentKey]);
67 $cmdArrayLevel[$currentKey] = $nextLevel;
70 return $cmdArrayLevel;
75 foreach ($values as
$key => $val) {
84 } elseif (is_array($val)) {
96 if (!is_array($val)) {
100 if (count($val) != 1) {
109 $indicatorPrefixLength = self::IDENTIFIER_INDICATOR_PREFIX;
111 if (strlen(
$key) <= strlen($indicatorPrefixLength)) {
115 if (substr(
$key, 0, strlen($indicatorPrefixLength)) != $indicatorPrefixLength) {
124 return str_replace(self::IDENTIFIER_INDICATOR_PREFIX,
'',
$key);
129 return current($value);
cleanSubmitCommandFromPossibleIdentifierIndicators($cmdArrayLevel)
const IDENTIFIER_INDICATOR_PREFIX
manipulateFormSubmitValues(array $submitValues)
removePositionIndexLevels(array $values)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
fetchPositionIndexedValue($value)
removeIdentifierIndicator($key)
manipulateFormInputValues(array $inputValues)
brandIdentifiersWithIndicator(array $origValues)
getIndicatorBrandedIdentifier(string $identifier)
isPositionIndexLevel($val)