Пример #1
0
 /**
  * vrati true, pokud byl na teto strance aktualne odeslan formular - pouzivano pri zjitovani jestli se ma tato URL nacist z cache
  * @return bool
  */
 public function wasFormSentNow()
 {
     try {
         $url = substr(LBOX_REQUEST_URL, -1) == "/" ? LBOX_REQUEST_URL : LBOX_REQUEST_URL . "/";
         $url = str_replace("?/", "/", $url);
         $url = str_replace("//", "/", $url);
         foreach ((array) $this->recordTypes[$url]["forms"] as $formName) {
             if (LBoxForm::wasFormSentByName($formName)) {
                 return true;
             }
             //LBoxFirePHP::error("$formName nebyl odeslan!");
         }
         return false;
     } catch (Exception $e) {
         throw $e;
     }
 }