public static function throw_notice($type, $msg) { switch ($type) { case "admin_error": selft::print_notice('error', $msg); break; default: throw new Exception("Notice type not recognized.", 1); break; } }
/** * get session id * @return type */ public static function getSessionId() { selft::start(); return session_id(); }