cvs: pear /Net_UserAgent_Mobile Mobile.php /Net_UserAgent_Mobile/Mobile Common.php

From: Date: Tue, 12 May 2009 17:47:21 +0000
Subject: cvs: pear /Net_UserAgent_Mobile Mobile.php /Net_UserAgent_Mobile/Mobile Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-56084@lists.php.net to get a copy of this message
kuboa Tue May 12 17:47:21 2009 UTC Modified files: /pear/Net_UserAgent_Mobile Mobile.php /pear/Net_UserAgent_Mobile/Mobile Common.php Log: Changed the class declaration so as not to inherit from PEAR. http://cvs.php.net/viewvc.cgi/pear/Net_UserAgent_Mobile/Mobile.php?r1=1.43&r2=1.44&diff_format=u Index: pear/Net_UserAgent_Mobile/Mobile.php diff -u pear/Net_UserAgent_Mobile/Mobile.php:1.43 pear/Net_UserAgent_Mobile/Mobile.php:1.44 --- pear/Net_UserAgent_Mobile/Mobile.php:1.43 Sun May 10 17:28:47 2009 +++ pear/Net_UserAgent_Mobile/Mobile.php Tue May 12 17:47:21 2009 @@ -33,7 +33,7 @@ * @author KUBO Atsuhiro <kubo@iteman.jp> * @copyright 2003-2009 KUBO Atsuhiro <kubo@iteman.jp> * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Mobile.php,v 1.43 2009/05/10 17:28:47 kuboa Exp $ + * @version CVS: $Id: Mobile.php,v 1.44 2009/05/12 17:47:21 kuboa Exp $ * @since File available since Release 0.1 */ @@ -189,7 +189,7 @@ return $instance; } - return $instance->raiseError($error); + return PEAR::raiseError($error); } return $instance; http://cvs.php.net/viewvc.cgi/pear/Net_UserAgent_Mobile/Mobile/Common.php?r1=1.31&r2=1.32&diff_format=u Index: pear/Net_UserAgent_Mobile/Mobile/Common.php diff -u pear/Net_UserAgent_Mobile/Mobile/Common.php:1.31 pear/Net_UserAgent_Mobile/Mobile/Common.php:1.32 --- pear/Net_UserAgent_Mobile/Mobile/Common.php:1.31 Sun May 10 17:28:47 2009 +++ pear/Net_UserAgent_Mobile/Mobile/Common.php Tue May 12 17:47:21 2009 @@ -33,11 +33,12 @@ * @author KUBO Atsuhiro <kubo@iteman.jp> * @copyright 2003-2009 KUBO Atsuhiro <kubo@iteman.jp> * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Common.php,v 1.31 2009/05/10 17:28:47 kuboa Exp $ + * @version CVS: $Id: Common.php,v 1.32 2009/05/12 17:47:21 kuboa Exp $ * @since File available since Release 0.1 */ require_once 'Net/UserAgent/Mobile.php'; +require_once 'PEAR.php'; // {{{ Net_UserAgent_Mobile_Common @@ -55,7 +56,7 @@ * @version Release: @package_version@ * @since Class available since Release 0.1 */ -class Net_UserAgent_Mobile_Common extends PEAR +class Net_UserAgent_Mobile_Common { // {{{ properties @@ -133,8 +134,6 @@ */ function Net_UserAgent_Mobile_Common($userAgent) { - parent::PEAR('Net_UserAgent_Mobile_Error'); - $this->_userAgent = $userAgent; $result = $this->parse($userAgent); @@ -243,9 +242,13 @@ */ function noMatch() { - return $this->raiseError($this->getUserAgent() . ': might be new variants. Please contact the author of Net_UserAgent_Mobile!', - NET_USERAGENT_MOBILE_ERROR_NOMATCH - ); + return PEAR::raiseError($this->getUserAgent() . ': might be new variants. Please contact the author of Net_UserAgent_Mobile!', + NET_USERAGENT_MOBILE_ERROR_NOMATCH, + null, + null, + null, + 'Net_UserAgent_Mobile_Error' + ); } // }}}

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