cvs: peardoc /en/package/networking/net-nntp/realtime connect.xml connectauthenticated.xml constants.xml first.xml getarticleraw.xml getbodyraw.xml
getdate.xml getheaderraw.xml last.xml quit.xml selectgroup.xml
| From: | Heino H. Gehlsen | Date: | Wed, 22 Oct 2003 17:24:00 +0000 |
| Subject: | cvs: peardoc /en/package/networking/net-nntp/realtime connect.xml connectauthenticated.xml constants.xml first.xml getarticleraw.xml getbodyraw.xml getdate.xml getheaderraw.xml last.xml quit.xml selectgroup.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-1721@lists.php.net to get a copy of this message | ||
heino Wed Oct 22 13:24:00 2003 EDT
Modified files:
/peardoc/en/package/networking/net-nntp/realtime connect.xml
connectauthenticated.xml
constants.xml
first.xml
getarticleraw.xml
getbodyraw.xml
getdate.xml
getheaderraw.xml
last.xml quit.xml
selectgroup.xml
Log:
Fix IDs + many correnctions to the docs...
Index: peardoc/en/package/networking/net-nntp/realtime/connect.xml diff -u peardoc/en/package/networking/net-nntp/realtime/connect.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/connect.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/connect.xml:1.2 Mon Oct 13 04:56:31 2003 +++ peardoc/en/package/networking/net-nntp/realtime/connect.xml Wed Oct 22 13:23:59 2003 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.connect"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.connect"> <refnamediv> <refname>Net_NNTP_Realtime::connect()</refname> <refpurpose>Connects to a NNTP-server</refpurpose> @@ -11,44 +11,46 @@ </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>Net_NNTP_Realtime::connect</function></funcdef> - <paramdef>string <parameter>$host = NET_NNTP_PROTOCOL_DEFAULT_HOST</parameter></paramdef> <paramdef> - integer <parameter><optional>$port = NET_NNTP_PROTOCOL_DEFAULT_PORT</optional></parameter> + string <parameter><optional>$host = <link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-host"><constant>NET_NNTP_PROTOCOL_DEFAULT_HOST</constant></link></optional></parameter> + </paramdef> + <paramdef> + integer <parameter><optional>$port = <link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-port"><constant>NET_NNTP_PROTOCOL_DEFAULT_PORT</constant></link></optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.connect.desc"> + <refsect1 id="package.networking.net-nntp.realtime.connect.desc"> &title.desc; <para> Connect to a specific NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.connect.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> - <parameter>$host</parameter> - Hostname of the NNTP-server + <parameter>$host</parameter> - Hostname of the NNTP-server. Default=<link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-host"><constant>NET_NNTP_PROTOCOL_DEFAULT_HOST</constant></link> </para> </listitem> <listitem> <para> - <parameter>$port</parameter> - Port, where the NNTP-server listens + <parameter>$port</parameter> - Port, where the NNTP-server listens. Default=<link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-port"><constant>NET_NNTP_PROTOCOL_DEFAULT_PORT</constant></link> </para> </listitem> </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.return"> + <refsect1 id="package.networking.net-nntp.realtime.connect.return"> &title.returns; <para> <parameter>boolean</parameter> - &return.success-pearerror; </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.throws"> + <refsect1 id="package.networking.net-nntp.realtime.connect.throws"> &title.throws; <para> <table> @@ -74,19 +76,19 @@ The connection couldn't be established because <itemizedlist> <listitem> - <simpara>wrong server name or adress</simpara> + <simpara>wrong hostname/ip-address or port</simpara> </listitem> <listitem> - <simpara>the host itself isn't link to a network</simpara> + <simpara>the host itself isn't linked to a network</simpara> </listitem> <listitem> - <simpara>a firewall doesn't allow an access</simpara> + <simpara>a firewall doesn't allow access</simpara> </listitem> </itemizedlist> </entry> <entry> Check for server name, the connection to the net and possible - firewalls on client or server side + firewalls on client or server side. </entry> </row> </tbody> @@ -94,20 +96,20 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.note"> + <refsect1 id="package.networking.net-nntp.realtime.connect.note"> &title.note; ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.see"> + <refsect1 id="package.networking.net-nntp.realtime.connect.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.quit"> + <link linkend="package.networking.net-nntp.realtime.quit"> <function>Net_NNTP::quit</function></link>, <link linkend="package.networking.net-nntp.ancient.prepareconnection"> <function>Net_NNTP::pepareConnection</function></link> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.example"> + <refsect1 id="package.networking.net-nntp.realtime.connect.example"> &title.example; <example> <title>Using <function>connect</function></title> @@ -115,12 +117,12 @@ <![CDATA[ require_once 'Net/NNTP/Realtime.php'; -$nntp = new Net_NNTP_Realtime; +$nntp = new Net_NNTP_Realtime(); $ret = $nntp->connect('news.php.net'); if( PEAR::isError($ret)) { - // handle error + // handle error } else { - // success + // success } ]]> </programlisting> Index: peardoc/en/package/networking/net-nntp/realtime/connectauthenticated.xml diff -u peardoc/en/package/networking/net-nntp/realtime/connectauthenticated.xml:1.1 peardoc/en/package/networking/net-nntp/realtime/connectauthenticated.xml:1.2 --- peardoc/en/package/networking/net-nntp/realtime/connectauthenticated.xml:1.1 Sat Oct 11 14:36:14 2003 +++ peardoc/en/package/networking/net-nntp/realtime/connectauthenticated.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.1 $ --> -<refentry id="package.networking.net-nntp-realtime.connectauthenticated"> +<!-- $Revision: 1.2 $ --> +<refentry id="package.networking.net-nntp.realtime.connectauthenticated"> <refnamediv> <refname>Net_NNTP_Realtime::connectAuthenticated()</refname> - <refpurpose>Connects and authenticates to a newsserver</refpurpose> + <refpurpose>Connect and authenticate to a NNTP-server</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -17,25 +17,25 @@ <paramdef> integer <parameter><optional>$pass = &null;</optional></parameter> </paramdef> - <paramdef>string <parameter>$host = NET_NNTP_PROTOCOL_DEFAULT_HOST</parameter></paramdef> <paramdef> - integer <parameter><optional>$port = NET_NNTP_PROTOCOL_DEFAULT_PORT</optional></parameter> + string <parameter><optional>$host = <link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-host"><constant>NET_NNTP_PROTOCOL_DEFAULT_HOST</constant></link></optional></parameter> </paramdef> <paramdef> - integer <parameter> - <optional>$authmode = NET_NNTP_AUTHORIGINAL</optional> - </parameter> + integer <parameter><optional>$port = <link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-port"><constant>NET_NNTP_PROTOCOL_DEFAULT_PORT</constant></link></optional></parameter> + </paramdef> + <paramdef> + integer <parameter><optional>$authmode = <link linkend="package.networking.net-nntp.realtime.constants.net-nntp-authoriginal"><constant>NET_NNTP_AUTHORIGINAL</constant></link></optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.desc"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.desc"> &title.desc; <para> - Connect and authenticate to a specific newsserver + Connect and authenticate to a specific NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.parameter"> &title.param; <para> <itemizedlist> @@ -51,34 +51,30 @@ </listitem> <listitem> <para> - <parameter>$host</parameter> - Hostname of the NNTP-server + <parameter>$host</parameter> - Hostname of the NNTP-server. Default=<link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-host"><constant>NET_NNTP_PROTOCOL_DEFAULT_HOST</constant></link> </para> </listitem> <listitem> <para> - <parameter>$port</parameter> - Port, where the newsserver listens + <parameter>$port</parameter> - Port, where the NNTP-server listens. Default=<link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-port"><constant>NET_NNTP_PROTOCOL_DEFAULT_PORT</constant></link> </para> </listitem> <listitem> <para> - <parameter>$authmode</parameter> - Type of authentication, - at the moment only <link - linkend= - "package.networking.net-nntp-realtime.constants.net-nntp-authoriginal"> - <constant>NET_NNTP_AUTHORIGINAL</constant></link> + <parameter>$authmode</parameter> - Type of authentication. Default=<link linkend="package.networking.net-nntp.realtime.constants.net-nntp-authoriginal"><constant>NET_NNTP_AUTHORIGINAL</constant></link> </para> </listitem> </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.return"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.return"> &title.returns; <para> <parameter>boolean</parameter> - &return.success-pearerror; </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.throws"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.throws"> &title.throws; <para> <table> @@ -96,7 +92,7 @@ <row> <entry>&null;</entry> <entry> - <parameter>"Could not connect to NNTP-server $nntpserver" + <parameter>"Could not connect to NNTP-server $host" </parameter> or <parameter>"Not connected"</parameter> </entry> @@ -104,19 +100,19 @@ The connection couldn't be established because <itemizedlist> <listitem> - <simpara>wrong server name or adress</simpara> + <simpara>wrong hostname/ip-address or port</simpara> </listitem> <listitem> - <simpara>the host itself isn't link to a network</simpara> + <simpara>the host itself isn't linked to a network</simpara> </listitem> <listitem> - <simpara>a firewall doesn't allow an access</simpara> + <simpara>a firewall doesn't allow access</simpara> </listitem> </itemizedlist> </entry> <entry> Check for server name, the connection to the net and possible - firewalls on client or server side + firewalls on client or server side. </entry> </row> </tbody> @@ -124,23 +120,23 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.note"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 </para> ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.see"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.connect"> + <link linkend="package.networking.net-nntp.realtime.connect"> <function>Net_NNTP_Realtime::connect</function></link> - <link linkend="package.networking.net-nntp-realtime.quit"> + <link linkend="package.networking.net-nntp.realtime.quit"> <function>Net_NNTP_Realtime::quit</function></link>, </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.example"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.example"> &title.example; <example> <title>Using <function>connectauthenticated</function></title> @@ -148,12 +144,12 @@ <![CDATA[ require_once 'Net/NNTP/Realtime.php'; -$nntp = new Net_NNTP_Realtime; +$nntp = new Net_NNTP_Realtime(); $ret = $nntp->connectAuthenticated('news.php.net'); if( PEAR::isError($ret)) { - // handle error + // handle error } else { - // success + // success } ]]> </programlisting> Index: peardoc/en/package/networking/net-nntp/realtime/constants.xml diff -u peardoc/en/package/networking/net-nntp/realtime/constants.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/constants.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/constants.xml:1.2 Tue Oct 14 18:54:35 2003 +++ peardoc/en/package/networking/net-nntp/realtime/constants.xml Wed Oct 22 13:23:59 2003 @@ -1,34 +1,34 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.constants"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.constants"> <refnamediv> <refname>&title.constants;</refname> <refpurpose>&purpose.preconstants;</refpurpose> </refnamediv> - <refsect1 id="package.networking.net-nntp-realtime.constants.net-nntp-protocol-default-host"> + <refsect1 id="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-host"> <title><constant>NET_NNTP_PROTOCOL_DEFAULT_HOST</constant></title> <para> default NNTP hostname: localhost </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.constants.net-nntp-protocol-default-port"> + <refsect1 id="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-port"> <title><constant>NET_NNTP_PROTOCOL_DEFAULT_PORT</constant></title> <para> default NNTP port: 119 </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.constants.net-nntp-authoriginal"> + <refsect1 id="package.networking.net-nntp.realtime.constants.net-nntp-authoriginal"> <title><constant>NET_NNTP_AUTHORIGINAL</constant></title> <para> authentication provided by the NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.constants.net-nntp-authsimple"> + <refsect1 id="package.networking.net-nntp.realtime.constants.net-nntp-authsimple"> <title><constant>NET_NNTP_AUTHSIMPLE</constant></title> <para> authentication provided by the NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.constants.net-nntp-authgeneric"> + <refsect1 id="package.networking.net-nntp.realtime.constants.net-nntp-authgeneric"> <title><constant>NET_NNTP_AUTHGENERIC</constant></title> <para> authentication provided by the NNTP-server Index: peardoc/en/package/networking/net-nntp/realtime/first.xml diff -u peardoc/en/package/networking/net-nntp/realtime/first.xml:1.1 peardoc/en/package/networking/net-nntp/realtime/first.xml:1.2 --- peardoc/en/package/networking/net-nntp/realtime/first.xml:1.1 Sat Oct 11 14:36:14 2003 +++ peardoc/en/package/networking/net-nntp/realtime/first.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.1 $ --> -<refentry id="package.networking.net-nntp-realtime.first"> +<!-- $Revision: 1.2 $ --> +<refentry id="package.networking.net-nntp.realtime.first"> <refnamediv> <refname>Net_NNTP_Realtime::first()</refname> - <refpurpose>get lowest message number</refpurpose> + <refpurpose>Get the number of the first article in the current newsgroup</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -16,26 +16,26 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.first.desc"> + <refsect1 id="package.networking.net-nntp.realtime.first.desc"> &title.desc; <para> - Retrieves the lowest message number in the current selected newsgroup + Retrieves the number of the first article in the current newsgroup. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.first.return"> + <refsect1 id="package.networking.net-nntp.realtime.first.return"> &title.returns; <para> - <parameter>integer</parameter> - lowest message number + <parameter>integer</parameter> - lowest article number in newsgroup </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.first.note"> + <refsect1 id="package.networking.net-nntp.realtime.first.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 </para> ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.first.example"> + <refsect1 id="package.networking.net-nntp.realtime.first.example"> &title.example; <example> <title>Using <function>first</function></title> Index: peardoc/en/package/networking/net-nntp/realtime/getarticleraw.xml diff -u peardoc/en/package/networking/net-nntp/realtime/getarticleraw.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/getarticleraw.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/getarticleraw.xml:1.2 Mon Oct 13 04:56:31 2003 +++ peardoc/en/package/networking/net-nntp/realtime/getarticleraw.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.getarticleraw"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.getarticleraw"> <refnamediv> <refname>Net_NNTP_Realtime::getArticleRaw()</refname> - <refpurpose>fetch an article from a new server</refpurpose> + <refpurpose>Fetch an article from the NNTP-server</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -12,38 +12,43 @@ <funcprototype> <funcdef>mixed <function>Net_NNTP_Realtime::getArticleRaw</function></funcdef> <paramdef> - string <parameter>$articleId</parameter> + string <parameter>$article</parameter> + </paramdef> + <paramdef> + boolean <parameter>$implode = false</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.desc"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.desc"> &title.desc; <para> - Returns the whole article from the current selected newsgroup + Returns the whole article from the currently selected newsgroup </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> - <parameter>string $articleID</parameter> - Message-ID of the message - number to fetch + <parameter>string $article</parameter> - article number or Message-ID of the article to fetch + </para> + <para> + <parameter>boolean $implode</parameter> - Determines if the resulting array is to be imploded into a string. </para> </listitem> </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.return"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.return"> &title.returns; <para> - <parameter>string</parameter> - If message exists the message - as string or a <classname>PEAR_Error</classname>, if fail. + <parameter>array/string</parameter> - If message exists the message + or a <classname>PEAR_Error</classname>, if fail. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.throws"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.throws"> &title.throws; <para> <table> @@ -68,9 +73,6 @@ most cases caused by calling a non existing article </entry> <entry> - Check the article ID or if your are still connected to the - server (<link linkend="package.networking.net-nntp.ancient.isconnected"> - <function>Net_NNTP_Realtime::isConnected</function></link>) </entry> </row> </tbody> @@ -78,25 +80,28 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.note"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 </para> ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.see"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.getheaderraw"> + <link linkend="package.networking.net-nntp.realtime.getarticle"> + <function>Net_NNTP_Realtime::getArticle</function> + </link>, + <link linkend="package.networking.net-nntp.realtime.getheaderraw"> <function>Net_NNTP_Realtime::getHeadersRaw</function> </link>, - <link linkend="package.networking.net-nntp-realtime.getbodyraw"> + <link linkend="package.networking.net-nntp.realtime.getbodyraw"> <function>Net_NNTP_Realtime::getBodyRaw</function> - </link>, + </link> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.example"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.example"> &title.example; <example> <title>Using <function>getArticleRaw</function></title> @@ -105,9 +110,9 @@ ... $article = $nntp->getArticleRaw($msg_id); if( PEAR::isError($article)) { - // handle error + // handle error } else { - // success + // success } ]]> Index: peardoc/en/package/networking/net-nntp/realtime/getbodyraw.xml diff -u peardoc/en/package/networking/net-nntp/realtime/getbodyraw.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/getbodyraw.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/getbodyraw.xml:1.2 Mon Oct 13 04:56:31 2003 +++ peardoc/en/package/networking/net-nntp/realtime/getbodyraw.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.getbodyraw"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.getbodyraw"> <refnamediv> <refname>Net_NNTP_Realtime::getBodyRaw()</refname> - <refpurpose>fetch the body of an article</refpurpose> + <refpurpose>Fetch the body of an article from the NNTP-server</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -10,39 +10,45 @@ require_once 'Net/NNTP/Realtime.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>string <function>Net_NNTP_Realtime::getBodyRaw</function></funcdef> + <funcdef>mixed <function>Net_NNTP_Realtime::getBodyRaw</function></funcdef> <paramdef> - string <parameter>$articleId</parameter> + string <parameter>$article</parameter> </paramdef> + <paramdef> + boolean <parameter>$implode = false</parameter> + </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.desc"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.desc"> &title.desc; <para> - Returns the whole body of an article in the current selected newsgroup - from the webserver + Returns the whole body of an article from the currently selected newsgroup </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> - string <parameter>$articleId</parameter> - Message-ID or Message number </para> + <parameter>string $article</parameter> - article number or Message-ID of the article to fetch + </para> + <para> + <parameter>boolean $implode</parameter> - Determines if the resulting array is to be imploded into a string. + </para> </listitem> </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.return"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.return"> &title.returns; <para> - <parameter>string</parameter> - If message exists the body as - string or a <classname>PEAR_Error</classname>, if fail. + <parameter>string/array</parameter> - If message exists the body + or a <classname>PEAR_Error</classname>, if fail. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.throws"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.throws"> &title.throws; <para> <table> @@ -67,9 +73,6 @@ most cases caused by calling a non existing article </entry> <entry> - Check the article ID or if your are still connected to the - server (<link linkend="package.networking.net-nntp.ancient.isconnected"> - <function>Net_NNTP_Realtime::isConnected</function></link>) </entry> </row> </tbody> @@ -77,7 +80,7 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.note"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 @@ -90,24 +93,21 @@ </para> </note> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.see"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.getheaderraw"> + <link linkend="package.networking.net-nntp.realtime.getbody"> + <function>Net_NNTP_Realtime::getBody</function> + </link>, + <link linkend="package.networking.net-nntp.realtime.getheaderraw"> <function>Net_NNTP_Realtime::getHeaderRaw</function> </link>, - <link linkend="package.networking.net-nntp.ancient.splitheaders"> - <function>Net_NNTP_Realtime::splitHeaders</function> - </link>, - <link linkend="package.networking.net-nntp-realtime.getarticleraw"> - <function>Net_NNTP_Realtime::getArticleRaw</function> - </link>, - <link linkend="package.networking.net-nntp.ancient.getoverview"> - <function>Net_NNTP_Realtime::getOverview</function> - </link> + <link linkend="package.networking.net-nntp.realtime.getarticleraw"> + <function>Net_NNTP_Realtime::getArticleRaw</function> + </link> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.example"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.example"> &title.example; <example> <title>Using <function>getBodyRaw</function></title> @@ -117,10 +117,10 @@ $body = $nntp->getBodyRaw($msgId); if( PEAR::isError($body)) { - // handle error + // handle error } else { - // success - print body - echo $body; + // success - print body + echo $body; } ]]> Index: peardoc/en/package/networking/net-nntp/realtime/getdate.xml diff -u peardoc/en/package/networking/net-nntp/realtime/getdate.xml:1.1 peardoc/en/package/networking/net-nntp/realtime/getdate.xml:1.2 --- peardoc/en/package/networking/net-nntp/realtime/getdate.xml:1.1 Sat Oct 11 14:36:14 2003 +++ peardoc/en/package/networking/net-nntp/realtime/getdate.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.1 $ --> -<refentry id="package.networking.net-nntp-realtime.getdate"> +<!-- $Revision: 1.2 $ --> +<refentry id="package.networking.net-nntp.realtime.getdate"> <refnamediv> <refname>Net_NNTP_Realtime::getDate()</refname> - <refpurpose>get date from news server</refpurpose> + <refpurpose>Get date from NNTP-server</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -10,42 +10,84 @@ require_once 'Net/NNTP/Realtime.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>array <function>Net_NNTP_Realtime::getDate</function></funcdef> - <paramdef></paramdef> + <funcdef>mixed <function>Net_NNTP_Realtime::getDate</function></funcdef> + <paramdef> + integer <parameter><optional>$format = 1</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.getDate.desc"> + <refsect1 id="package.networking.net-nntp.realtime.getDate.desc"> &title.desc; <para> - Retrieves the date from the news server + Retrieves the date from the NNTP-server. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getdate.return"> - &title.returns; + <refsect1 id="package.networking.net-nntp.realtime.getDate.parameter"> + &title.param; <para> - <parameter>array</parameter> - a hash with the date - <itemizedlist> - <listitem> - <para><parameter>$date['y']</parameter> Year</para> - </listitem> - <listitem> - <para><parameter>$date['m']</parameter> Month</para> - </listitem> + <itemizedlist> <listitem> - <para><parameter>$date['d']</parameter> Day</para> + <para> + <parameter>$format</parameter> - Tetermines which format to return. + </para> </listitem> </itemizedlist> </para> + </refsect1> + <refsect1 id="package.networking.net-nntp.realtime.getdate.return"> + &title.returns; + <para> + <table> + <title></title> + <tgroup cols="2"> + <thead> + <row> + <entry>$format</entry> + <entry>returns</entry> + </row> + </thead> + <tbody> + <row> + <entry> + 0 + </entry> + <entry> + <parameter>timestamp</parameter> + </entry> + </row> + <row> + <entry> + 1 + </entry> + <entry> + <parameter>array</parameter> - a hash with the date + <itemizedlist> + <listitem> + <para><parameter>$date['y']</parameter> Year</para> + </listitem> + <listitem> + <para><parameter>$date['m']</parameter> Month</para> + </listitem> + <listitem> + <para><parameter>$date['d']</parameter> Day</para> + </listitem> + </itemizedlist> + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getdate.note"> + <refsect1 id="package.networking.net-nntp.realtime.getdate.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 </para> ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getdate.example"> + <refsect1 id="package.networking.net-nntp.realtime.getdate.example"> &title.example; <example> <title>Using <function>getDate</function></title> Index: peardoc/en/package/networking/net-nntp/realtime/getheaderraw.xml diff -u peardoc/en/package/networking/net-nntp/realtime/getheaderraw.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/getheaderraw.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/getheaderraw.xml:1.2 Mon Oct 13 04:56:31 2003 +++ peardoc/en/package/networking/net-nntp/realtime/getheaderraw.xml Wed Oct 22 13:23:59 2003 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.getheaderraw"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.getheaderraw"> <refnamediv> <refname>Net_NNTP_Realtime::getHeaderRaw()</refname> <refpurpose>fetch message header</refpurpose> @@ -12,37 +12,43 @@ <funcprototype> <funcdef>string <function>Net_NNTP_Realtime::getHeaderRaw</function></funcdef> <paramdef> - string <parameter>$articleId</parameter> - </paramdef> + string <parameter>$article</parameter> + </paramdef> + <paramdef> + boolean <parameter>$implode = false</parameter> + </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.desc"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.desc"> &title.desc; <para> - Returns all avaible header lines of a specified message in the - current selected newsgroup + Returns the whole header of an article in the currently selected newsgroup </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> - string <parameter>$articleId</parameter> - Message-ID or Message number </para> + <parameter>string $article</parameter> - article number or Message-ID of the article to fetch + </para> + <para> + <parameter>boolean $implode</parameter> - Determines if the resulting array is to be imploded into a string. + </para> </listitem> </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.return"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.return"> &title.returns; <para> - <parameter>string</parameter> - If message exists the header - as string or a <classname>PEAR_Error</classname>, if fail. + <parameter>array/string</parameter> - If message exists the header + or a <classname>PEAR_Error</classname>, if fail. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.throws"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.throws"> &title.throws; <para> <table> @@ -67,9 +73,6 @@ most cases caused by calling a non existing article </entry> <entry> - Check the article ID or if your are still connected to the - server (<link linkend="package.networking.net-nntp.ancient.isconnected"> - <function>Net_NNTP_Realtime::isConnected</function></link>) </entry> </row> </tbody> @@ -77,28 +80,28 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.note"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 </para> ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.see"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.see"> &title.see; <para> - <link linkend="package.networking.net-nntp.ancient.splitheaders"> - <function>Net_NNTP_Realtime::splitHeaders</function> - </link>, - <link linkend="package.networking.net-nntp-realtime.getbodyraw"> - <function>Net_NNTP_Realtime::getBodyRaw</function> - </link>, - <link linkend="package.networking.net-nntp.ancient.getoverview"> - <function>Net_NNTP_Realtime::getOverview</function> - </link> + <link linkend="package.networking.net-nntp.realtime.getheader"> + <function>Net_NNTP_Realtime::getHeader</function> + </link>, + <link linkend="package.networking.net-nntp.realtime.getbodyraw"> + <function>Net_NNTP_Realtime::getBodyRaw</function> + </link>, + <link linkend="package.networking.net-nntp.ancient.getoverview"> + <function>Net_NNTP_Realtime::getOverview</function> + </link> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.example"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.example"> &title.example; <example> <title>Using <function>getHeaderRaw</function></title> @@ -108,10 +111,10 @@ $headers = $nntp->getHeaderRaw($msgId); if( PEAR::isError($headers)) { - // handle error + // handle error } else { - // success - split the string into a array - $headersArray = explode( "\n", $headers); + // success - split the string into a array + $headersArray = explode( "\n", $headers); } ]]> </programlisting> Index: peardoc/en/package/networking/net-nntp/realtime/last.xml diff -u peardoc/en/package/networking/net-nntp/realtime/last.xml:1.1 peardoc/en/package/networking/net-nntp/realtime/last.xml:1.2 --- peardoc/en/package/networking/net-nntp/realtime/last.xml:1.1 Sat Oct 11 14:36:14 2003 +++ peardoc/en/package/networking/net-nntp/realtime/last.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.1 $ --> -<refentry id="package.networking.net-nntp.realtime.realtime.last"> +<!-- $Revision: 1.2 $ --> +<refentry id="package.networking.net-nntp.realtime.last"> <refnamediv> <refname>Net_NNTP_Realtime::last()</refname> - <refpurpose>get highest message number</refpurpose> + <refpurpose>Get the number of the last article in the current newsgroup</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -16,16 +16,16 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp.realtime.realtime.last.desc"> + <refsect1 id="package.networking.net-nntp.realtime.last.desc"> &title.desc; <para> - Retrieves the highest message number in the current selected newsgroup + Retrieves the number of the last article in the current newsgroup. </para> </refsect1> <refsect1 id="package.networking.net-nntp.realtime.last.return"> &title.returns; <para> - <parameter>integer</parameter> - highest message number + <parameter>integer</parameter> - highest article number in newsgroup </para> </refsect1> <refsect1 id="package.networking.net-nntp.realtime.last.note"> Index: peardoc/en/package/networking/net-nntp/realtime/quit.xml diff -u peardoc/en/package/networking/net-nntp/realtime/quit.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/quit.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/quit.xml:1.2 Tue Oct 21 04:21:44 2003 +++ peardoc/en/package/networking/net-nntp/realtime/quit.xml Wed Oct 22 13:23:59 2003 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.quit"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.quit"> <refnamediv> <refname>Net_NNTP_Realtime::quit()</refname> <refpurpose>close the connection to the NNTP-server</refpurpose> @@ -15,20 +15,20 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.quit.desc"> + <refsect1 id="package.networking.net-nntp.realtime.quit.desc"> &title.desc; <para> close the connection to the NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.quit.note"> + <refsect1 id="package.networking.net-nntp.realtime.quit.note"> &title.note; ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.quit.see"> + <refsect1 id="package.networking.net-nntp.realtime.quit.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.connect"> + <link linkend="package.networking.net-nntp.realtime.connect"> <function>Net_NNTP_Realtime::connect</function></link>, </para> </refsect1> Index: peardoc/en/package/networking/net-nntp/realtime/selectgroup.xml diff -u peardoc/en/package/networking/net-nntp/realtime/selectgroup.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/selectgroup.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/selectgroup.xml:1.2 Mon Oct 13 04:56:31 2003 +++ peardoc/en/package/networking/net-nntp/realtime/selectgroup.xml Wed Oct 22 13:23:59 2003 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.selectgroup"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.selectgroup"> <refnamediv> <refname>Net_NNTP_Realtime::selectGroup()</refname> <refpurpose>select a newsgroup</refpurpose> @@ -17,13 +17,13 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.desc"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.desc"> &title.desc; <para> - Selects a specific newsgroup on the news server + Selects a specific newsgroup on the NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.parameter"> &title.param; <para> <itemizedlist> @@ -36,17 +36,44 @@ </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.return"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.return"> &title.returns; <para> - <parameter>array</parameter> - If the newsgroup exists an array - containing the message number of the first - (array key: <parameter>['first']</parameter>) - and the last message id (array key: <parameter>['last']</parameter>) - or a <classname>PEAR_Error</classname>, if fail. + <parameter>array</parameter> - If the newsgroup exists, an array + is returned: + <table> + <title></title> + <tgroup cols="2"> + <thead> + <row> + <entry>Key</entry> + <entry>Value</entry> + </row> + </thead> + <tbody> + <row> + <entry>'count'</entry> + <entry>Number of articles in the group</entry> + </row> + <row> + <entry>'first'</entry> + <entry>The first article number in the group</entry> + </row> + <row> + <entry>'last'</entry> + <entry>The last article number in the group</entry> + </row> + <row> + <entry>'group'</entry> + <entry>Groupname</entry> + </row> + </tbody> + </tgroup> + </table> + otherwise a <classname>PEAR_Error</classname> is returned on fail. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.throws"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.throws"> &title.throws; <para> <table> @@ -71,9 +98,6 @@ most cases caused by calling a non existing article </entry> <entry> - Check the article ID or if your are still connected to the - server (<link linkend="package.networking.net-nntp.ancient.isconnected"> - <function>Net_NNTP_Realtime::isConnected</function></link>) </entry> </row> </tbody> @@ -81,14 +105,14 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.note"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.note"> &title.note; ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.see"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.connect"> + <link linkend="package.networking.net-nntp.realtime.connect"> <function>Net_NNTP_Realtime::connect</function> </link>, <link linkend="package.networking.net-nntp.ancient.getgroups"> @@ -96,7 +120,7 @@ </link> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.example"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.example"> &title.example; <example> <title>Using <function>selectGroup</function></title> @@ -105,12 +129,12 @@ ... $ret = $nntp->connect('news.php.net'); if( PEAR::isError($ret)) { - // handle error + // handle error } else { - // success - $data = $nntp->selectGroup('php.pear.dev'); - // Print the count of articles - echo "Count: ", $data['last'] - $data['first']; + // success + $data = $nntp->selectGroup('php.pear.dev'); + // Print the count of articles + echo "Count: ", $data['last'] - $data['first']; } ]]> </programlisting>
Index: peardoc/en/package/networking/net-nntp/realtime/connect.xml diff -u peardoc/en/package/networking/net-nntp/realtime/connect.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/connect.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/connect.xml:1.2 Mon Oct 13 04:56:31 2003 +++ peardoc/en/package/networking/net-nntp/realtime/connect.xml Wed Oct 22 13:23:59 2003 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.connect"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.connect"> <refnamediv> <refname>Net_NNTP_Realtime::connect()</refname> <refpurpose>Connects to a NNTP-server</refpurpose> @@ -11,44 +11,46 @@ </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>Net_NNTP_Realtime::connect</function></funcdef> - <paramdef>string <parameter>$host = NET_NNTP_PROTOCOL_DEFAULT_HOST</parameter></paramdef> <paramdef> - integer <parameter><optional>$port = NET_NNTP_PROTOCOL_DEFAULT_PORT</optional></parameter> + string <parameter><optional>$host = <link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-host"><constant>NET_NNTP_PROTOCOL_DEFAULT_HOST</constant></link></optional></parameter> + </paramdef> + <paramdef> + integer <parameter><optional>$port = <link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-port"><constant>NET_NNTP_PROTOCOL_DEFAULT_PORT</constant></link></optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.connect.desc"> + <refsect1 id="package.networking.net-nntp.realtime.connect.desc"> &title.desc; <para> Connect to a specific NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.connect.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> - <parameter>$host</parameter> - Hostname of the NNTP-server + <parameter>$host</parameter> - Hostname of the NNTP-server. Default=<link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-host"><constant>NET_NNTP_PROTOCOL_DEFAULT_HOST</constant></link> </para> </listitem> <listitem> <para> - <parameter>$port</parameter> - Port, where the NNTP-server listens + <parameter>$port</parameter> - Port, where the NNTP-server listens. Default=<link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-port"><constant>NET_NNTP_PROTOCOL_DEFAULT_PORT</constant></link> </para> </listitem> </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.return"> + <refsect1 id="package.networking.net-nntp.realtime.connect.return"> &title.returns; <para> <parameter>boolean</parameter> - &return.success-pearerror; </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.throws"> + <refsect1 id="package.networking.net-nntp.realtime.connect.throws"> &title.throws; <para> <table> @@ -74,19 +76,19 @@ The connection couldn't be established because <itemizedlist> <listitem> - <simpara>wrong server name or adress</simpara> + <simpara>wrong hostname/ip-address or port</simpara> </listitem> <listitem> - <simpara>the host itself isn't link to a network</simpara> + <simpara>the host itself isn't linked to a network</simpara> </listitem> <listitem> - <simpara>a firewall doesn't allow an access</simpara> + <simpara>a firewall doesn't allow access</simpara> </listitem> </itemizedlist> </entry> <entry> Check for server name, the connection to the net and possible - firewalls on client or server side + firewalls on client or server side. </entry> </row> </tbody> @@ -94,20 +96,20 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.note"> + <refsect1 id="package.networking.net-nntp.realtime.connect.note"> &title.note; ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.see"> + <refsect1 id="package.networking.net-nntp.realtime.connect.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.quit"> + <link linkend="package.networking.net-nntp.realtime.quit"> <function>Net_NNTP::quit</function></link>, <link linkend="package.networking.net-nntp.ancient.prepareconnection"> <function>Net_NNTP::pepareConnection</function></link> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connect.example"> + <refsect1 id="package.networking.net-nntp.realtime.connect.example"> &title.example; <example> <title>Using <function>connect</function></title> @@ -115,12 +117,12 @@ <![CDATA[ require_once 'Net/NNTP/Realtime.php'; -$nntp = new Net_NNTP_Realtime; +$nntp = new Net_NNTP_Realtime(); $ret = $nntp->connect('news.php.net'); if( PEAR::isError($ret)) { - // handle error + // handle error } else { - // success + // success } ]]> </programlisting> Index: peardoc/en/package/networking/net-nntp/realtime/connectauthenticated.xml diff -u peardoc/en/package/networking/net-nntp/realtime/connectauthenticated.xml:1.1 peardoc/en/package/networking/net-nntp/realtime/connectauthenticated.xml:1.2 --- peardoc/en/package/networking/net-nntp/realtime/connectauthenticated.xml:1.1 Sat Oct 11 14:36:14 2003 +++ peardoc/en/package/networking/net-nntp/realtime/connectauthenticated.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.1 $ --> -<refentry id="package.networking.net-nntp-realtime.connectauthenticated"> +<!-- $Revision: 1.2 $ --> +<refentry id="package.networking.net-nntp.realtime.connectauthenticated"> <refnamediv> <refname>Net_NNTP_Realtime::connectAuthenticated()</refname> - <refpurpose>Connects and authenticates to a newsserver</refpurpose> + <refpurpose>Connect and authenticate to a NNTP-server</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -17,25 +17,25 @@ <paramdef> integer <parameter><optional>$pass = &null;</optional></parameter> </paramdef> - <paramdef>string <parameter>$host = NET_NNTP_PROTOCOL_DEFAULT_HOST</parameter></paramdef> <paramdef> - integer <parameter><optional>$port = NET_NNTP_PROTOCOL_DEFAULT_PORT</optional></parameter> + string <parameter><optional>$host = <link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-host"><constant>NET_NNTP_PROTOCOL_DEFAULT_HOST</constant></link></optional></parameter> </paramdef> <paramdef> - integer <parameter> - <optional>$authmode = NET_NNTP_AUTHORIGINAL</optional> - </parameter> + integer <parameter><optional>$port = <link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-port"><constant>NET_NNTP_PROTOCOL_DEFAULT_PORT</constant></link></optional></parameter> + </paramdef> + <paramdef> + integer <parameter><optional>$authmode = <link linkend="package.networking.net-nntp.realtime.constants.net-nntp-authoriginal"><constant>NET_NNTP_AUTHORIGINAL</constant></link></optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.desc"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.desc"> &title.desc; <para> - Connect and authenticate to a specific newsserver + Connect and authenticate to a specific NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.parameter"> &title.param; <para> <itemizedlist> @@ -51,34 +51,30 @@ </listitem> <listitem> <para> - <parameter>$host</parameter> - Hostname of the NNTP-server + <parameter>$host</parameter> - Hostname of the NNTP-server. Default=<link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-host"><constant>NET_NNTP_PROTOCOL_DEFAULT_HOST</constant></link> </para> </listitem> <listitem> <para> - <parameter>$port</parameter> - Port, where the newsserver listens + <parameter>$port</parameter> - Port, where the NNTP-server listens. Default=<link linkend="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-port"><constant>NET_NNTP_PROTOCOL_DEFAULT_PORT</constant></link> </para> </listitem> <listitem> <para> - <parameter>$authmode</parameter> - Type of authentication, - at the moment only <link - linkend= - "package.networking.net-nntp-realtime.constants.net-nntp-authoriginal"> - <constant>NET_NNTP_AUTHORIGINAL</constant></link> + <parameter>$authmode</parameter> - Type of authentication. Default=<link linkend="package.networking.net-nntp.realtime.constants.net-nntp-authoriginal"><constant>NET_NNTP_AUTHORIGINAL</constant></link> </para> </listitem> </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.return"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.return"> &title.returns; <para> <parameter>boolean</parameter> - &return.success-pearerror; </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.throws"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.throws"> &title.throws; <para> <table> @@ -96,7 +92,7 @@ <row> <entry>&null;</entry> <entry> - <parameter>"Could not connect to NNTP-server $nntpserver" + <parameter>"Could not connect to NNTP-server $host" </parameter> or <parameter>"Not connected"</parameter> </entry> @@ -104,19 +100,19 @@ The connection couldn't be established because <itemizedlist> <listitem> - <simpara>wrong server name or adress</simpara> + <simpara>wrong hostname/ip-address or port</simpara> </listitem> <listitem> - <simpara>the host itself isn't link to a network</simpara> + <simpara>the host itself isn't linked to a network</simpara> </listitem> <listitem> - <simpara>a firewall doesn't allow an access</simpara> + <simpara>a firewall doesn't allow access</simpara> </listitem> </itemizedlist> </entry> <entry> Check for server name, the connection to the net and possible - firewalls on client or server side + firewalls on client or server side. </entry> </row> </tbody> @@ -124,23 +120,23 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.note"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 </para> ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.see"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.connect"> + <link linkend="package.networking.net-nntp.realtime.connect"> <function>Net_NNTP_Realtime::connect</function></link> - <link linkend="package.networking.net-nntp-realtime.quit"> + <link linkend="package.networking.net-nntp.realtime.quit"> <function>Net_NNTP_Realtime::quit</function></link>, </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.connectauthenticated.example"> + <refsect1 id="package.networking.net-nntp.realtime.connectauthenticated.example"> &title.example; <example> <title>Using <function>connectauthenticated</function></title> @@ -148,12 +144,12 @@ <![CDATA[ require_once 'Net/NNTP/Realtime.php'; -$nntp = new Net_NNTP_Realtime; +$nntp = new Net_NNTP_Realtime(); $ret = $nntp->connectAuthenticated('news.php.net'); if( PEAR::isError($ret)) { - // handle error + // handle error } else { - // success + // success } ]]> </programlisting> Index: peardoc/en/package/networking/net-nntp/realtime/constants.xml diff -u peardoc/en/package/networking/net-nntp/realtime/constants.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/constants.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/constants.xml:1.2 Tue Oct 14 18:54:35 2003 +++ peardoc/en/package/networking/net-nntp/realtime/constants.xml Wed Oct 22 13:23:59 2003 @@ -1,34 +1,34 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.constants"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.constants"> <refnamediv> <refname>&title.constants;</refname> <refpurpose>&purpose.preconstants;</refpurpose> </refnamediv> - <refsect1 id="package.networking.net-nntp-realtime.constants.net-nntp-protocol-default-host"> + <refsect1 id="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-host"> <title><constant>NET_NNTP_PROTOCOL_DEFAULT_HOST</constant></title> <para> default NNTP hostname: localhost </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.constants.net-nntp-protocol-default-port"> + <refsect1 id="package.networking.net-nntp.realtime.constants.net-nntp-protocol-default-port"> <title><constant>NET_NNTP_PROTOCOL_DEFAULT_PORT</constant></title> <para> default NNTP port: 119 </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.constants.net-nntp-authoriginal"> + <refsect1 id="package.networking.net-nntp.realtime.constants.net-nntp-authoriginal"> <title><constant>NET_NNTP_AUTHORIGINAL</constant></title> <para> authentication provided by the NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.constants.net-nntp-authsimple"> + <refsect1 id="package.networking.net-nntp.realtime.constants.net-nntp-authsimple"> <title><constant>NET_NNTP_AUTHSIMPLE</constant></title> <para> authentication provided by the NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.constants.net-nntp-authgeneric"> + <refsect1 id="package.networking.net-nntp.realtime.constants.net-nntp-authgeneric"> <title><constant>NET_NNTP_AUTHGENERIC</constant></title> <para> authentication provided by the NNTP-server Index: peardoc/en/package/networking/net-nntp/realtime/first.xml diff -u peardoc/en/package/networking/net-nntp/realtime/first.xml:1.1 peardoc/en/package/networking/net-nntp/realtime/first.xml:1.2 --- peardoc/en/package/networking/net-nntp/realtime/first.xml:1.1 Sat Oct 11 14:36:14 2003 +++ peardoc/en/package/networking/net-nntp/realtime/first.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.1 $ --> -<refentry id="package.networking.net-nntp-realtime.first"> +<!-- $Revision: 1.2 $ --> +<refentry id="package.networking.net-nntp.realtime.first"> <refnamediv> <refname>Net_NNTP_Realtime::first()</refname> - <refpurpose>get lowest message number</refpurpose> + <refpurpose>Get the number of the first article in the current newsgroup</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -16,26 +16,26 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.first.desc"> + <refsect1 id="package.networking.net-nntp.realtime.first.desc"> &title.desc; <para> - Retrieves the lowest message number in the current selected newsgroup + Retrieves the number of the first article in the current newsgroup. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.first.return"> + <refsect1 id="package.networking.net-nntp.realtime.first.return"> &title.returns; <para> - <parameter>integer</parameter> - lowest message number + <parameter>integer</parameter> - lowest article number in newsgroup </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.first.note"> + <refsect1 id="package.networking.net-nntp.realtime.first.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 </para> ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.first.example"> + <refsect1 id="package.networking.net-nntp.realtime.first.example"> &title.example; <example> <title>Using <function>first</function></title> Index: peardoc/en/package/networking/net-nntp/realtime/getarticleraw.xml diff -u peardoc/en/package/networking/net-nntp/realtime/getarticleraw.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/getarticleraw.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/getarticleraw.xml:1.2 Mon Oct 13 04:56:31 2003 +++ peardoc/en/package/networking/net-nntp/realtime/getarticleraw.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.getarticleraw"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.getarticleraw"> <refnamediv> <refname>Net_NNTP_Realtime::getArticleRaw()</refname> - <refpurpose>fetch an article from a new server</refpurpose> + <refpurpose>Fetch an article from the NNTP-server</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -12,38 +12,43 @@ <funcprototype> <funcdef>mixed <function>Net_NNTP_Realtime::getArticleRaw</function></funcdef> <paramdef> - string <parameter>$articleId</parameter> + string <parameter>$article</parameter> + </paramdef> + <paramdef> + boolean <parameter>$implode = false</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.desc"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.desc"> &title.desc; <para> - Returns the whole article from the current selected newsgroup + Returns the whole article from the currently selected newsgroup </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> - <parameter>string $articleID</parameter> - Message-ID of the message - number to fetch + <parameter>string $article</parameter> - article number or Message-ID of the article to fetch + </para> + <para> + <parameter>boolean $implode</parameter> - Determines if the resulting array is to be imploded into a string. </para> </listitem> </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.return"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.return"> &title.returns; <para> - <parameter>string</parameter> - If message exists the message - as string or a <classname>PEAR_Error</classname>, if fail. + <parameter>array/string</parameter> - If message exists the message + or a <classname>PEAR_Error</classname>, if fail. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.throws"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.throws"> &title.throws; <para> <table> @@ -68,9 +73,6 @@ most cases caused by calling a non existing article </entry> <entry> - Check the article ID or if your are still connected to the - server (<link linkend="package.networking.net-nntp.ancient.isconnected"> - <function>Net_NNTP_Realtime::isConnected</function></link>) </entry> </row> </tbody> @@ -78,25 +80,28 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.note"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 </para> ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.see"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.getheaderraw"> + <link linkend="package.networking.net-nntp.realtime.getarticle"> + <function>Net_NNTP_Realtime::getArticle</function> + </link>, + <link linkend="package.networking.net-nntp.realtime.getheaderraw"> <function>Net_NNTP_Realtime::getHeadersRaw</function> </link>, - <link linkend="package.networking.net-nntp-realtime.getbodyraw"> + <link linkend="package.networking.net-nntp.realtime.getbodyraw"> <function>Net_NNTP_Realtime::getBodyRaw</function> - </link>, + </link> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getarticleraw.example"> + <refsect1 id="package.networking.net-nntp.realtime.getarticleraw.example"> &title.example; <example> <title>Using <function>getArticleRaw</function></title> @@ -105,9 +110,9 @@ ... $article = $nntp->getArticleRaw($msg_id); if( PEAR::isError($article)) { - // handle error + // handle error } else { - // success + // success } ]]> Index: peardoc/en/package/networking/net-nntp/realtime/getbodyraw.xml diff -u peardoc/en/package/networking/net-nntp/realtime/getbodyraw.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/getbodyraw.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/getbodyraw.xml:1.2 Mon Oct 13 04:56:31 2003 +++ peardoc/en/package/networking/net-nntp/realtime/getbodyraw.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.getbodyraw"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.getbodyraw"> <refnamediv> <refname>Net_NNTP_Realtime::getBodyRaw()</refname> - <refpurpose>fetch the body of an article</refpurpose> + <refpurpose>Fetch the body of an article from the NNTP-server</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -10,39 +10,45 @@ require_once 'Net/NNTP/Realtime.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>string <function>Net_NNTP_Realtime::getBodyRaw</function></funcdef> + <funcdef>mixed <function>Net_NNTP_Realtime::getBodyRaw</function></funcdef> <paramdef> - string <parameter>$articleId</parameter> + string <parameter>$article</parameter> </paramdef> + <paramdef> + boolean <parameter>$implode = false</parameter> + </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.desc"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.desc"> &title.desc; <para> - Returns the whole body of an article in the current selected newsgroup - from the webserver + Returns the whole body of an article from the currently selected newsgroup </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> - string <parameter>$articleId</parameter> - Message-ID or Message number </para> + <parameter>string $article</parameter> - article number or Message-ID of the article to fetch + </para> + <para> + <parameter>boolean $implode</parameter> - Determines if the resulting array is to be imploded into a string. + </para> </listitem> </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.return"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.return"> &title.returns; <para> - <parameter>string</parameter> - If message exists the body as - string or a <classname>PEAR_Error</classname>, if fail. + <parameter>string/array</parameter> - If message exists the body + or a <classname>PEAR_Error</classname>, if fail. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.throws"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.throws"> &title.throws; <para> <table> @@ -67,9 +73,6 @@ most cases caused by calling a non existing article </entry> <entry> - Check the article ID or if your are still connected to the - server (<link linkend="package.networking.net-nntp.ancient.isconnected"> - <function>Net_NNTP_Realtime::isConnected</function></link>) </entry> </row> </tbody> @@ -77,7 +80,7 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.note"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 @@ -90,24 +93,21 @@ </para> </note> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.see"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.getheaderraw"> + <link linkend="package.networking.net-nntp.realtime.getbody"> + <function>Net_NNTP_Realtime::getBody</function> + </link>, + <link linkend="package.networking.net-nntp.realtime.getheaderraw"> <function>Net_NNTP_Realtime::getHeaderRaw</function> </link>, - <link linkend="package.networking.net-nntp.ancient.splitheaders"> - <function>Net_NNTP_Realtime::splitHeaders</function> - </link>, - <link linkend="package.networking.net-nntp-realtime.getarticleraw"> - <function>Net_NNTP_Realtime::getArticleRaw</function> - </link>, - <link linkend="package.networking.net-nntp.ancient.getoverview"> - <function>Net_NNTP_Realtime::getOverview</function> - </link> + <link linkend="package.networking.net-nntp.realtime.getarticleraw"> + <function>Net_NNTP_Realtime::getArticleRaw</function> + </link> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getbodyraw.example"> + <refsect1 id="package.networking.net-nntp.realtime.getbodyraw.example"> &title.example; <example> <title>Using <function>getBodyRaw</function></title> @@ -117,10 +117,10 @@ $body = $nntp->getBodyRaw($msgId); if( PEAR::isError($body)) { - // handle error + // handle error } else { - // success - print body - echo $body; + // success - print body + echo $body; } ]]> Index: peardoc/en/package/networking/net-nntp/realtime/getdate.xml diff -u peardoc/en/package/networking/net-nntp/realtime/getdate.xml:1.1 peardoc/en/package/networking/net-nntp/realtime/getdate.xml:1.2 --- peardoc/en/package/networking/net-nntp/realtime/getdate.xml:1.1 Sat Oct 11 14:36:14 2003 +++ peardoc/en/package/networking/net-nntp/realtime/getdate.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.1 $ --> -<refentry id="package.networking.net-nntp-realtime.getdate"> +<!-- $Revision: 1.2 $ --> +<refentry id="package.networking.net-nntp.realtime.getdate"> <refnamediv> <refname>Net_NNTP_Realtime::getDate()</refname> - <refpurpose>get date from news server</refpurpose> + <refpurpose>Get date from NNTP-server</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -10,42 +10,84 @@ require_once 'Net/NNTP/Realtime.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>array <function>Net_NNTP_Realtime::getDate</function></funcdef> - <paramdef></paramdef> + <funcdef>mixed <function>Net_NNTP_Realtime::getDate</function></funcdef> + <paramdef> + integer <parameter><optional>$format = 1</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.getDate.desc"> + <refsect1 id="package.networking.net-nntp.realtime.getDate.desc"> &title.desc; <para> - Retrieves the date from the news server + Retrieves the date from the NNTP-server. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getdate.return"> - &title.returns; + <refsect1 id="package.networking.net-nntp.realtime.getDate.parameter"> + &title.param; <para> - <parameter>array</parameter> - a hash with the date - <itemizedlist> - <listitem> - <para><parameter>$date['y']</parameter> Year</para> - </listitem> - <listitem> - <para><parameter>$date['m']</parameter> Month</para> - </listitem> + <itemizedlist> <listitem> - <para><parameter>$date['d']</parameter> Day</para> + <para> + <parameter>$format</parameter> - Tetermines which format to return. + </para> </listitem> </itemizedlist> </para> + </refsect1> + <refsect1 id="package.networking.net-nntp.realtime.getdate.return"> + &title.returns; + <para> + <table> + <title></title> + <tgroup cols="2"> + <thead> + <row> + <entry>$format</entry> + <entry>returns</entry> + </row> + </thead> + <tbody> + <row> + <entry> + 0 + </entry> + <entry> + <parameter>timestamp</parameter> + </entry> + </row> + <row> + <entry> + 1 + </entry> + <entry> + <parameter>array</parameter> - a hash with the date + <itemizedlist> + <listitem> + <para><parameter>$date['y']</parameter> Year</para> + </listitem> + <listitem> + <para><parameter>$date['m']</parameter> Month</para> + </listitem> + <listitem> + <para><parameter>$date['d']</parameter> Day</para> + </listitem> + </itemizedlist> + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getdate.note"> + <refsect1 id="package.networking.net-nntp.realtime.getdate.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 </para> ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getdate.example"> + <refsect1 id="package.networking.net-nntp.realtime.getdate.example"> &title.example; <example> <title>Using <function>getDate</function></title> Index: peardoc/en/package/networking/net-nntp/realtime/getheaderraw.xml diff -u peardoc/en/package/networking/net-nntp/realtime/getheaderraw.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/getheaderraw.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/getheaderraw.xml:1.2 Mon Oct 13 04:56:31 2003 +++ peardoc/en/package/networking/net-nntp/realtime/getheaderraw.xml Wed Oct 22 13:23:59 2003 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.getheaderraw"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.getheaderraw"> <refnamediv> <refname>Net_NNTP_Realtime::getHeaderRaw()</refname> <refpurpose>fetch message header</refpurpose> @@ -12,37 +12,43 @@ <funcprototype> <funcdef>string <function>Net_NNTP_Realtime::getHeaderRaw</function></funcdef> <paramdef> - string <parameter>$articleId</parameter> - </paramdef> + string <parameter>$article</parameter> + </paramdef> + <paramdef> + boolean <parameter>$implode = false</parameter> + </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.desc"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.desc"> &title.desc; <para> - Returns all avaible header lines of a specified message in the - current selected newsgroup + Returns the whole header of an article in the currently selected newsgroup </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> - string <parameter>$articleId</parameter> - Message-ID or Message number </para> + <parameter>string $article</parameter> - article number or Message-ID of the article to fetch + </para> + <para> + <parameter>boolean $implode</parameter> - Determines if the resulting array is to be imploded into a string. + </para> </listitem> </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.return"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.return"> &title.returns; <para> - <parameter>string</parameter> - If message exists the header - as string or a <classname>PEAR_Error</classname>, if fail. + <parameter>array/string</parameter> - If message exists the header + or a <classname>PEAR_Error</classname>, if fail. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.throws"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.throws"> &title.throws; <para> <table> @@ -67,9 +73,6 @@ most cases caused by calling a non existing article </entry> <entry> - Check the article ID or if your are still connected to the - server (<link linkend="package.networking.net-nntp.ancient.isconnected"> - <function>Net_NNTP_Realtime::isConnected</function></link>) </entry> </row> </tbody> @@ -77,28 +80,28 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.note"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.note"> &title.note; <para> <emphasis>since</emphasis> 0.3 </para> ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.see"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.see"> &title.see; <para> - <link linkend="package.networking.net-nntp.ancient.splitheaders"> - <function>Net_NNTP_Realtime::splitHeaders</function> - </link>, - <link linkend="package.networking.net-nntp-realtime.getbodyraw"> - <function>Net_NNTP_Realtime::getBodyRaw</function> - </link>, - <link linkend="package.networking.net-nntp.ancient.getoverview"> - <function>Net_NNTP_Realtime::getOverview</function> - </link> + <link linkend="package.networking.net-nntp.realtime.getheader"> + <function>Net_NNTP_Realtime::getHeader</function> + </link>, + <link linkend="package.networking.net-nntp.realtime.getbodyraw"> + <function>Net_NNTP_Realtime::getBodyRaw</function> + </link>, + <link linkend="package.networking.net-nntp.ancient.getoverview"> + <function>Net_NNTP_Realtime::getOverview</function> + </link> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.getheaderraw.example"> + <refsect1 id="package.networking.net-nntp.realtime.getheaderraw.example"> &title.example; <example> <title>Using <function>getHeaderRaw</function></title> @@ -108,10 +111,10 @@ $headers = $nntp->getHeaderRaw($msgId); if( PEAR::isError($headers)) { - // handle error + // handle error } else { - // success - split the string into a array - $headersArray = explode( "\n", $headers); + // success - split the string into a array + $headersArray = explode( "\n", $headers); } ]]> </programlisting> Index: peardoc/en/package/networking/net-nntp/realtime/last.xml diff -u peardoc/en/package/networking/net-nntp/realtime/last.xml:1.1 peardoc/en/package/networking/net-nntp/realtime/last.xml:1.2 --- peardoc/en/package/networking/net-nntp/realtime/last.xml:1.1 Sat Oct 11 14:36:14 2003 +++ peardoc/en/package/networking/net-nntp/realtime/last.xml Wed Oct 22 13:23:59 2003 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.1 $ --> -<refentry id="package.networking.net-nntp.realtime.realtime.last"> +<!-- $Revision: 1.2 $ --> +<refentry id="package.networking.net-nntp.realtime.last"> <refnamediv> <refname>Net_NNTP_Realtime::last()</refname> - <refpurpose>get highest message number</refpurpose> + <refpurpose>Get the number of the last article in the current newsgroup</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -16,16 +16,16 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp.realtime.realtime.last.desc"> + <refsect1 id="package.networking.net-nntp.realtime.last.desc"> &title.desc; <para> - Retrieves the highest message number in the current selected newsgroup + Retrieves the number of the last article in the current newsgroup. </para> </refsect1> <refsect1 id="package.networking.net-nntp.realtime.last.return"> &title.returns; <para> - <parameter>integer</parameter> - highest message number + <parameter>integer</parameter> - highest article number in newsgroup </para> </refsect1> <refsect1 id="package.networking.net-nntp.realtime.last.note"> Index: peardoc/en/package/networking/net-nntp/realtime/quit.xml diff -u peardoc/en/package/networking/net-nntp/realtime/quit.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/quit.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/quit.xml:1.2 Tue Oct 21 04:21:44 2003 +++ peardoc/en/package/networking/net-nntp/realtime/quit.xml Wed Oct 22 13:23:59 2003 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.quit"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.quit"> <refnamediv> <refname>Net_NNTP_Realtime::quit()</refname> <refpurpose>close the connection to the NNTP-server</refpurpose> @@ -15,20 +15,20 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.quit.desc"> + <refsect1 id="package.networking.net-nntp.realtime.quit.desc"> &title.desc; <para> close the connection to the NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.quit.note"> + <refsect1 id="package.networking.net-nntp.realtime.quit.note"> &title.note; ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.quit.see"> + <refsect1 id="package.networking.net-nntp.realtime.quit.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.connect"> + <link linkend="package.networking.net-nntp.realtime.connect"> <function>Net_NNTP_Realtime::connect</function></link>, </para> </refsect1> Index: peardoc/en/package/networking/net-nntp/realtime/selectgroup.xml diff -u peardoc/en/package/networking/net-nntp/realtime/selectgroup.xml:1.2 peardoc/en/package/networking/net-nntp/realtime/selectgroup.xml:1.3 --- peardoc/en/package/networking/net-nntp/realtime/selectgroup.xml:1.2 Mon Oct 13 04:56:31 2003 +++ peardoc/en/package/networking/net-nntp/realtime/selectgroup.xml Wed Oct 22 13:23:59 2003 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.networking.net-nntp-realtime.selectgroup"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.networking.net-nntp.realtime.selectgroup"> <refnamediv> <refname>Net_NNTP_Realtime::selectGroup()</refname> <refpurpose>select a newsgroup</refpurpose> @@ -17,13 +17,13 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.desc"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.desc"> &title.desc; <para> - Selects a specific newsgroup on the news server + Selects a specific newsgroup on the NNTP-server </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.parameter"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.parameter"> &title.param; <para> <itemizedlist> @@ -36,17 +36,44 @@ </itemizedlist> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.return"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.return"> &title.returns; <para> - <parameter>array</parameter> - If the newsgroup exists an array - containing the message number of the first - (array key: <parameter>['first']</parameter>) - and the last message id (array key: <parameter>['last']</parameter>) - or a <classname>PEAR_Error</classname>, if fail. + <parameter>array</parameter> - If the newsgroup exists, an array + is returned: + <table> + <title></title> + <tgroup cols="2"> + <thead> + <row> + <entry>Key</entry> + <entry>Value</entry> + </row> + </thead> + <tbody> + <row> + <entry>'count'</entry> + <entry>Number of articles in the group</entry> + </row> + <row> + <entry>'first'</entry> + <entry>The first article number in the group</entry> + </row> + <row> + <entry>'last'</entry> + <entry>The last article number in the group</entry> + </row> + <row> + <entry>'group'</entry> + <entry>Groupname</entry> + </row> + </tbody> + </tgroup> + </table> + otherwise a <classname>PEAR_Error</classname> is returned on fail. </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.throws"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.throws"> &title.throws; <para> <table> @@ -71,9 +98,6 @@ most cases caused by calling a non existing article </entry> <entry> - Check the article ID or if your are still connected to the - server (<link linkend="package.networking.net-nntp.ancient.isconnected"> - <function>Net_NNTP_Realtime::isConnected</function></link>) </entry> </row> </tbody> @@ -81,14 +105,14 @@ </table> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.note"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.note"> &title.note; ¬e.notstatic; </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.see"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.see"> &title.see; <para> - <link linkend="package.networking.net-nntp-realtime.connect"> + <link linkend="package.networking.net-nntp.realtime.connect"> <function>Net_NNTP_Realtime::connect</function> </link>, <link linkend="package.networking.net-nntp.ancient.getgroups"> @@ -96,7 +120,7 @@ </link> </para> </refsect1> - <refsect1 id="package.networking.net-nntp-realtime.selectgroup.example"> + <refsect1 id="package.networking.net-nntp.realtime.selectgroup.example"> &title.example; <example> <title>Using <function>selectGroup</function></title> @@ -105,12 +129,12 @@ ... $ret = $nntp->connect('news.php.net'); if( PEAR::isError($ret)) { - // handle error + // handle error } else { - // success - $data = $nntp->selectGroup('php.pear.dev'); - // Print the count of articles - echo "Count: ", $data['last'] - $data['first']; + // success + $data = $nntp->selectGroup('php.pear.dev'); + // Print the count of articles + echo "Count: ", $data['last'] - $data['first']; } ]]> </programlisting>