cvs: peardoc /en/guide/migrating/channels xmlrpcfunctions.xml

From: Date: Tue, 29 Mar 2005 04:04:56 +0000
Subject: cvs: peardoc /en/guide/migrating/channels xmlrpcfunctions.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5812@lists.php.net to get a copy of this message
cellog Mon Mar 28 23:04:56 2005 EDT Modified files: /peardoc/en/guide/migrating/channels xmlrpcfunctions.xml Log: fix spelling error (indexes => indices) add docs for package.getDepDownloadURL http://cvs.php.net/diff.php/peardoc/en/guide/migrating/channels/xmlrpcfunctions.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/guide/migrating/channels/xmlrpcfunctions.xml diff -u peardoc/en/guide/migrating/channels/xmlrpcfunctions.xml:1.3 peardoc/en/guide/migrating/channels/xmlrpcfunctions.xml:1.4 --- peardoc/en/guide/migrating/channels/xmlrpcfunctions.xml:1.3 Mon Mar 28 14:05:56 2005 +++ peardoc/en/guide/migrating/channels/xmlrpcfunctions.xml Mon Mar 28 23:04:55 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="guide.migrating.channels.xmlrpcfunctions"> <refnamediv> <refname>XML-RPC functions</refname> @@ -139,7 +139,7 @@ </para> <para> The package.getDownloadURL function should return an array with either two or three - indexes. + indices. <itemizedlist> <listitem> <para> @@ -166,11 +166,165 @@ </listitem> </itemizedlist> </para> + <para> + Note that version 1.0 of package.getDownloadURL did not have the installed_version + parameter. Version 1.1 of package.getDownloadURL does - that is the only difference + between the two versions. + </para> </refsect1> <refsect1 id="guide.migrating.channels.xmlrpcfunctions.getdepdownloadurl"> <title>package.getDepDownloadURL</title> <para> - hi + <funcsynopsis> + <funcprototype> + <funcdef>false|struct <function>package.getDepDownloadURL</function></funcdef> + <paramdef>string <parameter>xsdversion</parameter></paramdef> + <paramdef>struct <parameter>dependency</parameter></paramdef> + <paramdef>struct <parameter>parentpackage</parameter></paramdef> + <paramdef>string <parameter><optional>preferred_state = stable</optional></parameter></paramdef> + <paramdef>(v1.1) string <parameter><optional>installed_version = false</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + </para> + <para> + <variablelist> + <varlistentry> + <term> + string <parameter>xsdversion</parameter> + </term> + <listitem> + <para> + This should be either '1.0' or '2.0', and should match the version attribute + from the top-level &lt;package version=&quot;X.0&quot;&gt; tag. This should be used + to determine how to process the second parameter. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + struct <parameter>dependency</parameter> + </term> + <listitem> + <para> + if the first parameter xsdversion is '1.0', this should be an array of format: + </para> + <para> + <screen> + <![CDATA[ +array( + 'name' => package name + 'type' => 'pkg' - anything else is an error + 'rel' => 'has', 'ge', 'le', 'lt', 'le', 'not', 'ne' + ['version' => specific version to retrieve,] + ) + ]]> + </screen> + </para> + <para> + if xsdversion is '2.0', this should be an array of format: + </para> + <para> + <screen> + <![CDATA[ +array( + 'name' => package name + 'channel' => package channel - see notes below + ['min' => minimum version (inclusive),] + ['max' => maximum version (inclusive),] + ['exclude' => single version to exclude (string), + or array of versions to exclude,] + ) + ]]> + </screen> + </para> + <para> + Note that you must always verify that the channel matches your channel. If + your channel server is not at pear.php.net or pecl.php.net, you must reject + all xsdversion='1.0' requests, and all xsdversion='2.0' requests where + the channel is not your channel. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + struct <parameter>parentpackage</parameter> + </term> + <listitem> + <para> + This is information on the parent package, and is an array of format: + </para> + <para> + <screen> + <![CDATA[ +array( + 'channel' => channel name, + 'package' => package name, + 'version' => specific version to retrieve, + ) + ]]> + </screen> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.string; <parameter>preferred_state = stable</parameter> + </term> + <listitem> + <para> + The client-side preferred_state. This should be used to exclude releases + that are too unstable. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + &type.string; <parameter>installed_version = false</parameter> + </term> + <listitem> + <para> + The current installed version of the dependency on the client-side. This will either + be a version string, or false if the package is not installed. Use this to + ensure that older versions are never returned (as defined by + version_compare(possible_version, installed_version, &quot;&lt;&quot;)). + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + <para> + Like package.getDownloadURL, package.getDepDownloadURL should return an + array with either two or three indices. + <itemizedlist> + <listitem> + <para> + &quot;version&quot; =&gt; version of the release returned + </para> + </listitem> + <listitem> + <para> + &quot;info&quot; =&gt; the complete package.xml contents from the release + </para> + </listitem> + <listitem> + <para> + &quot;url&quot; =&gt; a URL from which to download this release. If no releases + exist that fit the constraints defined by preferred_state, installed_version, + and the version/state indices of packageinfo, then do not return this index, and + instead return the version and package.xml of the latest release. + </para> + <para> + The url entry should NOT append .tgz or .tar, but should be something like + &quot;http://pear.php.net/get/PEAR-1.4.0&quot; instead of + &quot;http://pear.php.net/get/PEAR-1.4.0.tgz&quot; + </para> + </listitem> + </itemizedlist> + </para> + <para> + Note that version 1.0 of package.getDepDownloadURL did not have the installed_version + parameter. Version 1.1 of package.getDepDownloadURL does - that is the only difference + between the two versions. </para> </refsect1> <refsect1 id="guide.migrating.channels.xmlrpcfunctions.info">

« previous php.pear.doc (#5812) next »