ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 42 of file class.ilIdentifiedMultiFilesJsPositionIndexRemover.php.

References getPostVar().

Referenced by manipulateFormSubmitValues().

43  {
44  if( !isset($_FILES[$this->getPostVar()]) )
45  {
46  return false;
47  }
48 
49  if( !is_array($_FILES[$this->getPostVar()]) )
50  {
51  return false;
52  }
53 
54  if( !in_array('tmp_name', array_keys($_FILES[$this->getPostVar()])) )
55  {
56  return false;
57  }
58 
59  return true;
60  }
+ 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 isFileSubmitAvailable(), and prepareFileSubmit().

+ Here is the call graph for this function:

◆ prepareFileSubmit()

ilIdentifiedMultiFilesJsPositionIndexRemover::prepareFileSubmit ( )
protected

Definition at line 62 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 69 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: