/** * Returns the value of a property of the user's agent, according to the BrowsCap project. * * The names of the properties and their meanings are defined by the * [Browser Capabilities Project](http://browscap.org/). * * @param string $propertyName The name of the BrowsCap property. * * @return CUStringObject The value of the BrowsCap property. */ public static function userAgentProperty($propertyName) { assert('is_cstring($propertyName)', vs(isset($this), get_defined_vars())); if (!isset(self::$ms_browsCap)) { self::$ms_browsCap = get_browser(null, true); } return (string) self::$ms_browsCap[$propertyName]; }