set('sessionmsgs',self::$_data); return $this; } /** * Add a system message to be rendered * * @param array System Message attributes * @deprecated */ public static function add($msg,$prepend=FALSE) { if ($msgs = Session::instance()->get_once('sessionmsgs')) self::$_data = $msgs; parent::add($msg); self::$_c = count(self::$_data); // Save our messages in our session, so that we get them for redirects Session::instance()->set('sessionmsgs',self::$_data); } /** * Render this system message * * @see HTMLRender::render() */ protected function render() { $record = self::$_data[$this->_x]; $output = ''; $output .= sprintf('