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

From: Date: Wed, 30 Nov 2005 00:33:42 +0000
Subject: cvs: pear(MAINT_1_2) /Net_NNTP/NNTP Client.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36602@lists.php.net to get a copy of this message
heino Tue Nov 29 19:33:42 2005 EDT Modified files: (Branch: MAINT_1_2) /pear/Net_NNTP/NNTP Client.php Log: rename getReferencesOverview() into getReferences() & fix typo in deprecated getNewNews() http://cvs.php.net/diff.php/pear/Net_NNTP/NNTP/Client.php?r1=1.5.2.8&r2=1.5.2.9&ty=u Index: pear/Net_NNTP/NNTP/Client.php diff -u pear/Net_NNTP/NNTP/Client.php:1.5.2.8 pear/Net_NNTP/NNTP/Client.php:1.5.2.9 --- pear/Net_NNTP/NNTP/Client.php:1.5.2.8 Mon Nov 28 04:45:35 2005 +++ pear/Net_NNTP/NNTP/Client.php Tue Nov 29 19:33:38 2005 @@ -58,7 +58,7 @@ // | been changes or removed. | // | | // +-----------------------------------------------------------------------+ -// $Id: Client.php,v 1.5.2.8 2005/11/28 09:45:35 heino Exp $ +// $Id: Client.php,v 1.5.2.9 2005/11/30 00:33:38 heino Exp $ require_once 'Net/NNTP/Protocol/Client.php'; require_once 'Net/NNTP/Header.php'; @@ -83,7 +83,7 @@ * @category Net * @package Net_NNTP * @author Heino H. Gehlsen <heino@gehlsen.dk> - * @version $Id: Client.php,v 1.5.2.8 2005/11/28 09:45:35 heino Exp $ + * @version $Id: Client.php,v 1.5.2.9 2005/11/30 00:33:38 heino Exp $ * @access public * @see Net_NNTP_Protocol_Client * @since Class available since Release 0.11.0 @@ -293,7 +293,7 @@ * @return mixed (array) nested array of message and their headers on success or (object) pear_error on failure * @access public * @see Net_NNTP_Client::getOverviewFormat() - * @see Net_NNTP_Client::getReferencesOverview() + * @see Net_NNTP_Client::getReferences() */ function getOverview($first, $last) { @@ -332,7 +332,7 @@ } // }}} - // {{{ getReferencesOverview() + // {{{ getReferences() /** * Fetch a list of each message's reference header field. @@ -342,10 +342,9 @@ * * @return mixed (array) nested array of references on success or (object) pear_error on failure * @access public - * @see Net_NNTP_Client::getOverview() * @see Net_NNTP_Client::getHeaderField() */ - function getReferencesOverview($first, $last) + function getReferences($first, $last) { $range = $first . '-' . $last; @@ -369,6 +368,25 @@ } // }}} + // {{{ getReferencesOverview() + + /** + * Deprecated alias for getReferences() + * + * @param integer $first first article to fetch + * @param integer $last last article to fetch + * + * @return mixed (array) nested array of references on success or (object) pear_error on failure + * @access public + * @see Net_NNTP_Client::getOverview() + * @see Net_NNTP_Client::getHeaderField() + */ + function getReferencesOverview($first, $last) + { + return $this->getReferences($first, $last) + } + + // }}} // {{{ getHeaderField() /** @@ -796,7 +814,7 @@ */ function getNewNews($time, $newsgroups = '*', $distribution = null) { - return $this->getNewNews($time, $newsgroups, $distribution); + return $this->getNewArticles($time, $newsgroups, $distribution); } // }}}

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