Ignore:
Timestamp:
2008/03/12 16:43:11 (18 years ago)
Author:
satou
Message:

PEARモジュールの更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/module/Net/UserAgent/Mobile/NonMobile.php

    r15532 r17127  
    1414 * @package    Net_UserAgent_Mobile 
    1515 * @author     KUBO Atsuhiro <[email protected]> 
    16  * @copyright  2003-2007 KUBO Atsuhiro <[email protected]> 
     16 * @copyright  2003-2008 KUBO Atsuhiro <[email protected]> 
    1717 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    1818 * @version    CVS: $Id$ 
     
    2121 */ 
    2222 
    23 require_once(dirname(__FILE__) . '/Common.php'); 
    24 require_once(dirname(__FILE__) . '/Display.php'); 
     23require_once 'Net/UserAgent/Mobile/Common.php'; 
     24require_once 'Net/UserAgent/Mobile/Display.php'; 
    2525 
    2626// {{{ Net_UserAgent_Mobile_NonMobile 
     
    4444 * @package    Net_UserAgent_Mobile 
    4545 * @author     KUBO Atsuhiro <[email protected]> 
    46  * @copyright  2003-2007 KUBO Atsuhiro <[email protected]> 
     46 * @copyright  2003-2008 KUBO Atsuhiro <[email protected]> 
    4747 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    48  * @version    Release: 0.30.0 
     48 * @version    Release: 0.31.0 
    4949 * @see        Net_UserAgent_Mobile_Common 
    5050 * @since      Class available since Release 0.1.0 
     
    8888 
    8989    /** 
    90      * parse HTTP_USER_AGENT string 
     90     * Parses HTTP_USER_AGENT string. 
     91     * 
     92     * @param string $userAgent User-Agent string 
    9193     */ 
    92     function parse() 
     94    function parse($userAgent) 
    9395    { 
    94         @list($this->name, $this->version) = 
    95             explode('/', $this->getUserAgent()); 
     96        @list($this->name, $this->version) = explode('/', $userAgent); 
    9697    } 
    9798 
     
    109110    { 
    110111        return new Net_UserAgent_Mobile_Display(null); 
    111     } 
    112  
    113     // }}} 
    114     // {{{ getModel() 
    115  
    116     /** 
    117      * returns name of the model 
    118      * 
    119      * @return string 
    120      */ 
    121     function getModel() 
    122     { 
    123         return ''; 
    124     } 
    125  
    126     // }}} 
    127     // {{{ getDeviceID() 
    128  
    129     /** 
    130      * returns device ID 
    131      * 
    132      * @return string 
    133      */ 
    134     function getDeviceID() 
    135     { 
    136         return ''; 
    137112    } 
    138113 
     
    186161 * End: 
    187162 */ 
    188 ?> 
Note: See TracChangeset for help on using the changeset viewer.