ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 
 manipulateFormInputValues (array $inputValues)
 
 manipulateFormSubmitValues (array $submitValues)
 
 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 ( )

◆ isFileSubmitAvailable()

ilIdentifiedMultiFilesJsPositionIndexRemover::isFileSubmitAvailable ( )
protected

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

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 }

References getPostVar().

Referenced by manipulateFormSubmitValues().

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

◆ manipulateFormInputValues()

ilIdentifiedMultiFilesJsPositionIndexRemover::manipulateFormInputValues ( array  $inputValues)

Reimplemented from ilIdentifiedMultiValuesJsPositionIndexRemover.

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)

◆ prepareFileSubmit()

ilIdentifiedMultiFilesJsPositionIndexRemover::prepareFileSubmit ( )
protected

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

68 : void
69 {
70 $_FILES[$this->getPostVar()] = $this->prepareMultiFilesSubmitValues(
71 $_FILES[$this->getPostVar()]
72 );
73 }

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.

75 : array
76 {
77 return $this->removePositionIndexLevels($filesSubmitValues);
78 }

References ilIdentifiedMultiValuesJsPositionIndexRemover\removePositionIndexLevels().

Referenced by prepareFileSubmit().

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

◆ setPostVar()

ilIdentifiedMultiFilesJsPositionIndexRemover::setPostVar (   $postVar)

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

31 : void
32 {
33 $this->postVar = $postVar;
34 }

References $postVar.

Field Documentation

◆ $postVar

ilIdentifiedMultiFilesJsPositionIndexRemover::$postVar = null
protected

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