public function __construct() { $this->messages = SessionHandler::get('PIMPLE_FLASH'); //var_dump($this->messages); if (!is_array($this->messages)) { $this->messages = array(); } else { foreach ($this->messages as $msg) { if ($msg->isError() && $msg->getField()) { Validate::addFieldError($msg->getField(), $msg->getText()); } } } }
public function get($id) { $id = get_class($this) . '_' . $id; return SessionHandler::get($id); }
public function getError() { return T('Security code is incorrect (%s)', SessionHandler::get('CAPTCHA')); }