コード例 #1
0
ファイル: fRequest.php プロジェクト: hibble/printmaster
 /**
  * Returns `$_GET`, `$_POST` and `$_FILES` and the `PUT`/`DELTE` post data to the state they were at before ::filter() was called
  * 
  * @internal
  * 
  * @return void
  */
 public static function unfilter()
 {
     if (self::$backup_get === array()) {
         throw new fProgrammerException('%1$s can only be called after %2$s', __CLASS__ . '::unfilter()', __CLASS__ . '::filter()');
     }
     $_FILES = array_pop(self::$backup_files);
     $_GET = array_pop(self::$backup_get);
     $_POST = array_pop(self::$backup_post);
     self::$put_delete = array_pop(self::$backup_put_delete);
 }