cvs: pear /Net_UserAgent_Mobile/Mobile DoCoMo.php

From: Date: Thu, 03 Apr 2003 13:19:35 +0000
Subject: cvs: pear /Net_UserAgent_Mobile/Mobile DoCoMo.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-9719@lists.php.net to get a copy of this message
kuboa Thu Apr 3 08:19:35 2003 EDT Modified files: /pear/Net_UserAgent_Mobile/Mobile DoCoMo.php Log: - getHTMLVersion(): Removed code for FOMA. Index: pear/Net_UserAgent_Mobile/Mobile/DoCoMo.php diff -u pear/Net_UserAgent_Mobile/Mobile/DoCoMo.php:1.4 pear/Net_UserAgent_Mobile/Mobile/DoCoMo.php:1.5 --- pear/Net_UserAgent_Mobile/Mobile/DoCoMo.php:1.4 Wed Mar 26 11:13:03 2003 +++ pear/Net_UserAgent_Mobile/Mobile/DoCoMo.php Thu Apr 3 08:19:35 2003 @@ -16,7 +16,7 @@ // | Authors: KUBO Atsuhiro <kubo@isite.co.jp> | // +----------------------------------------------------------------------+ // -// $Id: DoCoMo.php,v 1.4 2003/03/26 16:13:03 kuboa Exp $ +// $Id: DoCoMo.php,v 1.5 2003/04/03 13:19:35 kuboa Exp $ // require_once('Net/UserAgent/Mobile/Common.php'); @@ -68,7 +68,7 @@ * @category Networking * @author KUBO Atsuhiro <kubo@isite.co.jp> * @access public - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * @see Net_UserAgent_Mobile_Common * @link http://www.nttdocomo.co.jp/p_s/imode/spec/useragent.html * @link http://www.nttdocomo.co.jp/p_s/imode/tag/imodetag.html @@ -216,30 +216,6 @@ */ function getHTMLVersion() { - if ($this->isFOMA()) { - $html_version_map_foma = - &PEAR::getStaticProperty('Net_UserAgent_Mobile_DoCoMo', - 'html_version_map_foma' - ); - if ($html_version_map_foma === null) { - - // http://www.nttdocomo.co.jp/p_s/imode/spec/useragent.html - $html_version_map_foma = array( - // FOMA 2001/2002/2101V - '200[12]|2101V' => '3.0', - - // FOMA 2051/2102V - '2051|2102V' => '4.0' - ); - } - foreach ($html_version_map_foma as $key => $value) { - if (preg_match("/$key/", $this->_model)) { - return $value; - } - } - return null; - } - $html_version_map = &PEAR::getStaticProperty('Net_UserAgent_Mobile_DoCoMo', 'html_version_map' ); @@ -250,8 +226,8 @@ // regex => version '[DFNP]501i' => '1.0', '502i|821i|209i|691i|(F|N|P|KO)210i|^F671i$' => '2.0', - '(D210i|SO210i)|503i|211i|SH251i|692i' => '3.0', - '504i|251i|^F671iS$|212i' => '4.0', + '(D210i|SO210i)|503i|211i|SH251i|692i|200[12]|2101V' => '3.0', + '504i|251i|^F671iS$|212i|2051|2102V' => '4.0', 'eggy|P751v' => '3.2' ); }

« previous php.pear.cvs (#9719) next »