Net_UserAgent_Mobile
[ class tree: Net_UserAgent_Mobile ] [ index: Net_UserAgent_Mobile ] [ all elements ]

Source for file NonMobile.php

Documentation is available at NonMobile.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | PHP version 4                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2004 The PHP Group                                |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 3.0 of the PHP license,       |
  9. // | that is bundled with this package in the file LICENSE, and is        |
  10. // | available through the world-wide-web at the following url:           |
  11. // | http://www.php.net/license/3_0.txt.                                  |
  12. // | If you did not receive a copy of the PHP license and are unable to   |
  13. // | obtain it through the world-wide-web, please send a note to          |
  14. // | license@php.net so we can mail you a copy immediately.               |
  15. // +----------------------------------------------------------------------+
  16. // | Authors: KUBO Atsuhiro <kubo@isite.co.jp>                            |
  17. // +----------------------------------------------------------------------+
  18. //
  19. // $Id: NonMobile.php,v 1.7 2004/02/08 11:58:38 kuboa Exp $
  20. //
  21.  
  22. require_once(dirname(__FILE__'/Common.php');
  23.  
  24. /**
  25.  * Non-Mobile Agent implementation
  26.  *
  27.  * Net_UserAgent_Mobile_NonMobile is a subclass of
  28.  * {@link Net_UserAgent_Mobile_Common}, which implements non-mobile or
  29.  * unimplemented user agents.
  30.  *
  31.  * SYNOPSIS:
  32.  * <code>
  33.  * require_once('Net/UserAgent/Mobile.php');
  34.  *
  35.  * $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/4.0';
  36.  * $agent = &Net_UserAgent_Mobile::factory();
  37.  * </code>
  38.  *
  39.  * @package  Net_UserAgent_Mobile
  40.  * @category Networking
  41.  * @author   KUBO Atsuhiro <kubo@isite.co.jp>
  42.  * @access   public
  43.  * @version  $Revision: 1.7 $
  44.  * @see      Net_UserAgent_Mobile_Common
  45.  */
  46. {
  47.  
  48.     /**#@+
  49.      * @access public
  50.      */
  51.  
  52.     // }}}
  53.     // {{{ isNonMobile()
  54.  
  55.     /**
  56.      * returns true
  57.      *
  58.      * @return boolean 
  59.      */
  60.     function isNonMobile()
  61.     {
  62.         return true;
  63.     }
  64.  
  65.     // }}}
  66.     // {{{ parse()
  67.  
  68.     /**
  69.      * parse HTTP_USER_AGENT string
  70.      */
  71.     function parse()
  72.     {
  73.         @list($this->name$this->version=
  74.             explode('/'$this->getUserAgent());
  75.     }
  76.  
  77.     /**#@-*/
  78. }
  79.  
  80. /*
  81.  * Local Variables:
  82.  * mode: php
  83.  * coding: iso-8859-1
  84.  * tab-width: 4
  85.  * c-basic-offset: 4
  86.  * c-hanging-comment-ender-p: nil
  87.  * indent-tabs-mode: nil
  88.  * End:
  89.  */
  90. ?>

Documentation generated on Mon, 11 Mar 2019 10:16:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.