get("messages"); $status[] = array($msg, $severity); $session->set("messages", $status); } /** * Get any pending messages. These must be displayed to the user since they can only be * retrieved once. * @return html text */ public function get() { $msgs = Session::instance()->get_once("messages", array()); if ($msgs) { $buf = ""; } } /** * Convert a message severity to a CSS class * @param integer $severity * @return string */ public function severity_class($severity) { switch($severity) { case self::SUCCESS: return "gSuccess"; case self::INFO: return "gInfo"; case self::WARNING: return "gWarning"; case self::ERROR: return "gError"; } } }