Class: Net_NNTP
Source Location: /Net_NNTP-0.11.2/NNTP.php
Net_NNTP_Protocol_Client
|
--Net_NNTP
The Net_NNTP class is an almost 100 % backward compatible frontend class to the Net_NNTP_Protocol_Client class.
Author(s):
Version:
- $Id: NNTP.php,v 1.28.2.1.2.4 2004/08/21 12:15:00 heino Exp $
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
Net_NNTP (Constructor) [line 95]
authenticate [line 253]
mixed authenticate(
string
$user, optional
$pass, [optional
$mode = NET_NNTP_AUTHORIGINAL])
|
|
Auth process (not yet standarized but used any way) http://www.mibsoftware.com/userkt/nntpext/index.html
Parameters:
command [line 913]
mixed command(
string
$cmd)
|
|
Issue a command to the NNTP server
Parameters:
connect [line 124]
mixed connect(
[optional
$host = NET_NNTP_PROTOCOL_CLIENT_DEFAULT_HOST], [optional
$port = NET_NNTP_PROTOCOL_CLIENT_DEFAULT_PORT], [optional
$user = null], [optional
$pass = null], [optional
$authmode = NET_NNTP_AUTHORIGINAL])
|
|
Connect to the newsserver. The function currently allows automatic authentication via the three last parameters, but this feature is to be considered depresated (use connectAuthenticated instead) In the future, this function will just be inherrited from the parent, and thus the last three parameters will no longer be used to authenticate.
Overrides Net_NNTP_Protocol_Client::connect() (Connect to the server)
Parameters:
connectAuthenticated [line 154]
mixed connectAuthenticated(
[optional
$user = null], [optional
$pass = null], [optional
$host = NET_NNTP_PROTOCOL_CLIENT_DEFAULT_HOST], [optional
$port = NET_NNTP_PROTOCOL_CLIENT_DEFAULT_PORT], [optional
$authmode = NET_NNTP_AUTHORIGINAL])
|
|
Connect to the newsserver, and authenticate. If no user/pass is specified, just connect.
Parameters:
count [line 730]
Number of articles in currently selected group
date [line 711]
first [line 782]
Minimum article number in current group
getArticle [line 510]
mixed getArticle(
mixed
$article)
|
|
Get an article (deprecated)
Parameters:
getArticleRaw [line 486]
mixed getArticleRaw(
mixed
$article, [bool
$implode = true])
|
|
Get an article (raw data)
Parameters:
getBody [line 598]
mixed getBody(
mixed
$article)
|
|
Get the body of an article (deprecated)
Parameters:
getBodyRaw [line 574]
mixed getBodyRaw(
mixed
$article, [bool
$implode = true])
|
|
Get the body of an article (raw data)
Parameters:
getDate [line 683]
mixed getDate(
[optional
$format = 1])
|
|
Get the NNTP-server's internal date Get the date from the newsserver format of returned date:
Parameters:
getGroupArticles [line 612]
void getGroupArticles(
$newsgroup)
|
|
Experimental
Parameters:
getGroups [line 334]
Fetches a list of all avaible newsgroups
getHeaderRaw [line 530]
mixed getHeaderRaw(
mixed
$article, [bool
$implode = true])
|
|
Get the headers of an article (raw data)
Parameters:
getHeaders [line 554]
mixed getHeaders(
mixed
$article)
|
|
Get the headers of an article (deprecated)
Parameters:
getNewGroups [line 626]
void getNewGroups(
$time)
|
|
Experimental
Parameters:
getNewNews [line 650]
void getNewNews(
$time, [
$newsgroups = '*'])
|
|
Experimental
Parameters:
getOverview [line 380]
mixed getOverview(
integer
$first, integer
$last)
|
|
Fetch message header from message number $first to $last The format of the returned array is: $messages[message_id][header_name]
Parameters:
getOverviewFmt [line 415]
Returns a list of avaible headers which are send from newsserver to client for every news message
getOverviewFormat [line 400]
mixed getOverviewFormat(
)
|
|
Returns a list of avaible headers which are send from newsserver to client for every news message
getReferencesOverview [line 435]
mixed getReferencesOverview(
integer
$first, integer
$last)
|
|
Fetch a list of each message's reference header.
Parameters:
group [line 815]
isConnected [line 287]
last [line 749]
Maximum article number in current group
max [line 763]
min [line 796]
post [line 466]
mixed post(
string
$subject, string
$newsgroup, string
$from, string
$body, [optional
$aditional = ''])
|
|
Post an article to a number of newsgroups. (Among the aditional headers you might think of adding could be: "NNTP-Posting-Host: <ip-of-author>", which should contain the IP-adress of the author of the post, so the message can be traced back to him. Or "Organization: <org>" which contain the name of the organization the post originates from)
Parameters:
prepareConnection [line 215]
mixed prepareConnection(
string
$host, [optional
$port = 119], string
$newsgroup, [optional
$user = null], [optional
$pass = null], [optional
$authmode = NET_NNTP_AUTHORIGINAL])
|
|
Connect to the newsserver, and issue a GROUP command Once connection is prepared, we can only fetch articles from one group at a time, to fetch from another group, a new connection has to be made. This is to avoid the GROUP command for every article, as it is very ressource intensive on the newsserver especially when used for groups with many articles.
Parameters:
quit [line 186]
Close connection to the newsserver
responseCode [line 880]
integer responseCode(
string
$response)
|
|
returns the response code of a newsserver command
Parameters:
selectGroup [line 307]
mixed selectGroup(
string
$newsgroup)
|
|
Selects a news group (issue a GROUP command to the server)
Parameters:
splitHeaders [line 831]
mixed splitHeaders(
mixed
$article)
|
|
Get the headers of an article from the currently open connection, and parse them into a keyed array.
Parameters:
Documentation generated on Mon, 11 Mar 2019 13:55:01 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|