ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilMultipleImagesFileSubmissionDataCompletion.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/Form/interfaces/interface.ilFormValuesManipulator.php';
5 
13 {
14  protected $postVar;
15 
16  public function getPostVar()
17  {
18  return $this->postVar;
19  }
20 
21  public function setPostVar($postVar)
22  {
23  $this->postVar = $postVar;
24  }
25 
26  public function manipulateFormInputValues($inputValues)
27  {
28  return $inputValues;
29  }
30 
31  public function manipulateFormSubmitValues($submitValues)
32  {
33  $_FILES[$this->getPostVar()] = $this->populateStoredFileCustomUploadProperty(
34  $_FILES[$this->getPostVar()], $submitValues
35  );
36 
37  return $submitValues;
38  }
39 
40  protected function populateStoredFileCustomUploadProperty($submitFiles, $submitValues)
41  {
42  $submitFiles['dodging_file'] = array();
43 
44  foreach($submitValues as $identifier => $storedFilename)
45  {
46  $submitFiles['dodging_file'][$identifier] = $storedFilename;
47  }
48 
49  return $submitFiles;
50  }
51 }
Create styles array
The data for the language used.