ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ilIdentifiedMultiFilesJsPositionIndexRemover Class Reference
+ 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

Member Function Documentation

◆ getPostVar()

ilIdentifiedMultiFilesJsPositionIndexRemover::getPostVar ( )

◆ isFileSubmitAvailable()

ilIdentifiedMultiFilesJsPositionIndexRemover::isFileSubmitAvailable ( )
protected

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

53 : bool
54 {
55 if (!isset($_FILES[$this->getPostVar()])) {
56 return false;
57 }
58
59 if (!is_array($_FILES[$this->getPostVar()])) {
60 return false;
61 }
62
63 if (!in_array('tmp_name', array_keys($_FILES[$this->getPostVar()]))) {
64 return false;
65 }
66
67 return true;
68 }

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 38 of file class.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

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

◆ manipulateFormSubmitValues()

ilIdentifiedMultiFilesJsPositionIndexRemover::manipulateFormSubmitValues ( array  $values)

◆ prepareFileSubmit()

ilIdentifiedMultiFilesJsPositionIndexRemover::prepareFileSubmit ( )
protected

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

71 : void
72 {
73 $_FILES[$this->getPostVar()] = $this->prepareMultiFilesSubmitValues(
74 $_FILES[$this->getPostVar()]
75 );
76 }

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 78 of file class.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

78 : array
79 {
80 return $this->removePositionIndexLevels($filesSubmitValues);
81 }

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 33 of file class.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

33 : void
34 {
35 $this->postVar = $postVar;
36 }

References $postVar.

Field Documentation

◆ $postVar

ilIdentifiedMultiFilesJsPositionIndexRemover::$postVar = null
protected

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