cvs: peardoc /en/core/ppm pear-config.xml pear-rest.xml /en/core/ppm/pear-config apiversion.xml deletechannel.xml getconffile.xml
getdefaultchannel.xml getregistry.xml getremote.xml getrest.xml noregistry.xml readftpconfigfile.xml setchannels.xml setinstallroot.xml
setregistry.xml validconfiguration.xml /en/core/ppm/pear-rest downloadhttp.xml getcache.xml getcacheid.xml pear-rest.xml retrievecachefirst.xml
retrievedata.xml savecache.xml uselocalcache.xml

From: Date: Tue, 31 May 2005 02:03:17 +0000
Subject: cvs: peardoc /en/core/ppm pear-config.xml pear-rest.xml /en/core/ppm/pear-config apiversion.xml deletechannel.xml getconffile.xml
getdefaultchannel.xml getregistry.xml getremote.xml getrest.xml noregistry.xml readftpconfigfile.xml setchannels.xml setinstallroot.xml
setregistry.xml validconfiguration.xml /en/core/ppm/pear-rest downloadhttp.xml getcache.xml getcacheid.xml pear-rest.xml retrievecachefirst.xml
retrievedata.xml savecache.xml uselocalcache.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6129@lists.php.net to get a copy of this message
cellog Mon May 30 22:03:17 2005 EDT Added files: /peardoc/en/core/ppm pear-rest.xml /peardoc/en/core/ppm/pear-config apiversion.xml deletechannel.xml getconffile.xml getdefaultchannel.xml getregistry.xml getremote.xml getrest.xml noregistry.xml readftpconfigfile.xml setchannels.xml setinstallroot.xml setregistry.xml validconfiguration.xml /peardoc/en/core/ppm/pear-rest downloadhttp.xml getcache.xml getcacheid.xml pear-rest.xml retrievecachefirst.xml retrievedata.xml savecache.xml uselocalcache.xml Modified files: /peardoc/en/core/ppm pear-config.xml Log: update PEAR_Config docs, add PEAR_REST docs

http://cvs.php.net/diff.php/peardoc/en/core/ppm/pear-config.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/en/core/ppm/pear-config.xml diff -u peardoc/en/core/ppm/pear-config.xml:1.2 peardoc/en/core/ppm/pear-config.xml:1.3 --- peardoc/en/core/ppm/pear-config.xml:1.2 Tue Oct 14 18:54:03 2003 +++ peardoc/en/core/ppm/pear-config.xml Mon May 30 22:03:15 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <sect1 id="core.ppm.pear-config"> <title>PEAR_Config</title> <para> @@ -22,27 +22,41 @@ </para> &core.ppm.pear-config.pear-config; +&core.ppm.pear-config.apiversion; &core.ppm.pear-config.definedby; +&core.ppm.pear-config.deletechannel; &core.ppm.pear-config.get; +&core.ppm.pear-config.getconffile; +&core.ppm.pear-config.getdefaultchannel; &core.ppm.pear-config.getdocs; +&core.ppm.pear-config.getftp; &core.ppm.pear-config.getgroup; &core.ppm.pear-config.getgroupkeys; &core.ppm.pear-config.getgroups; &core.ppm.pear-config.getkeys; &core.ppm.pear-config.getlayers; &core.ppm.pear-config.getprompt; +&core.ppm.pear-config.getregistry; +&core.ppm.pear-config.getremote; +&core.ppm.pear-config.getrest; &core.ppm.pear-config.getsetvalues; &core.ppm.pear-config.gettype; &core.ppm.pear-config.isdefined; &core.ppm.pear-config.isdefinedlayer; &core.ppm.pear-config.mergeconfigfile; +&core.ppm.pear-config.noregistry; &core.ppm.pear-config.readconfigfile; +&core.ppm.pear-config.readftpconfigfile; &core.ppm.pear-config.remove; &core.ppm.pear-config.removelayer; &core.ppm.pear-config.set; +&core.ppm.pear-config.setchannels; +&core.ppm.pear-config.setinstallroot; +&core.ppm.pear-config.setregistry; &core.ppm.pear-config.singleton; &core.ppm.pear-config.store; &core.ppm.pear-config.todefault; +&core.ppm.pear-config.validconfiguration; &core.ppm.pear-config.writeconfigfile; http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-rest.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-rest.xml +++ peardoc/en/core/ppm/pear-rest.xml <sect1 id="core.ppm.pear-rest"> <title>PEAR</title> <refentry id="core.ppm.pear-rest.pear-rest-summary"> <refnamediv> <refname> Class Summary <classname>PEAR_REST</classname> </refname> <refpurpose> Intelligently retrieve data, following hyperlinks if necessary, and re-directing </refpurpose> </refnamediv> <refsect1> <title> Intelligently retrieve data, following hyperlinks if necessary, and re-directing </title> <para>as well</para> </refsect1> <refsect1> <title> Class Trees for <classname>PEAR_REST</classname> </title> <para> <itemizedlist> <listitem> <para>PEAR_REST</para> </listitem> </itemizedlist> </para> </refsect1> </refentry> &core.ppm.pear-rest.pear-rest; &core.ppm.pear-rest.downloadhttp; &core.ppm.pear-rest.getcache; &core.ppm.pear-rest.getcacheid; &core.ppm.pear-rest.retrievecachefirst; &core.ppm.pear-rest.retrievedata; &core.ppm.pear-rest.savecache; &core.ppm.pear-rest.uselocalcache; </sect1> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/apiversion.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/apiversion.xml +++ peardoc/en/core/ppm/pear-config/apiversion.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.apiversion"> <refnamediv> <refname><function>PEAR_Config::apiVersion</function></refname> <refpurpose>return API version (1.1 as of PEAR 1.4.0</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_Config::apiVersion</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.apiversion.desc"> &title.desc; <para> Returns the </para> </refsect1> <refsect1 id="core.ppm.pear-config.apiversion.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.apiversion.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/deletechannel.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/deletechannel.xml +++ peardoc/en/core/ppm/pear-config/deletechannel.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.deletechannel"> <refnamediv> <refname><function>PEAR_Config::deleteChannel</function></refname> <refpurpose>deleteChannel</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_Config::deleteChannel</function></funcdef> <paramdef>string <parameter>$channel</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.deletechannel.desc"> &title.desc; <para> remove a channel's configuration entirely. </para> </refsect1> <refsect1 id="core.ppm.pear-config.deletechannel.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$channel</parameter> </term> <listitem> <para> Channel name to delete (channel server). </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-config.deletechannel.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.deletechannel.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/getconffile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/getconffile.xml +++ peardoc/en/core/ppm/pear-config/getconffile.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.getconffile"> <refnamediv> <refname><function>PEAR_Config::getConfFile</function></refname> <refpurpose>Gets the file used for storing the config for a layer</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_Config::getConfFile</function></funcdef> <paramdef>string <parameter>$layer</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.getconffile.desc"> &title.desc; <para> Use this to retrieve the name of the configuration file that provides values for a particular configuration layer. </para> </refsect1> <refsect1 id="core.ppm.pear-config.getconffile.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$layer</parameter> </term> <listitem> <para> <literal>user</literal>, <literal>system</literal>, or <literal>ftp</literal> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-config.getconffile.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.getconffile.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/getdefaultchannel.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/getdefaultchannel.xml +++ peardoc/en/core/ppm/pear-config/getdefaultchannel.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.getdefaultchannel"> <refnamediv> <refname><function>PEAR_Config::getDefaultChannel</function></refname> <refpurpose>Retrieve the default channel.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef><replaceable>string|false</replaceable> <function>PEAR_Config::getDefaultChannel</function></funcdef> <paramdef>string <parameter> <optional>$layer = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.getdefaultchannel.desc"> &title.desc; <para> On startup, channels are not initialized, so if the default channel is not pear.php.net, then initialize the config. </para> </refsect1> <refsect1 id="core.ppm.pear-config.getdefaultchannel.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$layer</parameter> </term> <listitem> <para> layer from which to retrieve the registry, or null for the first to match </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-config.getdefaultchannel.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.getdefaultchannel.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/getregistry.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/getregistry.xml +++ peardoc/en/core/ppm/pear-config/getregistry.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.getregistry"> <refnamediv> <refname><function>PEAR_Config::getRegistry</function></refname> <refpurpose>getRegistry</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef>PEAR_Registry|false&amp; <function>PEAR_Config::getRegistry</function></funcdef> <paramdef>string <parameter> <optional>$use = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.getregistry.desc"> &title.desc; &notdocumented; </refsect1> <refsect1 id="core.ppm.pear-config.getregistry.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$use</parameter> </term> <listitem> <para> This parameter determines which layer will be used to retrieve a registry based on the <literal>php_dir</literal> configuration variable for that layer. The default value of null will use the first layer that contains a valid php_dir, whereas if specified as <literal>user</literal>, <literal>system</literal> or <literal>ftp</literal>, it will attempt to return the registry for that layer. </para> <para> On failure to retrieve a registry, it returns false </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-config.getregistry.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.getregistry.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/getremote.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/getremote.xml +++ peardoc/en/core/ppm/pear-config/getremote.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.getremote"> <refnamediv> <refname><function>PEAR_Config::getRemote</function></refname> <refpurpose>getRemote</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef>PEAR_Remote&amp; <function>PEAR_Config::getRemote</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.getremote.desc"> &title.desc; <para> This returns a PEAR_Remote based on the current PEAR_Config object. </para> </refsect1> <refsect1 id="core.ppm.pear-config.getremote.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.getremote.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/getrest.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/getrest.xml +++ peardoc/en/core/ppm/pear-config/getrest.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.getrest"> <refnamediv> <refname><function>PEAR_Config::getREST</function></refname> <refpurpose>getREST</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>PEAR_REST&amp; <function>PEAR_Config::getREST</function></funcdef> <paramdef>string <parameter>$version</parameter></paramdef> <paramdef>array <parameter> <optional>$options = array()</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.getrest.desc"> &title.desc; &notdocumented; </refsect1> <refsect1 id="core.ppm.pear-config.getrest.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$version</parameter> </term> <listitem> <para> This should be <literal>1.0</literal> in PEAR 1.4.0. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$options</parameter> </term> <listitem> <para> options for the <link linkend="core.ppm.pear-rest"><classname>PEAR_REST</classname></link> constructor </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-config.getrest.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.getrest.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/noregistry.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/noregistry.xml +++ peardoc/en/core/ppm/pear-config/noregistry.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.noregistry"> <refnamediv> <refname><function>PEAR_Config::noRegistry</function></refname> <refpurpose>noRegistry</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_Config::noRegistry</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.noregistry.desc"> &title.desc; <para> Use this method to disable automatic creation of PEAR_Registry objects when reading from a configuration file or changing php_dir configuration variable. </para> </refsect1> <refsect1 id="core.ppm.pear-config.noregistry.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.noregistry.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/readftpconfigfile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/readftpconfigfile.xml +++ peardoc/en/core/ppm/pear-config/readftpconfigfile.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.readftpconfigfile"> <refnamediv> <refname><function>PEAR_Config::readFTPConfigFile</function></refname> <refpurpose>readFTPConfigFile</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef><replaceable>true|PEAR_Error</replaceable> <function>PEAR_Config::readFTPConfigFile</function></funcdef> <paramdef>string <parameter>$path</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.readftpconfigfile.desc"> &title.desc; <para> Process a ftp configuration file by connecting to the server, retrieving the configuration file and parsing it normally. This function uses Net_FTP through the PEAR_FTP class. </para> </refsect1> <refsect1 id="core.ppm.pear-config.readftpconfigfile.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$path</parameter> </term> <listitem> <para> url to the remote config file, like ftp://www.example.com/pear/config.ini </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-config.readftpconfigfile.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.readftpconfigfile.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/setchannels.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/setchannels.xml +++ peardoc/en/core/ppm/pear-config/setchannels.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.setchannels"> <refnamediv> <refname><function>PEAR_Config::setChannels</function></refname> <refpurpose>Set the list of channels.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>PEAR_Config::setChannels</function></funcdef> <paramdef>array <parameter>$channels</parameter></paramdef> <paramdef>bool <parameter> <optional>$merge = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.setchannels.desc"> &title.desc; <para> This should be set via a call to <function>PEAR_Registry::listChannels</function>. A call to this function sets up empty arrays for each channel in configurations. </para> </refsect1> <refsect1 id="core.ppm.pear-config.setchannels.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.array; <parameter>$channels</parameter> </term> <listitem> <para> a simple list of channel names. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$merge</parameter> </term> <listitem> <para> if true, then the list of channel is merged with the existing list, otherwise it replaces the existing list. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-config.setchannels.returns"> &title.returns; <para> <emphasis>returns</emphasis> success of operation </para> </refsect1> <refsect1 id="core.ppm.pear-config.setchannels.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.setchannels.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/setinstallroot.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/setinstallroot.xml +++ peardoc/en/core/ppm/pear-config/setinstallroot.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.setinstallroot"> <refnamediv> <refname><function>PEAR_Config::setInstallRoot</function></refname> <refpurpose>setInstallRoot</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_Config::setInstallRoot</function></funcdef> <paramdef>string|false <parameter>$root</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.setinstallroot.desc"> &title.desc; <para> This is used to implement the --installroot option for installation. In earlier PEAR versions, this was implemented in <function>PEAR_Installer::install</function>, but this makes it more difficult to track with the introduction of channels, and to satisfy better encapsulation, it has been moved to <classname>PEAR_Config</classname>. </para> <para> Pass in a full path. On retrieving any directory configuration variable, the value will be prepended with the installroot specified in this method. For example, if <literal>php_dir</literal> is <literal>/usr/lib/php</literal>, and <function>setInstallRoot</function> is used with <literal>/hoopla/boo</literal>, the value returned from <function>get</function> would be <literal>/hoopla/boo/usr/lib/php</literal>. Use an empty string <literal>''</literal> to reset an installroot. </para> </refsect1> <refsect1 id="core.ppm.pear-config.setinstallroot.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string;|&false; <parameter>$root</parameter> </term> <listitem> <para> installation directory to prepend to all _dir variables, or &false; to disable </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-config.setinstallroot.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.setinstallroot.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/setregistry.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/setregistry.xml +++ peardoc/en/core/ppm/pear-config/setregistry.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.setregistry"> <refnamediv> <refname><function>PEAR_Config::setRegistry</function></refname> <refpurpose>This is to allow customization like the use of installroot</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>PEAR_Config::setRegistry</function></funcdef> <paramdef>PEAR_Registry|false <parameter>&amp;$reg</parameter></paramdef> <paramdef>string <parameter> <optional>$layer = 'user'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.setregistry.desc"> &title.desc; <para> Use this to override the automatic registry creation performed whenever the <literal>php_dir</literal> configuration variable is modified. </para> <para> If <link linkend="core.ppm.pear-config.noregistry"><function>noRegistry</function></link> has been called, this call will be ignored and &false; returned. In addition, it is not possible to set the registry for the <literal>ftp</literal> layer. </para> </refsect1> <refsect1 id="core.ppm.pear-config.setregistry.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type>PEAR_Registry|false</type> <parameter>&amp;$reg</parameter> </term> <listitem> <para> The <classname>PEAR_Registry</classname> that will be used, or false to reset the registry. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$layer</parameter> </term> <listitem> <para> This must be either <literal>user</literal> or <literal>system</literal> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-config.setregistry.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.setregistry.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-config/validconfiguration.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-config/validconfiguration.xml +++ peardoc/en/core/ppm/pear-config/validconfiguration.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-config.validconfiguration"> <refnamediv> <refname><function>PEAR_Config::validConfiguration</function></refname> <refpurpose>Determine whether any configuration files have been detected, and whether a registry object can be retrieved from this configuration.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;/Config.php&apos;; (since PEAR 1.4.0) </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>PEAR_Config::validConfiguration</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-config.validconfiguration.desc"> &title.desc; <para> This method can be used to ward off any real problems with the default configuration. </para> </refsect1> <refsect1 id="core.ppm.pear-config.validconfiguration.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-config.validconfiguration.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-rest/downloadhttp.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-rest/downloadhttp.xml +++ peardoc/en/core/ppm/pear-rest/downloadhttp.xml <refentry id="core.ppm.pear-rest.downloadhttp"> <refnamediv> <refname> <function>PEAR_REST::downloadHttp</function> </refname> <refpurpose> Efficiently Download a file through HTTP. Returns downloaded file as a string in-memory This is best used for small files </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;/REST.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> string|array <function>PEAR_REST::downloadHttp</function> </funcdef> <paramdef> string <parameter>$url</parameter> </paramdef> <paramdef> false|string|array <parameter> <optional>$lastmodified = null</optional> </parameter> </paramdef> <paramdef> false|array <parameter> <optional>$accept = false</optional> </parameter> </paramdef> <paramdef> string <parameter>$save_dir</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-rest.downloadhttp.desc"> &title.desc; <para>If an HTTP proxy has been configured (http_proxy PEAR_Config setting), the proxy will be used.</para> </refsect1> <refsect1 id="core.ppm.pear-rest.downloadhttp.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$url</parameter> </term> <listitem> <para>the URL to download</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &false;|&type.string;|&type.array; <parameter>$lastmodified</parameter> </term> <listitem> <para> header values to check against for caching use &false; to return the header values from this download </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &false;|&type.array; <parameter>$accept</parameter> </term> <listitem> <para> Accept headers to send. This should be a list of MIME types like <literal>text/xml</literal>, <literal>frog/legs</literal>, etc. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$save_dir</parameter> </term> <listitem> <para>directory to save file in</para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-rest.downloadhttp.returns"> &title.returns; <para> <emphasis>returns</emphasis> Returns the contents of the downloaded file or a PEAR error on failure. If the error is caused by socket-related errors, the error object will have the fsockopen error code available through getCode(). If caching is requested, then return the header values. </para> </refsect1> <refsect1 id="core.ppm.pear-rest.downloadhttp.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-rest.downloadhttp.note"> &title.note; &note.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-rest/getcache.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-rest/getcache.xml +++ peardoc/en/core/ppm/pear-rest/getcache.xml <refentry id="core.ppm.pear-rest.getcache"> <refnamediv> <refname> <function>PEAR_REST::getCache</function> </refname> <refpurpose>getCache</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;/REST.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> mixed|false <function>PEAR_REST::getCache</function> </funcdef> <paramdef> string <parameter>$url</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-rest.getcache.desc"> &title.desc; <para> Retrieve the cache contents for a remote resource, or a PEAR_Error if the resource was not cached. </para> </refsect1> <refsect1 id="core.ppm.pear-rest.getcache.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$url</parameter> </term> <listitem> <para> REST resource URL </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-rest.getcache.throws"> &title.throws; <para> <emphasis>throws</emphasis> PEAR_Error object returned on error. </para> </refsect1> <refsect1 id="core.ppm.pear-rest.getcache.note"> &title.note; &note.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-rest/getcacheid.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-rest/getcacheid.xml +++ peardoc/en/core/ppm/pear-rest/getcacheid.xml <refentry id="core.ppm.pear-rest.getcacheid"> <refnamediv> <refname> <function>PEAR_REST::getCacheId</function> </refname> <refpurpose>getCacheId</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;/REST.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> array|false <function>PEAR_REST::getCacheId</function> </funcdef> <paramdef> string <parameter>$url</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-rest.getcacheid.desc"> &title.desc; <para> Retrieve the HTTP caching information for a REST resource, or &false; if no cache is found. </para> </refsect1> <refsect1 id="core.ppm.pear-rest.getcacheid.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$url</parameter> </term> <listitem> <para> REST resource URL </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-rest.getcacheid.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-rest.getcacheid.note"> &title.note; &note.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-rest/pear-rest.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-rest/pear-rest.xml +++ peardoc/en/core/ppm/pear-rest/pear-rest.xml <refentry id="core.ppm.pear-rest.pear-rest"> <refnamediv> <refname> constructor <function>PEAR_REST::PEAR_REST</function> </refname> <refpurpose>PEAR_REST</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;/REST.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> void constructor <function>PEAR_REST::PEAR_REST</function> </funcdef> <paramdef> PEAR_Config <parameter>&amp;$config</parameter> </paramdef> <paramdef> array <parameter> <optional>$options = array()</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-rest.pear-rest.desc"> &title.desc; &notdocumented; </refsect1> <refsect1 id="core.ppm.pear-rest.pear-rest.param"> &title.param; <para> <variablelist> <varlistentry> <term> PEAR_Config <parameter>&amp;$config</parameter> </term> <listitem> <para> Configuration object </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$options</parameter> </term> <listitem> <para> options passed to commands like install/download. The only option that affects PEAR_REST is <literal>offline</literal>, which causes all retrievals to look in the local cache without trying to retrieve a remote resource. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-rest.pear-rest.note"> &title.note; &note.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-rest/retrievecachefirst.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-rest/retrievecachefirst.xml +++ peardoc/en/core/ppm/pear-rest/retrievecachefirst.xml <refentry id="core.ppm.pear-rest.retrievecachefirst"> <refnamediv> <refname> <function>PEAR_REST::retrieveCacheFirst</function> </refname> <refpurpose>Retrieve REST data, but always retrieve the local cache if it is available.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;/REST.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> string|array <function>PEAR_REST::retrieveCacheFirst</function> </funcdef> <paramdef> string <parameter>$url</parameter> </paramdef> <paramdef> array|false <parameter> <optional>$accept = false</optional> </parameter> </paramdef> <paramdef> boolean <parameter> <optional>$forcestring = false</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-rest.retrievecachefirst.desc"> &title.desc; <para>This is useful for elements that should never change, such as information on a particular release</para> </refsect1> <refsect1 id="core.ppm.pear-rest.retrievecachefirst.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$url</parameter> </term> <listitem> <para>full URL to this resource</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array;|&false; <parameter>$accept</parameter> </term> <listitem> <para>contents of the accept-encoding header</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$forcestring</parameter> </term> <listitem> <para> if &true;, xml will be returned as a string, otherwise, xml will be parsed using PEAR_XMLParser </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-rest.retrievecachefirst.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-rest.retrievecachefirst.note"> &title.note; &note.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-rest/retrievedata.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-rest/retrievedata.xml +++ peardoc/en/core/ppm/pear-rest/retrievedata.xml <refentry id="core.ppm.pear-rest.retrievedata"> <refnamediv> <refname> <function>PEAR_REST::retrieveData</function> </refname> <refpurpose>Retrieve a remote REST resource</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;/REST.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> string|array <function>PEAR_REST::retrieveData</function> </funcdef> <paramdef> string <parameter>$url</parameter> </paramdef> <paramdef> array|false <parameter> <optional>$accept = false</optional> </parameter> </paramdef> <paramdef> bool <parameter> <optional>$forcestring = false</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-rest.retrievedata.desc"> &title.desc; <para> retrieve the contents of a remote resource. </para> </refsect1> <refsect1 id="core.ppm.pear-rest.retrievedata.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$url</parameter> </term> <listitem> <para>full URL to this resource</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type>array|false</type> <parameter>$accept</parameter> </term> <listitem> <para>contents of the accept-encoding header</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$forcestring</parameter> </term> <listitem> <para> if &true;, xml will be returned as a string, otherwise, xml will be parsed using PEAR_XMLParser </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-rest.retrievedata.throws"> &title.throws; <para> <emphasis>throws</emphasis> <classname>PEAR_Error</classname> objects are returned on error. </para> </refsect1> <refsect1 id="core.ppm.pear-rest.retrievedata.note"> &title.note; &note.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-rest/savecache.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-rest/savecache.xml +++ peardoc/en/core/ppm/pear-rest/savecache.xml <refentry id="core.ppm.pear-rest.savecache"> <refnamediv> <refname> <function>PEAR_REST::saveCache</function> </refname> <refpurpose>Save the value retrieved from a remote REST resource in the local cache.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;/REST.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> void <function>PEAR_REST::saveCache</function> </funcdef> <paramdef> string <parameter>$url</parameter> </paramdef> <paramdef> mixed <parameter>$contents</parameter> </paramdef> <paramdef> array <parameter>$lastmodified</parameter> </paramdef> <paramdef> bool <parameter> <optional>$nochange = false</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-rest.savecache.desc"> &title.desc; <para> Use this to save a resource after retrieving. Since the <literal>cache_ttl</literal> configuration variable is used in determining when to check the remote server, and HTTP caching is used as well, it is possible for this scenario to arise: </para> <para> <orderedlist> <listitem> <para> retrieve REST resource </para> </listitem> <listitem> <para> cache the resource </para> </listitem> <listitem> <para> a few days later, retrieve the REST resource again </para> </listitem> <listitem> <para> HTTP caching returns 304 not modified </para> </listitem> </orderedlist> </para> <para> In this situation, it doesn't make much sense to save the resource contents redundantly. Instead, the last access time can be saved in the cache id by passing true into the last parameter. </para> </refsect1> <refsect1 id="core.ppm.pear-rest.savecache.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$url</parameter> </term> <listitem> <para> The REST resource's URL </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$contents</parameter> </term> <listitem> <para> Contents retrieved from the REST resource (ignored if the last parameter is true) </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$lastmodified</parameter> </term> <listitem> <para> The ETag and LastModified headers retrieved from the remote server, used for HTTP caching. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$nochange</parameter> </term> <listitem> <para> If false, the cache is saved normally. If true, only the <parameter>$lastmodified</parameter> parameter is saved in the cache id file, registering an HTTP cache hit. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-rest.savecache.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-rest.savecache.note"> &title.note; &note.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-rest/uselocalcache.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-rest/uselocalcache.xml +++ peardoc/en/core/ppm/pear-rest/uselocalcache.xml <refentry id="core.ppm.pear-rest.uselocalcache"> <refnamediv> <refname> <function>PEAR_REST::useLocalCache</function> </refname> <refpurpose>useLocalCache</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;/REST.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> mixed <function>PEAR_REST::useLocalCache</function> </funcdef> <paramdef> bool <parameter>$url</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-rest.uselocalcache.desc"> &title.desc; <para> Retrieve the contents of the local cached copy of a remote URL. &false; is returned if there are any problems, under the assumption that REST contents will always be larger than a simple boolean due to HTTP overhead. </para> </refsect1> <refsect1 id="core.ppm.pear-rest.uselocalcache.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$url</parameter> </term> <listitem> <para> The URL to retrieve data for. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-rest.uselocalcache.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-rest.uselocalcache.note"> &title.note; &note.notstatic; </refsect1> </refentry>
« previous php.pear.doc (#6129) next »