Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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();
 }
Example #3
0
 /**
  * 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();
 }