示例#1
0
 /**
  * @return string
  */
 public function getName()
 {
     if (!isset($this->name)) {
         DeviceDetector::detect($this, $this->getUserAgent());
     }
     return $this->name;
 }
示例#2
0
 /**
  * @return string
  */
 public function getName()
 {
     if (!$this->isDetected) {
         $detector = new DeviceDetector();
         $detector->detect($this);
     }
     return $this->name;
 }
示例#3
0
<?php

require_once 'config.php';
require constant('HOCKEY_INCLUDE_DIR');
$router = Router::get(array('appDirectory' => dirname(__FILE__) . DIRECTORY_SEPARATOR));
$apps = $router->app;
$b = $router->baseURL;
DeviceDetector::detect();
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>App Installer</title>
        <meta name="viewport" content="width=device-width" />
        <link rel="stylesheet" href="<?php 
echo $b;
?>
blueprint/screen.css" type="text/css" media="screen, projection">
        <link rel="stylesheet" href="<?php 
echo $b;
?>
blueprint/print.css" type="text/css" media="print">
        <!--[if IE]><link rel="stylesheet" href="<?php 
echo $b;
?>
blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
        <link rel="stylesheet" href="<?php 
echo $b;
?>
blueprint/plugins/buttons/screen.css" type="text/css" media="screen, projection">