ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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
4require_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 $_FILES[$this->getPostVar()] = ilUtil::stripSlashesRecursive(
60 $_FILES[$this->getPostVar()]
61 );
62 }
63}
An exception for terminatinating execution or to throw for unit testing.
static stripSlashesRecursive($a_data, $a_strip_html=true, $a_allow="")
Strip slashes from array and sub-arrays.