/** * Returns an instance of a BrowserDevice populated based on the * server variables provided * @return BrowserDevice */ public static function GetInstance() { if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c(); self::$instance->Detect(); } return self::$instance; }
/** * Returns a BrowserDevice object with information about the browser * that is being used to view/execute this code. * @return BrowserDevice */ public function GetDevice() { return BrowserDevice::GetInstance(); }
/** * Returns a BrowserDevice object with information about the browser * that is being used to view/execute this code. * @return BrowserDevice */ public function GetDevice() { require_once "verysimple/HTTP/BrowserDevice.php"; return BrowserDevice::GetInstance(); }