ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 

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.

References hasContentSubLevel(), hasIndentationsSubLevel(), and null.

Referenced by manipulateFormSubmitValues().

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ 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.

Referenced by fetchIndentationsFromSubmitValues().

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

◆ hasIndentationsSubLevel()

ilMultipleNestedOrderingElementsAdditionalIndexLevelRemover::hasIndentationsSubLevel (   $values)
protected

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

Referenced by fetchIndentationsFromSubmitValues().

43  : bool
44  {
45  if (!is_array($values) || !isset($values['indentation'])) {
46  return false;
47  }
48 
49  return true;
50  }
+ 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: