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; }
/** * @return void */ public final function clearErrorList() { $this->__error_list__ = array(); $flash =& PicoraController::getFlash(); $key = $this->getKeyForFlash($field); if (isset($flash[$key])) { unset($flash[$key]); } }