Beispiel #1
0
 protected final function getValueFromFlash()
 {
     if (!class_exists('PicoraController')) {
         return null;
     }
     $flash = PicoraController::getFlash();
     if ($this->record) {
         $key = $this->record->getKeyForFlash($this->params['name']) . '.value';
         if (isset($flash[$key])) {
             return $flash[$key];
         }
     } elseif (isset($flash[$this->params['name'] . '.value'])) {
         return $flash[$this->params['name'] . '.value'];
     }
     return null;
 }
Beispiel #2
0
 /**
  * @return void
  */
 public final function clearErrorList()
 {
     $this->__error_list__ = array();
     $flash =& PicoraController::getFlash();
     $key = $this->getKeyForFlash($field);
     if (isset($flash[$key])) {
         unset($flash[$key]);
     }
 }