ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilIdentifiedMultiFilesJsPositionIndexRemover 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 ilIdentifiedMultiFilesJsPositionIndexRemover:
+ Collaboration diagram for ilIdentifiedMultiFilesJsPositionIndexRemover:

Public Member Functions

 getPostVar ()
 
 setPostVar ($postVar)
 
 manipulateFormInputValues (array $inputValues)
 
 manipulateFormSubmitValues (array $values)
 
- Public Member Functions inherited from ilIdentifiedMultiValuesJsPositionIndexRemover
 manipulateFormInputValues (array $inputValues)
 
 manipulateFormSubmitValues (array $submitValues)
 

Protected Member Functions

 isFileSubmitAvailable ()
 
 prepareFileSubmit ()
 
 prepareMultiFilesSubmitValues ($filesSubmitValues)
 
- Protected Member Functions inherited from ilIdentifiedMultiValuesJsPositionIndexRemover
 brandIdentifiersWithIndicator (array $origValues)
 
 getIndicatorBrandedIdentifier (string $identifier)
 
 cleanSubmitCommandFromPossibleIdentifierIndicators ($cmdArrayLevel)
 
 removePositionIndexLevels (array $values)
 
 isPositionIndexLevel ($val)
 
 isValueIdentifier ($key)
 
 removeIdentifierIndicator ($key)
 
 fetchPositionIndexedValue ($value)
 

Protected Attributes

 $postVar = null
 

Additional Inherited Members

- Data Fields inherited from ilIdentifiedMultiValuesJsPositionIndexRemover
const IDENTIFIER_INDICATOR_PREFIX = 'IDENTIFIER~'
 

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.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

Member Function Documentation

◆ getPostVar()

ilIdentifiedMultiFilesJsPositionIndexRemover::getPostVar ( )

Definition at line 26 of file class.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

References $postVar.

Referenced by isFileSubmitAvailable(), and prepareFileSubmit().

+ Here is the caller graph for this function:

◆ isFileSubmitAvailable()

ilIdentifiedMultiFilesJsPositionIndexRemover::isFileSubmitAvailable ( )
protected

Definition at line 51 of file class.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

References getPostVar().

Referenced by manipulateFormSubmitValues().

51  : bool
52  {
53  if (!isset($_FILES[$this->getPostVar()])) {
54  return false;
55  }
56 
57  if (!is_array($_FILES[$this->getPostVar()])) {
58  return false;
59  }
60 
61  if (!in_array('tmp_name', array_keys($_FILES[$this->getPostVar()]))) {
62  return false;
63  }
64 
65  return true;
66  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ manipulateFormInputValues()

ilIdentifiedMultiFilesJsPositionIndexRemover::manipulateFormInputValues ( array  $inputValues)

Implements ilFormValuesManipulator.

Definition at line 36 of file class.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

36  : array
37  {
38  // KEEP THIS INTERFACE METHOD OVERWRITTEN THIS LIKE (!)
39  return $inputValues;
40  }

◆ manipulateFormSubmitValues()

ilIdentifiedMultiFilesJsPositionIndexRemover::manipulateFormSubmitValues ( array  $values)

Implements ilFormValuesManipulator.

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

References isFileSubmitAvailable(), and prepareFileSubmit().

+ Here is the call graph for this function:

◆ prepareFileSubmit()

ilIdentifiedMultiFilesJsPositionIndexRemover::prepareFileSubmit ( )
protected

Definition at line 68 of file class.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

References getPostVar(), and prepareMultiFilesSubmitValues().

Referenced by manipulateFormSubmitValues().

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

◆ prepareMultiFilesSubmitValues()

ilIdentifiedMultiFilesJsPositionIndexRemover::prepareMultiFilesSubmitValues (   $filesSubmitValues)
protected

Definition at line 75 of file class.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

References ilIdentifiedMultiValuesJsPositionIndexRemover\removePositionIndexLevels().

Referenced by prepareFileSubmit().

75  : array
76  {
77  return $this->removePositionIndexLevels($filesSubmitValues);
78  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPostVar()

ilIdentifiedMultiFilesJsPositionIndexRemover::setPostVar (   $postVar)

Field Documentation

◆ $postVar

ilIdentifiedMultiFilesJsPositionIndexRemover::$postVar = null
protected

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