set('sessionmsgs',static::$_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')) static::$_data = $msgs; parent::add($msg); static::$_c = count(static::$_data); // Save our messages in our session, so that we get them for redirects Session::instance()->set('sessionmsgs',static::$_data); } /** * Render this system message * * @see HTMLRender::render() */ protected function render() { $record = static::$_data[$this->_x]; $output = ''; $output .= sprintf('