ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilMultiFilesSubmitRecursiveSlashesStripper.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/classes/class.ilFormSubmitRecursiveSlashesStripper.php';
5 
13 {
17  protected $postVar = null;
18 
22  public function getPostVar()
23  {
24  return $this->postVar;
25  }
26 
30  public function setPostVar($postVar)
31  {
32  $this->postVar = $postVar;
33  }
34 
39  public function manipulateFormInputValues($inputValues)
40  {
41  return $inputValues;
42  }
43 
48  public function manipulateFormSubmitValues($submitValues)
49  {
51  return $submitValues;
52  }
53 
57  protected function manipulateFileSubmitValues()
58  {
59  if ($_FILES) {
60  $_FILES[$this->getPostVar()] = ilUtil::stripSlashesRecursive(
61  $_FILES[$this->getPostVar()]
62  );
63  }
64  }
65 }
static stripSlashesRecursive($a_data, $a_strip_html=true, $a_allow="")
Strip slashes from array and sub-arrays.
manipulateFileSubmitValues()
perform the strip slashing on files submit