# Socket functions
/** get a line from server
- * @return STRING
+ * @return STRING
*/
private function &getLine()
{
private function putLine($line, $format = false)
{
if ($format) {
- $line = str_replace(array("\r", "\n"), '', $line);
+ $line = str_replace(array("\r", "\n"), '', $line);
$line .= "\r\n";
}
if ($this->debug) {
/** retrieves an article
* MSGID is a numeric ID a shown in article's headers. MSGNUM is a
- * server-dependent ID (see X-Ref on many servers) and retriving
+ * server-dependent ID (see X-Ref on many servers) and retriving
* an article by this way will change the current article pointer.
- * If an error occur, false is returned.
+ * If an error occur, false is returned.
* @param $_msgid STRING MSGID or MSGNUM of article
* @return ARRAY lines of the article
* @see body
/** post a message
* if an error occur, false is returned
* @param $_message STRING message to post
- * @return STRING MSGID of article
+ * @return STRING MSGID of article
*/
public function post($message)
{
}
/** set current group
- * @param $_group STRING
+ * @param $_group STRING
* @return ARRAY array : nb of articles in group, MSGNUM of first article, MSGNUM of last article, and group name
*/
public function group($group)
return gmdate("ymd His", $since) . ' GMT';
}
- /** get information about recent newsgroups
+ /** get information about recent newsgroups
* same as list, but information are limited to newgroups created after $_since
* @param $_since INTEGER unix timestamp
- * @param $_distributions STRING distributions
+ * @param $_distributions STRING distributions
* @return ARRAY same format as liste
* @see liste
*/
/** gets a list of new articles
* @param $_since INTEGER unix timestamp
- * @parma $_groups STRING pattern of intersting groups
+ * @parma $_groups STRING pattern of intersting groups
* @return ARRAY MSGID of new articles
*/
public function newnews($groups = '*', $since = 0, $distributions = '')
/** implements IHAVE method
* @param $_msgid STRING MSGID of article
* @param $_message STRING article
- * @return BOOLEAN
+ * @return BOOLEAN
*/
public function ihave($msgid, $message = false)
{
# NNTP Extensions [RFC 2980]
/** Returns the date on the remote server
- * @return INTEGER timestamp
+ * @return INTEGER timestamp
*/
public function date()
/** obtain the header field $hdr for all the messages specified
* @param $_hdr STRING name of the header (eg: 'From')
- * @param $_range STRING range of articles
+ * @param $_range STRING range of articles
* @return ARRAY MSGNUM => header value
*/
public function xhdr($hdr, $first = null, $last = null)
/** obtain the header field $_hdr matching $_pat for all the messages specified
* @param $_hdr STRING name of the header (eg: 'From')
- * @param $_range STRING range of articles
+ * @param $_range STRING range of articles
* @param $_pat STRING pattern
* @return ARRAY MSGNUM => header value
*/
}
}
-// vim:set et sw=4 sts=4 ts=4 enc=utf-8:
+// vim:set et sw=4 sts=4 ts=4 enc=utf-8:
?>