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

Public Member Functions

 manipulateFormInputValues ($inputValues)
 
 manipulateFormSubmitValues ($submitValues)
 

Protected Member Functions

 hasContentSubLevel ($values)
 
 hasIndentationsSubLevel ($values)
 
 fetchIndentationsFromSubmitValues ($values)
 

Detailed Description

Member Function Documentation

◆ fetchIndentationsFromSubmitValues()

ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover::fetchIndentationsFromSubmitValues (   $values)
protected

Definition at line 42 of file class.ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover.php.

References $key, $values, hasContentSubLevel(), and hasIndentationsSubLevel().

Referenced by manipulateFormSubmitValues().

43  {
45  $actualValues = array();
46 
47  foreach ($values['content'] as $key => $value) {
48  if (!isset($values['indentation'][$key])) {
49  $actualValues[$key] = null;
50  continue;
51  }
52 
53  $actualValues[$key] = $values['indentation'][$key];
54  }
55  } else {
56  $actualValues = $values;
57  }
58 
59  return $actualValues;
60  }
$values
$key
Definition: croninfo.php:18
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasContentSubLevel()

ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover::hasContentSubLevel (   $values)
protected

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

References $values.

Referenced by fetchIndentationsFromSubmitValues().

25  {
26  if (!is_array($values) || !isset($values['content'])) {
27  return false;
28  }
29 
30  return true;
31  }
$values
+ Here is the caller graph for this function:

◆ hasIndentationsSubLevel()

ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover::hasIndentationsSubLevel (   $values)
protected

Definition at line 33 of file class.ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover.php.

References $values.

Referenced by fetchIndentationsFromSubmitValues().

34  {
35  if (!is_array($values) || !isset($values['indentation'])) {
36  return false;
37  }
38 
39  return true;
40  }
$values
+ Here is the caller graph for this function:

◆ manipulateFormInputValues()

ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover::manipulateFormInputValues (   $inputValues)
Parameters
array$inputValues
Returns
array $inputValues

Implements ilFormValuesManipulator.

Definition at line 14 of file class.ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover.php.

15  {
16  return $inputValues;
17  }

◆ manipulateFormSubmitValues()

ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover::manipulateFormSubmitValues (   $submitValues)
Parameters
array$submitValues
Returns
array $submitValues

Implements ilFormValuesManipulator.

Definition at line 19 of file class.ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover.php.

References fetchIndentationsFromSubmitValues().

+ Here is the call graph for this function:

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