cvs: pear(MAINT_1_1) /Net_NNTP/NNTP Client.php
| From: | Heino H. Gehlsen | Date: | Wed, 30 Nov 2005 00:35:54 +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-36603@lists.php.net to get a copy of this message | ||
heino Tue Nov 29 19:35:54 2005 EDT
Modified files: (Branch: MAINT_1_1)
/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.4.2.8&r2=1.4.2.9&ty=u
Index: pear/Net_NNTP/NNTP/Client.php
diff -u pear/Net_NNTP/NNTP/Client.php:1.4.2.8 pear/Net_NNTP/NNTP/Client.php:1.4.2.9
--- pear/Net_NNTP/NNTP/Client.php:1.4.2.8 Mon Nov 28 05:04:10 2005
+++ pear/Net_NNTP/NNTP/Client.php Tue Nov 29 19:35:54 2005
@@ -58,7 +58,7 @@
// | been changes or removed. |
// | |
// +-----------------------------------------------------------------------+
-// $Id: Client.php,v 1.4.2.8 2005/11/28 10:04:10 heino Exp $
+// $Id: Client.php,v 1.4.2.9 2005/11/30 00:35:54 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.8 2005/11/28 10:04:10 heino Exp $
+ * @version $Id: Client.php,v 1.4.2.9 2005/11/30 00:35:54 heino Exp $
* @access public
* @see Net_NNTP_Protocol_Client
* @since Class available since Release 0.11.0
@@ -291,7 +291,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)
{
@@ -330,7 +330,7 @@
}
// }}}
- // {{{ getReferencesOverview()
+ // {{{ getReferences()
/**
* Fetch a list of each message's reference header field.
@@ -340,10 +340,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;
@@ -367,6 +366,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()
/**
@@ -794,7 +812,7 @@
*/
function getNewNews($time, $newsgroups = '*', $distribution = null)
{
- return $this->getNewNews($time, $newsgroups, $distribution);
+ return $this->getNewArticles($time, $newsgroups, $distribution);
}
// }}}