/** * Accessor for the user agent string. * * @return string */ public static function get() { if (self::$_agent === null) { self::$_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : false; } return self::$_agent; }