Exemplo n.º 1
0
 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());
             }
         }
     }
 }
Exemplo n.º 2
0
 public function get($id)
 {
     $id = get_class($this) . '_' . $id;
     return SessionHandler::get($id);
 }
Exemplo n.º 3
0
 public function getError()
 {
     return T('Security code is incorrect (%s)', SessionHandler::get('CAPTCHA'));
 }