- Timestamp:
- 2007/02/25 00:33:58 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/mobile/data/module/Net/UserAgent/Mobile/Vodafone.php
r11398 r11456 14 14 * @package Net_UserAgent_Mobile 15 15 * @author KUBO Atsuhiro <[email protected]> 16 * @copyright 2003-200 6KUBO Atsuhiro <[email protected]>16 * @copyright 2003-2007 KUBO Atsuhiro <[email protected]> 17 17 * @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:14kuboa Exp $19 * @since File available since Release 0. 118 * @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 20 20 */ 21 21 … … 23 23 require_once dirname(__FILE__) . '/Display.php'; 24 24 25 // {{{ Net_UserAgent_Mobile_Vodafone 26 25 27 /** 26 28 * Vodafone implementation … … 31 33 * SYNOPSIS: 32 34 * <code> 33 * require_once ('Net/UserAgent/Mobile.php');35 * require_once 'Net/UserAgent/Mobile.php'; 34 36 * 35 37 * $_SERVER['HTTP_USER_AGENT'] = 'J-PHONE/2.0/J-DN02'; … … 58 60 * @package Net_UserAgent_Mobile 59 61 * @author KUBO Atsuhiro <[email protected]> 60 * @copyright 2003-200 6KUBO Atsuhiro <[email protected]>62 * @copyright 2003-2007 KUBO Atsuhiro <[email protected]> 61 63 * @license http://www.php.net/license/3_0.txt PHP License 3.0 62 * @version Release: @package_version@64 * @version Release: 0.30.0 63 65 * @link http://developers.vodafone.jp/dp/tool_dl/web/useragent.php 64 66 * @link http://developers.vodafone.jp/dp/tool_dl/web/position.php 65 67 * @see Net_UserAgent_Mobile_Common 66 * @since Class available since Release 0. 168 * @since Class available since Release 0.20.0 67 69 */ 68 70 class Net_UserAgent_Mobile_Vodafone extends Net_UserAgent_Mobile_Common … … 444 446 $serialNumber) = explode('/', $agent[0]); 445 447 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(); 451 450 } 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)) { 455 455 return $this->noMatch(); 456 456 }
Note: See TracChangeset
for help on using the changeset viewer.
