cvs: pear(MAINT_1_1) /Net_NNTP/NNTP Client.php

From: Date: Sun, 13 Mar 2005 17:29:35 +0000
Subject: cvs: pear(MAINT_1_1) /Net_NNTP/NNTP Client.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30247@lists.php.net to get a copy of this message
heino Sun Mar 13 12:29:35 2005 EDT Modified files: (Branch: MAINT_1_1) /pear/Net_NNTP/NNTP Client.php Log: Remove Net_NNTP_Client::connectAuthenticated() - it should only exist in the MAINT_1_2 branch for now (was not removed by mistake) http://cvs.php.net/diff.php/pear/Net_NNTP/NNTP/Client.php?r1=1.4.2.3&r2=1.4.2.4&ty=u Index: pear/Net_NNTP/NNTP/Client.php diff -u pear/Net_NNTP/NNTP/Client.php:1.4.2.3 pear/Net_NNTP/NNTP/Client.php:1.4.2.4 --- pear/Net_NNTP/NNTP/Client.php:1.4.2.3 Fri Jan 14 15:02:59 2005 +++ pear/Net_NNTP/NNTP/Client.php Sun Mar 13 12:29:33 2005 @@ -58,7 +58,7 @@ // | been changes or removed. | // | | // +-----------------------------------------------------------------------+ -// $Id: Client.php,v 1.4.2.3 2005/01/14 20:02:59 heino Exp $ +// $Id: Client.php,v 1.4.2.4 2005/03/13 17:29:33 heino Exp $ require_once 'Net/NNTP/Protocol/Client.php'; @@ -81,7 +81,7 @@ * @category Net * @package Net_NNTP * @author Heino H. Gehlsen <heino@gehlsen.dk> - * @version $Id: Client.php,v 1.4.2.3 2005/01/14 20:02:59 heino Exp $ + * @version $Id: Client.php,v 1.4.2.4 2005/03/13 17:29:33 heino Exp $ * @access public * @see Net_NNTP_Protocol_Client * @since Class available since Release 0.11.0 @@ -134,48 +134,6 @@ } // }}} - // {{{ connectAuthenticated() - - /** - * Connect to the NNTP-server, and authenticate using given username and password. - * - * @param optional string $user The username. - * @param optional string $pass The password. - * @param optional string $host The IP-address of the NNTP-server to connect to. - * @param optional int $port The port to connect to. - * @param optional string $authmode The authentication mode. - * - * @return mixed (bool) true on success or (object) pear_error on failure - * @access public - * @since 0.3 - * @deprecated use connect() and authenticate() instead - * @see Net_NNTP_Client::connect() - * @see Net_NNTP_Client::authenticate() - * @see Net_NNTP_Client::quit() - */ - function connectAuthenticated($user = null, - $pass = null, - $host = NET_NNTP_PROTOCOL_CLIENT_DEFAULT_HOST, - $port = NET_NNTP_PROTOCOL_CLIENT_DEFAULT_PORT, - $authmode = NET_NNTP_CLIENT_AUTH_ORIGINAL) - { - $R = $this->connect($host, $port); - if (PEAR::isError($R)) { - return $R; - } - - // Authenticate if username is given - if ($user != null) { - $R = $this->authenticate($user, $pass, $authmode); - if (PEAR::isError($R)) { - return $R; - } - } - - return true; - } - - // }}} // {{{ quit() /**

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