示例#1
0
 /**
  * @return array
  */
 public function getSentData()
 {
     try {
         $data = array();
         switch (strtolower($this->method)) {
             case "get":
                 $data = LBoxFront::getDataGet();
                 break;
             case "post":
                 $data = LBoxFront::getDataPost();
                 break;
         }
         // pridame filesdata, pokud nejaka jsou
         if (count($this->getFilesData()) > 0) {
             $filesData = $this->getFilesData();
             $data[$this->getName()] = array_merge($data[$this->getName()], $filesData[$this->getName()]);
         }
         return array_key_exists($this->name, $data) ? $data[$this->name] : NULL;
     } catch (Exception $e) {
         throw $e;
     }
 }