cvs: pear(MAINT_0_10) /Net_NNTP NNTP.php

From: Date: Fri, 25 Jun 2004 12:44:34 +0000
Subject: cvs: pear(MAINT_0_10) /Net_NNTP NNTP.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-21111@lists.php.net to get a copy of this message
heino Fri Jun 25 08:44:34 2004 EDT Modified files: (Branch: MAINT_0_10) /pear/Net_NNTP NNTP.php Log: Net_NNTP_Protocol no longer extends PEAR (now uses only static PEAR:: methods). http://cvs.php.net/diff.php/pear/Net_NNTP/NNTP.php?r1=1.28&r2=1.28.2.1&ty=u Index: pear/Net_NNTP/NNTP.php diff -u pear/Net_NNTP/NNTP.php:1.28 pear/Net_NNTP/NNTP.php:1.28.2.1 --- pear/Net_NNTP/NNTP.php:1.28 Fri Oct 10 16:37:27 2003 +++ pear/Net_NNTP/NNTP.php Fri Jun 25 08:44:34 2004 @@ -18,7 +18,7 @@ // | Heino H. Gehlsen <heino@gehlsen.dk> | // +----------------------------------------------------------------------+ // -// $Id: NNTP.php,v 1.28 2003/10/10 20:37:27 heino Exp $ +// $Id: NNTP.php,v 1.28.2.1 2004/06/25 12:44:34 heino Exp $ require_once 'Net/NNTP/Protocol.php'; @@ -213,13 +213,13 @@ { /* connect to the server */ $R = $this->connect($host, $port, $user, $pass, $authmode); - if ($this->isError($R)) { + if (PEAR::isError($R)) { return $R; } /* issue a GROUP command */ $R = $this->selectGroup($newsgroup); - if ($this->isError($R)) { + if (PEAR::isError($R)) { return $R; } @@ -246,7 +246,7 @@ { // Username is a must... if ($user == null) { - return $this->throwError('No username supplied', null); + return PEAR::throwError('No username supplied', null); } // Use selected authentication method @@ -261,7 +261,7 @@ return $this->cmdAuthinfoGeneric($user, $pass); break; default: - return $this->throwError("The auth mode: '$mode' is unknown", null); + return PEAR::throwError("The auth mode: '$mode' is unknown", null); } } @@ -624,7 +624,7 @@ $time = (int) strtotime($time); break; default: - return $this->throwError(''); + return PEAR::throwError(''); } return $this->cmdNewgroups($time); @@ -648,7 +648,7 @@ $time = (int) strtotime($time); break; default: - return $this->throwError('UPS...'); + return PEAR::throwError('UPS...'); } return $this->cmdNewnews($time, $newsgroups); @@ -826,7 +826,7 @@ // Retrieve headers $headers = $this->getHeaderRaw($article, false); if (PEAR::isError($headers)) { - return $this->throwError($headers); + return PEAR::throwError($headers); } $return = array();

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