ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilIdentifiedMultiFilesJsPositionIndexRemover Class Reference
+ Inheritance diagram for ilIdentifiedMultiFilesJsPositionIndexRemover:
+ Collaboration diagram for ilIdentifiedMultiFilesJsPositionIndexRemover:

Public Member Functions

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

Protected Member Functions

 isFileSubmitAvailable ()
 
 prepareFileSubmit ()
 
 prepareMultiFilesSubmitValues ($filesSubmitValues)
 
- Protected Member Functions inherited from ilIdentifiedMultiValuesJsPositionIndexRemover
 brandIdentifiersWithIndicator ($origValues)
 
 getIndicatorBrandedIdentifier ($identifier)
 
 cleanSubmitCommandFromPossibleIdentifierIndicators ($cmdArrayLevel)
 
 removePositionIndexLevels ($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 ( )

Definition at line 16 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 41 of file class.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

References getPostVar().

Referenced by manipulateFormSubmitValues().

42  {
43  if (!isset($_FILES[$this->getPostVar()])) {
44  return false;
45  }
46 
47  if (!is_array($_FILES[$this->getPostVar()])) {
48  return false;
49  }
50 
51  if (!in_array('tmp_name', array_keys($_FILES[$this->getPostVar()]))) {
52  return false;
53  }
54 
55  return true;
56  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ manipulateFormInputValues()

ilIdentifiedMultiFilesJsPositionIndexRemover::manipulateFormInputValues (   $inputValues)
Parameters
array$inputValues
Returns
array $inputValues

Implements ilFormValuesManipulator.

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

27  {
28  // KEEP THIS INTERFACE METHOD OVERWRITTEN THIS LIKE (!)
29  return $inputValues;
30  }

◆ manipulateFormSubmitValues()

ilIdentifiedMultiFilesJsPositionIndexRemover::manipulateFormSubmitValues (   $submitValues)
Parameters
array$submitValues
Returns
array $submitValues

Implements ilFormValuesManipulator.

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

References $values, isFileSubmitAvailable(), and prepareFileSubmit().

+ Here is the call graph for this function:

◆ prepareFileSubmit()

ilIdentifiedMultiFilesJsPositionIndexRemover::prepareFileSubmit ( )
protected

Definition at line 58 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 65 of file class.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

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)

Field Documentation

◆ $postVar

ilIdentifiedMultiFilesJsPositionIndexRemover::$postVar = null
protected

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