ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  $_REQUEST[$this->getPostVar()] = $this->populateStoredFileCustomUploadProperty(
34  $_REQUEST[$this->getPostVar()],
35  $submitValues
36  );
37 
38  return $submitValues;
39  }
40 
41  protected function populateStoredFileCustomUploadProperty($submitFiles, $submitValues)
42  {
43  $submitFiles['dodging_file'] = array();
44 
45  foreach ($submitValues as $identifier => $storedFilename) {
46  $submitFiles['dodging_file'][$identifier] = $storedFilename;
47  }
48 
49  return $submitFiles;
50  }
51 }