Changeset 11456


Ignore:
Timestamp:
2007/02/25 00:33:58 (17 years ago)
Author:
rebelt
Message:

PEAR Net_UserAgent_Mobile 0.30.0 をインポートしました。

Location:
temp/branches/mobile/data/module/Net/UserAgent
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • temp/branches/mobile/data/module/Net/UserAgent/Mobile.php

    r11398 r11456  
    1414 * @package    Net_UserAgent_Mobile 
    1515 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
    16  * @copyright  2003-2006 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
    1717 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    18  * @version    CVS: $Id: Mobile.php,v 1.25 2006/11/07 09:25:14 kuboa Exp $ 
     18 * @version    CVS: $Id: Mobile.php,v 1.27 2007/02/20 15:17:16 kuboa Exp $ 
    1919 * @since      File available since Release 0.1 
    2020 */ 
     
    5959 * SYNOPSIS: 
    6060 * <code> 
    61  * require_once('Net/UserAgent/Mobile.php'); 
     61 * require_once 'Net/UserAgent/Mobile.php'; 
    6262 * 
    6363 * $agent = &Net_UserAgent_Mobile::factory($agent_string); 
     
    8989 * @package    Net_UserAgent_Mobile 
    9090 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
    91  * @copyright  2003-2006 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     91 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
    9292 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    93  * @version    Release: @package_version@ 
     93 * @version    Release: 0.30.0 
    9494 * @since      Class available since Release 0.1 
    9595 */ 
     
    155155        } 
    156156        $className = "Net_UserAgent_Mobile_{$sub}"; 
    157         $include    = dirname(__FILE__) . "/Mobile/{$sub}.php"; 
    158157 
    159158        if (!class_exists($className)) { 
    160             if (!is_readable($include)) { 
     159            $file = dirname(__FILE__) . "/Mobile/{$sub}.php"; 
     160            if (!include_once $file) { 
    161161                return PEAR::raiseError(null, 
    162162                                        NET_USERAGENT_MOBILE_ERROR_NOT_FOUND, 
    163163                                        null, null, 
    164                                         "Unable to read the $include file", 
    165                                         'Net_UserAgent_Mobile_Error', true 
    166                                         ); 
    167             } 
    168             if (!include_once $include) { 
    169                 return PEAR::raiseError(null, 
    170                                         NET_USERAGENT_MOBILE_ERROR_NOT_FOUND, 
    171                                         null, null, 
    172                                         "Unable to include the $include file", 
     164                                        "Unable to include the $file file", 
    173165                                        'Net_UserAgent_Mobile_Error', true 
    174166                                        ); 
     
    282274 * @package    Net_UserAgent_Mobile 
    283275 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
    284  * @copyright  2003-2006 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     276 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
    285277 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    286  * @version    Release: @package_version@ 
     278 * @version    Release: 0.30.0 
    287279 * @since      Class available since Release 0.1 
    288280 */ 
  • temp/branches/mobile/data/module/Net/UserAgent/Mobile/AirHPhone.php

    r11398 r11456  
    11<?php 
    22/* 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 <iteman@users.sourceforge.net>                            | 
    17 // +----------------------------------------------------------------------+ 
    18 // 
    19 // $Id: AirHPhone.php,v 1.9 2006/11/07 09:25:14 kuboa Exp $ 
    20 // 
     3 
     4/** 
     5 * PHP versions 4 and 5 
     6 * 
     7 * LICENSE: This source file is subject to version 3.0 of the PHP license 
     8 * that is available through the world-wide-web at the following URI: 
     9 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of 
     10 * the PHP License and are unable to obtain it through the web, please 
     11 * send a note to license@php.net so we can mail you a copy immediately. 
     12 * 
     13 * @category   Networking 
     14 * @package    Net_UserAgent_Mobile 
     15 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
     18 * @version    CVS: $Id: AirHPhone.php,v 1.12 2007/02/20 14:39:45 kuboa Exp $ 
     19 * @link       http://www.willcom-inc.com/ja/service/contents_service/club_air_edge/for_phone/homepage/index.html 
     20 * @see        Net_UserAgent_Mobile_Common 
     21 * @since      File available since Release 0.5 
     22 */ 
    2123 
    2224require_once(dirname(__FILE__) . '/Common.php'); 
    2325require_once(dirname(__FILE__) . '/Display.php'); 
     26 
     27// {{{ Net_UserAgent_Mobile_AirHPhone 
    2428 
    2529/** 
     
    3236 * SYNOPSIS: 
    3337 * <code> 
    34  * require_once('Net/UserAgent/Mobile.php'); 
     38 * require_once 'Net/UserAgent/Mobile.php'; 
    3539 * 
    3640 * $_SERVER['HTTP_USER_AGENT'] = 
     
    4650 * </code> 
    4751 * 
    48  * @package  Net_UserAgent_Mobile 
    49  * @category Networking 
    50  * @author   KUBO Atsuhiro <iteman@users.sourceforge.net> 
    51  * @access   public 
    52  * @version  $Revision: 1.9 $ 
    53  * @see      Net_UserAgent_Mobile_Common 
    54  * @link     http://www.ddipocket.co.jp/airh_phone/i_hp.html 
     52 * @category   Networking 
     53 * @package    Net_UserAgent_Mobile 
     54 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
     55 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     56 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
     57 * @version    Release: 0.30.0 
     58 * @link       http://www.willcom-inc.com/ja/service/contents_service/club_air_edge/for_phone/homepage/index.html 
     59 * @see        Net_UserAgent_Mobile_Common 
     60 * @since      Class available since Release 0.5 
    5561 */ 
    5662class Net_UserAgent_Mobile_AirHPhone extends Net_UserAgent_Mobile_Common 
     
    5965    // {{{ properties 
    6066 
     67    /**#@+ 
     68     * @access public 
     69     */ 
     70 
    6171    /** 
    6272     * User-Agent name 
    6373     * @var string 
    64      * @access public 
    6574     */ 
    6675    var $name = 'WILLCOM'; 
     76 
     77    /**#@-*/ 
    6778 
    6879    /**#@+ 
     
    250261 
    251262    /**#@-*/ 
     263 
     264    /**#@+ 
     265     * @access private 
     266     */ 
     267 
     268    /**#@-*/ 
     269 
     270    // }}} 
    252271} 
     272 
     273// }}} 
    253274 
    254275/* 
  • temp/branches/mobile/data/module/Net/UserAgent/Mobile/Common.php

    r11398 r11456  
    11<?php 
    22/* 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 <iteman@users.sourceforge.net>                            | 
    17 // +----------------------------------------------------------------------+ 
    18 // 
    19 // $Id: Common.php,v 1.12 2006/11/07 09:25:14 kuboa Exp $ 
    20 // 
     3 
     4/** 
     5 * PHP versions 4 and 5 
     6 * 
     7 * LICENSE: This source file is subject to version 3.0 of the PHP license 
     8 * that is available through the world-wide-web at the following URI: 
     9 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of 
     10 * the PHP License and are unable to obtain it through the web, please 
     11 * send a note to license@php.net so we can mail you a copy immediately. 
     12 * 
     13 * @category   Networking 
     14 * @package    Net_UserAgent_Mobile 
     15 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
     18 * @version    CVS: $Id: Common.php,v 1.15 2007/02/20 14:59:19 kuboa Exp $ 
     19 * @since      File available since Release 0.1 
     20 */ 
     21 
     22// {{{ Net_UserAgent_Mobile_Common 
    2123 
    2224/** 
     
    2628 * abstraction layer on Net_UserAgent_Mobile. 
    2729 * 
    28  * @package  Net_UserAgent_Mobile 
    29  * @category Networking 
    30  * @abstract 
    31  * @author   KUBO Atsuhiro <iteman@users.sourceforge.net> 
    32  * @access   public 
    33  * @version  $Revision: 1.12 $ 
     30 * @category   Networking 
     31 * @package    Net_UserAgent_Mobile 
     32 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
     33 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     34 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
     35 * @version    Release: 0.30.0 
     36 * @since      Class available since Release 0.1 
    3437 */ 
    3538class Net_UserAgent_Mobile_Common extends PEAR 
     
    8184    /**#@-*/ 
    8285 
     86    /**#@+ 
     87     * @access public 
     88     */ 
     89 
    8390    // }}} 
    8491    // {{{ constructor 
     
    98105        } 
    99106    } 
    100  
    101     /**#@+ 
    102      * @access public 
    103      */ 
    104107 
    105108    // }}} 
     
    420423 
    421424    /**#@-*/ 
     425 
     426    /**#@+ 
     427     * @access private 
     428     */ 
     429 
     430    /**#@-*/ 
     431 
     432    // }}} 
    422433} 
     434 
     435// }}} 
    423436 
    424437/* 
  • temp/branches/mobile/data/module/Net/UserAgent/Mobile/Display.php

    r11398 r11456  
    11<?php 
    22/* 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 <iteman@users.sourceforge.net>                            | 
    17 // +----------------------------------------------------------------------+ 
    18 // 
    19 // $Id: Display.php,v 1.9 2006/11/07 09:25:14 kuboa Exp $ 
    20 // 
     3 
     4/** 
     5 * PHP versions 4 and 5 
     6 * 
     7 * LICENSE: This source file is subject to version 3.0 of the PHP license 
     8 * that is available through the world-wide-web at the following URI: 
     9 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of 
     10 * the PHP License and are unable to obtain it through the web, please 
     11 * send a note to license@php.net so we can mail you a copy immediately. 
     12 * 
     13 * @category   Networking 
     14 * @package    Net_UserAgent_Mobile 
     15 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
     18 * @version    CVS: $Id: Display.php,v 1.10 2007/02/20 15:00:06 kuboa Exp $ 
     19 * @since      File available since Release 0.1 
     20 */ 
     21 
     22// {{{ Net_UserAgent_Mobile_Display 
    2123 
    2224/** 
     
    2830 * SYNOPSIS: 
    2931 * <code> 
    30  * require_once('Net/UserAgent/Mobile.php'); 
     32 * require_once 'Net/UserAgent/Mobile.php'; 
    3133 * 
    3234 * $agent = &Net_UserAgent_Mobile::factory(); 
     
    5355 * $_SERVER['DOCOMO_MAP'] = '/path/to/DoCoMoMap.xml'; 
    5456 * 
    55  * @package  Net_UserAgent_Mobile 
    56  * @category Networking 
    57  * @author   KUBO Atsuhiro <iteman@users.sourceforge.net> 
    58  * @access   public 
    59  * @version  $Revision: 1.9 $ 
     57 * @category   Networking 
     58 * @package    Net_UserAgent_Mobile 
     59 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
     60 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     61 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
     62 * @version    Release: 0.30.0 
     63 * @since      Class available since Release 0.1 
    6064 */ 
    6165class Net_UserAgent_Mobile_Display 
     
    6569 
    6670    /**#@+ 
     71     * @access public 
     72     */ 
     73 
     74    /**#@-*/ 
     75 
     76    /**#@+ 
    6777     * @access private 
    6878     */ 
     
    105115 
    106116    /**#@-*/ 
     117 
     118    /**#@+ 
     119     * @access public 
     120     */ 
    107121 
    108122    // }}} 
     
    125139    } 
    126140 
    127     /**#@+ 
    128      * @access public 
    129      */ 
    130  
    131141    // }}} 
    132142    // {{{ calcSize() 
     
    234244 
    235245    /**#@-*/ 
     246 
     247    /**#@+ 
     248     * @access private 
     249     */ 
     250 
     251    /**#@-*/ 
     252 
     253    // }}} 
    236254} 
     255 
     256// }}} 
    237257 
    238258/* 
  • temp/branches/mobile/data/module/Net/UserAgent/Mobile/DoCoMo.php

    r11398 r11456  
    1414 * @package    Net_UserAgent_Mobile 
    1515 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
    16  * @copyright  2003-2006 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
    1717 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    18  * @version    CVS: $Id: DoCoMo.php,v 1.29 2006/11/07 09:25:14 kuboa Exp $ 
     18 * @version    CVS: $Id: DoCoMo.php,v 1.35 2007/02/20 18:41:04 kuboa Exp $ 
    1919 * @link       http://www.nttdocomo.co.jp/service/imode/make/content/spec/useragent/index.html 
    2020 * @see        Net_UserAgent_Mobile_Common 
     
    3737 * SYNOPSIS: 
    3838 * <code> 
    39  * require_once('Net/UserAgent/Mobile.php'); 
     39 * require_once 'Net/UserAgent/Mobile.php'; 
    4040 * 
    4141 * $_SERVER['HTTP_USER_AGENT'] = 'DoCoMo/1.0/P502i/c10'; 
     
    7575 * @package    Net_UserAgent_Mobile 
    7676 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
    77  * @copyright  2003-2006 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     77 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
    7878 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    79  * @version    Release: @package_version@ 
     79 * @version    Release: 0.30.0 
    8080 * @link       http://www.nttdocomo.co.jp/service/imode/make/content/spec/useragent/index.html 
    8181 * @see        Net_UserAgent_Mobile_Common 
     
    248248                                    '504i|251i|^F671iS$|212i|2051|2102V|661i|2701|672i|SO213i|850i' => '4.0', 
    249249                                    'eggy|P751v' => '3.2', 
    250                                     '505i|252i|900i|506i|880i|253i|P213i|901i|700i|851i|701i|881i|800i|600i|882i' => '5.0', 
    251                                     '902i|702i|851i' => '6.0', 
    252                                     '903i' => '7.0' 
     250                                    '505i|252i|900i|506i|880i|253i|P213i|901i|700i|851i|701i|881i|^SA800i$|600i|^L601i$|^M702i(S|G)$' => '5.0', 
     251                                    '902i|702i|851i|882i|^N601i$|^D800iDS$|^P703imyu$' => '6.0', 
     252                                    '903i|703i' => '7.0' 
    253253                                    ); 
    254254        } 
     
    553553                    continue; 
    554554                } 
    555                 if (preg_match('/^icc(\w{20})$/', $value, $matches)) { 
    556                     $this->_cardID = $matches[1]; 
     555                if (preg_match('/^icc(\w{20})?$/', $value, $matches)) { 
     556                    if (count($matches) == 2) { 
     557                        $this->_cardID = $matches[1]; 
     558                    } 
    557559                    continue; 
    558560                } 
  • temp/branches/mobile/data/module/Net/UserAgent/Mobile/DoCoMoDisplayMap.php

    r11398 r11456  
    1414 * @package    Net_UserAgent_Mobile 
    1515 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
    16  * @copyright  2003-2006 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
    1717 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    18  * @version    CVS: $Id: DoCoMoDisplayMap.php,v 1.29 2006/11/07 09:25:14 kuboa Exp $ 
     18 * @version    CVS: $Id: DoCoMoDisplayMap.php,v 1.32 2007/02/20 18:30:17 kuboa Exp $ 
    1919 * @link       http://www.nttdocomo.co.jp/service/imode/make/content/spec/screen_area/index.html 
    2020 * @see        Net_UserAgent_Mobile_Display 
     
    3030 * @package    Net_UserAgent_Mobile 
    3131 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
    32  * @copyright  2003-2006 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     32 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
    3333 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    34  * @version    Release: @package_version@ 
     34 * @version    Release: 0.30.0 
    3535 * @link       http://www.nttdocomo.co.jp/service/imode/make/content/spec/screen_area/index.html 
    3636 * @see        Net_UserAgent_Mobile_Display 
     
    11211121                                                     'color'  => 1 
    11221122                                                     ), 
     1123                                    'L601I' => array( 
     1124                                                     'width'  => 176, 
     1125                                                     'height' => 189, 
     1126                                                     'depth'  => 65536, 
     1127                                                     'color'  => 1 
     1128                                                     ), 
     1129                                    'M702IS' => array( 
     1130                                                      'width'  => 240, 
     1131                                                      'height' => 267, 
     1132                                                      'depth'  => 262144, 
     1133                                                      'color'  => 1 
     1134                                                      ), 
     1135                                    'M702IG' => array( 
     1136                                                      'width'  => 240, 
     1137                                                      'height' => 267, 
     1138                                                      'depth'  => 262144, 
     1139                                                      'color'  => 1 
     1140                                                      ), 
    11231141 
    11241142                                    // i-mode compliant HTML 6.0 
     
    12081226                                                      'color'  => 1 
    12091227                                                      ), 
     1228                                    'N902IL' => array( 
     1229                                                      'width'  => 240, 
     1230                                                      'height' => 270, 
     1231                                                      'depth'  => 262144, 
     1232                                                      'color'  => 1 
     1233                                                      ), 
    12101234                                    'P702I' => array( 
    12111235                                                     'width'  => 240, 
     
    12921316                                                       'color'  => 1 
    12931317                                                       ), 
     1318                                    'N601I' => array( 
     1319                                                     'width'  => 240, 
     1320                                                     'height' => 270, 
     1321                                                     'depth'  => 65536, 
     1322                                                     'color'  => 1 
     1323                                                     ), 
     1324                                    'D800IDS' => array( 
     1325                                                       'width'  => 230, 
     1326                                                       'height' => 240, 
     1327                                                       'depth'  => 262144, 
     1328                                                       'color'  => 1 
     1329                                                       ), 
     1330                                    'P703IMYU' => array( 
     1331                                                        'width'  => 240, 
     1332                                                        'height' => 270, 
     1333                                                        'depth'  => 262144, 
     1334                                                        'color'  => 1 
     1335                                                        ), 
    12941336 
    12951337                                    // i-mode compliant HTML 7.0 
     
    13061348                                                     'depth'  => 262144, 
    13071349                                                     'color'  => 1 
    1308                                                      ) 
     1350                                                     ), 
     1351                                    'N903I' => array( 
     1352                                                     'width'  => 240, 
     1353                                                     'height' => 270, 
     1354                                                     'depth'  => 262144, 
     1355                                                     'color'  => 1 
     1356                                                     ), 
     1357                                    'D903I' => array( 
     1358                                                     'width'  => 230, 
     1359                                                     'height' => 320, 
     1360                                                     'depth'  => 262144, 
     1361                                                     'color'  => 1 
     1362                                                     ), 
     1363                                    'F903I' => array( 
     1364                                                     'width'  => 230, 
     1365                                                     'height' => 240, 
     1366                                                     'depth'  => 262144, 
     1367                                                     'color'  => 1 
     1368                                                     ), 
     1369                                    'SO903I' => array( 
     1370                                                      'width'  => 240, 
     1371                                                      'height' => 368, 
     1372                                                      'depth'  => 262144, 
     1373                                                      'color'  => 1 
     1374                                                      ), 
     1375                                    'D903ITV' => array( 
     1376                                                      'width'  => 230, 
     1377                                                      'height' => 320, 
     1378                                                      'depth'  => 262144, 
     1379                                                      'color'  => 1 
     1380                                                      ), 
     1381                                    'F903IX' => array( 
     1382                                                      'width'  => 230, 
     1383                                                      'height' => 240, 
     1384                                                      'depth'  => 262144, 
     1385                                                      'color'  => 1 
     1386                                                      ), 
     1387                                    'P903ITV' => array( 
     1388                                                       'width'  => 240, 
     1389                                                       'height' => 350, 
     1390                                                       'depth'  => 262144, 
     1391                                                       'color'  => 1 
     1392                                                       ), 
     1393                                    'N703ID' => array( 
     1394                                                      'width'  => 240, 
     1395                                                      'height' => 270, 
     1396                                                      'depth'  => 262144, 
     1397                                                      'color'  => 1 
     1398                                                      ), 
     1399                                    'F703I' => array( 
     1400                                                     'width'  => 230, 
     1401                                                     'height' => 240, 
     1402                                                     'depth'  => 262144, 
     1403                                                     'color'  => 1 
     1404                                                     ), 
     1405                                    'P703I' => array( 
     1406                                                     'width'  => 240, 
     1407                                                     'height' => 270, 
     1408                                                     'depth'  => 262144, 
     1409                                                     'color'  => 1 
     1410                                                     ), 
     1411                                    'D703I' => array( 
     1412                                                     'width'  => 230, 
     1413                                                     'height' => 240, 
     1414                                                     'depth'  => 262144, 
     1415                                                     'color'  => 1 
     1416                                                     ), 
     1417                                    'SH703I' => array( 
     1418                                                      'width'  => 240, 
     1419                                                      'height' => 240, 
     1420                                                      'depth'  => 262144, 
     1421                                                      'color'  => 1 
     1422                                                      ), 
     1423                                    'SH703I' => array( 
     1424                                                      'width'  => 240, 
     1425                                                      'height' => 240, 
     1426                                                      'depth'  => 262144, 
     1427                                                      'color'  => 1 
     1428                                                      ), 
     1429                                    'N703IMYU' => array( 
     1430                                                        'width'  => 240, 
     1431                                                        'height' => 270, 
     1432                                                        'depth'  => 262144, 
     1433                                                        'color'  => 1 
     1434                                                        ), 
     1435                                    'SO703I' => array( 
     1436                                                      'width'  => 240, 
     1437                                                      'height' => 368, 
     1438                                                      'depth'  => 262144, 
     1439                                                      'color'  => 1 
     1440                                                      ) 
    13091441                                    ); 
    13101442            } 
  • temp/branches/mobile/data/module/Net/UserAgent/Mobile/EZweb.php

    r11398 r11456  
    1414 * @package    Net_UserAgent_Mobile 
    1515 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
    16  * @copyright  2003-2006 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
    1717 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    18  * @version    CVS: $Id: EZweb.php,v 1.15 2006/11/07 09:25:14 kuboa Exp $ 
     18 * @version    CVS: $Id: EZweb.php,v 1.17 2007/02/20 15:19:07 kuboa Exp $ 
    1919 * @link       http://www.au.kddi.com/ezfactory/tec/spec/4_4.html 
    2020 * @link       http://www.au.kddi.com/ezfactory/tec/spec/new_win/ezkishu.html 
     
    3737 * SYNOPSIS: 
    3838 * <code> 
    39  * require_once('Net/UserAgent/Mobile.php'); 
     39 * require_once 'Net/UserAgent/Mobile.php'; 
    4040 * 
    4141 * $_SERVER['HTTP_USER_AGENT'] = 'UP.Browser/3.01-HI02 UP.Link/3.2.1.2'; 
     
    5959 * @package    Net_UserAgent_Mobile 
    6060 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
    61  * @copyright  2003-2006 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     61 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
    6262 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    63  * @version    Release: @package_version@ 
     63 * @version    Release: 0.30.0 
    6464 * @link       http://www.au.kddi.com/ezfactory/tec/spec/4_4.html 
    6565 * @link       http://www.au.kddi.com/ezfactory/tec/spec/new_win/ezkishu.html 
  • temp/branches/mobile/data/module/Net/UserAgent/Mobile/NonMobile.php

    r11398 r11456  
    11<?php 
    22/* 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 <iteman@users.sourceforge.net>                            | 
    17 // +----------------------------------------------------------------------+ 
    18 // 
    19 // $Id: NonMobile.php,v 1.10 2006/11/07 09:25:14 kuboa Exp $ 
    20 // 
     3 
     4/** 
     5 * PHP versions 4 and 5 
     6 * 
     7 * LICENSE: This source file is subject to version 3.0 of the PHP license 
     8 * that is available through the world-wide-web at the following URI: 
     9 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of 
     10 * the PHP License and are unable to obtain it through the web, please 
     11 * send a note to license@php.net so we can mail you a copy immediately. 
     12 * 
     13 * @category   Networking 
     14 * @package    Net_UserAgent_Mobile 
     15 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
     18 * @version    CVS: $Id: NonMobile.php,v 1.12 2007/02/20 15:20:02 kuboa Exp $ 
     19 * @see        Net_UserAgent_Mobile_Common 
     20 * @since      File available since Release 0.1.0 
     21 */ 
    2122 
    2223require_once(dirname(__FILE__) . '/Common.php'); 
    2324require_once(dirname(__FILE__) . '/Display.php'); 
     25 
     26// {{{ Net_UserAgent_Mobile_NonMobile 
    2427 
    2528/** 
     
    3235 * SYNOPSIS: 
    3336 * <code> 
    34  * require_once('Net/UserAgent/Mobile.php'); 
     37 * require_once 'Net/UserAgent/Mobile.php'; 
    3538 * 
    3639 * $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/4.0'; 
     
    3841 * </code> 
    3942 * 
    40  * @package  Net_UserAgent_Mobile 
    41  * @category Networking 
    42  * @author   KUBO Atsuhiro <iteman@users.sourceforge.net> 
    43  * @access   public 
    44  * @version  $Revision: 1.10 $ 
    45  * @see      Net_UserAgent_Mobile_Common 
     43 * @category   Networking 
     44 * @package    Net_UserAgent_Mobile 
     45 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
     46 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     47 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
     48 * @version    Release: 0.30.0 
     49 * @see        Net_UserAgent_Mobile_Common 
     50 * @since      Class available since Release 0.1.0 
    4651 */ 
    4752class Net_UserAgent_Mobile_NonMobile extends Net_UserAgent_Mobile_Common 
    4853{ 
     54 
     55    // {{{ properties 
     56 
     57    /**#@+ 
     58     * @access public 
     59     */ 
     60 
     61    /**#@-*/ 
     62 
     63    /**#@+ 
     64     * @access private 
     65     */ 
     66 
     67    /**#@-*/ 
    4968 
    5069    /**#@+ 
     
    145164 
    146165    /**#@-*/ 
     166 
     167    /**#@+ 
     168     * @access private 
     169     */ 
     170 
     171    /**#@-*/ 
     172 
     173    // }}} 
    147174} 
     175 
     176// }}} 
    148177 
    149178/* 
  • temp/branches/mobile/data/module/Net/UserAgent/Mobile/Request.php

    r11398 r11456  
    11<?php 
    22/* 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 <iteman@users.sourceforge.net>                            | 
    17 // +----------------------------------------------------------------------+ 
    18 // 
    19 // $Id: Request.php,v 1.5 2006/11/07 09:25:14 kuboa Exp $ 
    20 // 
     3 
     4/** 
     5 * PHP versions 4 and 5 
     6 * 
     7 * LICENSE: This source file is subject to version 3.0 of the PHP license 
     8 * that is available through the world-wide-web at the following URI: 
     9 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of 
     10 * the PHP License and are unable to obtain it through the web, please 
     11 * send a note to license@php.net so we can mail you a copy immediately. 
     12 * 
     13 * @category   Networking 
     14 * @package    Net_UserAgent_Mobile 
     15 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
     18 * @version    CVS: $Id: Request.php,v 1.6 2007/02/20 15:18:26 kuboa Exp $ 
     19 * @since      File available since Release 0.1 
     20 */ 
     21 
     22// {{{ Net_UserAgent_Mobile_Request 
    2123 
    2224/** 
     
    2426 * HTTP header containers 
    2527 * 
    26  * @package  Net_UserAgent_Mobile 
    27  * @category Networking 
    28  * @author   KUBO Atsuhiro <iteman@users.sourceforge.net> 
    29  * @access   public 
    30  * @version  $Revision: 1.5 $ 
     28 * @category   Networking 
     29 * @package    Net_UserAgent_Mobile 
     30 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
     31 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     32 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
     33 * @version    Release: 0.30.0 
     34 * @since      Class available since Release 0.1 
    3135 */ 
    3236class Net_UserAgent_Mobile_Request 
    3337{ 
     38 
     39    // {{{ properties 
     40 
     41    /**#@+ 
     42     * @access public 
     43     */ 
     44 
     45    /**#@-*/ 
     46 
     47    /**#@+ 
     48     * @access private 
     49     */ 
     50 
     51    /**#@-*/ 
    3452 
    3553    /**#@+ 
     
    6684 
    6785    /**#@-*/ 
     86 
     87    /**#@+ 
     88     * @access private 
     89     */ 
     90 
     91    /**#@-*/ 
     92 
     93    // }}} 
    6894} 
     95 
     96// }}} 
     97// {{{ Net_UserAgent_Mobile_Request_Env 
    6998 
    7099/** 
    71100 * provides easy way to access environment variables 
    72101 * 
    73  * @package  Net_UserAgent_Mobile 
    74  * @category Networking 
    75  * @author   KUBO Atsuhiro <iteman@users.sourceforge.net> 
    76  * @access   public 
    77  * @version  $Revision: 1.5 $ 
     102 * @category   Networking 
     103 * @package    Net_UserAgent_Mobile 
     104 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
     105 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     106 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
     107 * @version    Release: 0.30.0 
     108 * @since      Class available since Release 0.1 
    78109 */ 
    79110class Net_UserAgent_Mobile_Request_Env 
     
    81112 
    82113    // {{{ properties 
     114 
     115    /**#@+ 
     116     * @access public 
     117     */ 
     118 
     119    /**#@-*/ 
    83120 
    84121    /**#@+ 
     
    124161 
    125162    /**#@-*/ 
     163 
     164    /**#@+ 
     165     * @access private 
     166     */ 
     167 
     168    /**#@-*/ 
     169 
     170    // }}} 
    126171} 
     172 
     173// }}} 
    127174 
    128175/* 
  • temp/branches/mobile/data/module/Net/UserAgent/Mobile/Vodafone.php

    r11398 r11456  
    1414 * @package    Net_UserAgent_Mobile 
    1515 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
    16  * @copyright  2003-2006 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
    1717 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    18  * @version    CVS: $Id: Vodafone.php,v 1.8 2006/11/07 09:25:14 kuboa Exp $ 
    19  * @since      File available since Release 0.1 
     18 * @version    CVS: $Id: Vodafone.php,v 1.12 2007/02/20 15:21:05 kuboa Exp $ 
     19 * @since      File available since Release 0.20.0 
    2020 */ 
    2121 
     
    2323require_once dirname(__FILE__) . '/Display.php'; 
    2424 
     25// {{{ Net_UserAgent_Mobile_Vodafone 
     26 
    2527/** 
    2628 * Vodafone implementation 
     
    3133 * SYNOPSIS: 
    3234 * <code> 
    33  * require_once('Net/UserAgent/Mobile.php'); 
     35 * require_once 'Net/UserAgent/Mobile.php'; 
    3436 * 
    3537 * $_SERVER['HTTP_USER_AGENT'] = 'J-PHONE/2.0/J-DN02'; 
     
    5860 * @package    Net_UserAgent_Mobile 
    5961 * @author     KUBO Atsuhiro <iteman@users.sourceforge.net> 
    60  * @copyright  2003-2006 KUBO Atsuhiro <iteman@users.sourceforge.net> 
     62 * @copyright  2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 
    6163 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    62  * @version    Release: @package_version@ 
     64 * @version    Release: 0.30.0 
    6365 * @link       http://developers.vodafone.jp/dp/tool_dl/web/useragent.php 
    6466 * @link       http://developers.vodafone.jp/dp/tool_dl/web/position.php 
    6567 * @see        Net_UserAgent_Mobile_Common 
    66  * @since      Class available since Release 0.1 
     68 * @since      Class available since Release 0.20.0 
    6769 */ 
    6870class Net_UserAgent_Mobile_Vodafone extends Net_UserAgent_Mobile_Common 
     
    444446              $serialNumber) = explode('/', $agent[0]); 
    445447        if ($serialNumber) { 
    446             if ($serialNumber) { 
    447                 if (!preg_match('!^SN(.+)!', $serialNumber, $matches)) { 
    448                     return $this->noMatch(); 
    449                 } 
    450                 $this->_serialNumber = $matches[1]; 
     448            if (!preg_match('!^SN(.+)!', $serialNumber, $matches)) { 
     449                return $this->noMatch(); 
    451450            } 
    452         } 
    453  
    454         if (!preg_match('!^([a-z]+)([a-z]\d{2,3})$!i', $modelVersion, $matches)) { 
     451            $this->_serialNumber = $matches[1]; 
     452        } 
     453 
     454        if (!preg_match('!^([a-z]+)((?:[a-z]|\d){4})$!i', $modelVersion, $matches)) { 
    455455            return $this->noMatch(); 
    456456        } 
Note: See TracChangeset for help on using the changeset viewer.