ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover:
+ Collaboration diagram for ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover:

Public Member Functions

 manipulateFormInputValues (array $inputValues)
 
 manipulateFormSubmitValues (array $submitValues)
 
 manipulateFormInputValues (array $inputValues)
 
 manipulateFormSubmitValues (array $submitValues)
 

Protected Member Functions

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

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Author
Björn Heyser bheys.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de

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

Member Function Documentation

◆ fetchIndentationsFromSubmitValues()

ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover::fetchIndentationsFromSubmitValues (   $values)
protected

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

52 : array
53 {
54 if ($this->hasContentSubLevel($values) && $this->hasIndentationsSubLevel($values)) {
55 $actualValues = [];
56
57 foreach ($values['content'] as $key => $value) {
58 if (!isset($values['indentation'][$key])) {
59 $actualValues[$key] = null;
60 continue;
61 }
62
63 $actualValues[$key] = $values['indentation'][$key];
64 }
65 } else {
66 $actualValues = $values;
67 }
68
69 return $actualValues;
70 }

References hasContentSubLevel(), and hasIndentationsSubLevel().

Referenced by manipulateFormSubmitValues().

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

◆ hasContentSubLevel()

ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover::hasContentSubLevel (   $values)
protected

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

34 : bool
35 {
36 if (!is_array($values) || !isset($values['content'])) {
37 return false;
38 }
39
40 return true;
41 }

Referenced by fetchIndentationsFromSubmitValues().

+ Here is the caller graph for this function:

◆ hasIndentationsSubLevel()

ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover::hasIndentationsSubLevel (   $values)
protected

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

43 : bool
44 {
45 if (!is_array($values) || !isset($values['indentation'])) {
46 return false;
47 }
48
49 return true;
50 }

Referenced by fetchIndentationsFromSubmitValues().

+ Here is the caller graph for this function:

◆ manipulateFormInputValues()

ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover::manipulateFormInputValues ( array  $inputValues)

Implements ilFormValuesManipulator.

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

24 : array
25 {
26 return $inputValues;
27 }

◆ manipulateFormSubmitValues()

ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover::manipulateFormSubmitValues ( array  $submitValues)

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