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

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

File:
1 edited

Legend:

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

    r11398 r11456  
    1414 * @package    Net_UserAgent_Mobile 
    1515 * @author     KUBO Atsuhiro <[email protected]> 
    16  * @copyright  2003-2006 KUBO Atsuhiro <[email protected]> 
     16 * @copyright  2003-2007 KUBO Atsuhiro <[email protected]> 
    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 <[email protected]> 
    60  * @copyright  2003-2006 KUBO Atsuhiro <[email protected]> 
     62 * @copyright  2003-2007 KUBO Atsuhiro <[email protected]> 
    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.