cvs: peardoc /en/core ppm.xml /en/core/ppm pear-packagefile.xml /en/core/ppm/pear-packagefile constants.xml factory.xml fromanyfile.xml
fromarray.xml frompackagefile.xml fromtgzfile.xml fromxmlstring.xml parserfactory.xml pear-packagefile.xml rawreturn.xml setlogger.xml
| From: | Greg Beaver | Date: | Wed, 08 Jun 2005 03:42:47 +0000 |
| Subject: | cvs: peardoc /en/core ppm.xml /en/core/ppm pear-packagefile.xml /en/core/ppm/pear-packagefile constants.xml factory.xml fromanyfile.xml fromarray.xml frompackagefile.xml fromtgzfile.xml fromxmlstring.xml parserfactory.xml pear-packagefile.xml rawreturn.xml setlogger.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6249@lists.php.net to get a copy of this message | ||
cellog Tue Jun 7 23:42:47 2005 EDT
Added files:
/peardoc/en/core/ppm pear-packagefile.xml
/peardoc/en/core/ppm/pear-packagefile constants.xml factory.xml
fromanyfile.xml fromarray.xml
frompackagefile.xml
fromtgzfile.xml
fromxmlstring.xml
parserfactory.xml
pear-packagefile.xml
rawreturn.xml setlogger.xml
Modified files:
/peardoc/en/core ppm.xml
Log:
add docs for PEAR_PackageFile
http://cvs.php.net/diff.php/peardoc/en/core/ppm.xml?r1=1.8&r2=1.9&ty=u Index: peardoc/en/core/ppm.xml diff -u peardoc/en/core/ppm.xml:1.8 peardoc/en/core/ppm.xml:1.9 --- peardoc/en/core/ppm.xml:1.8 Sun Jun 5 00:37:42 2005 +++ peardoc/en/core/ppm.xml Tue Jun 7 23:42:46 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <chapter id="core.ppm"> <title>PEAR Installer classes</title> @@ -21,7 +21,8 @@ &core.ppm.pear-dependencydb; &core.ppm.pear-frontend; &core.ppm.pear-installer; - &core.ppm.pear-packager; + &core.ppm.pear-packagefile; + &core.ppm.pear-packager; &core.ppm.pear-registry; &core.ppm.pear-remote; &core.ppm.pear-rest; http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile.xml +++ peardoc/en/core/ppm/pear-packagefile.xml <sect1 id="core.ppm.pear-packagefile"> <title>PEAR</title> <refentry id="core.ppm.pear-packagefile-summary"> <refnamediv> <refname> Class Summary <classname>PEAR_PackageFile</classname> </refname> <refpurpose>Abstraction for the package.xml package description file</refpurpose> </refnamediv> <refsect1> <title>Abstraction for the package.xml package description file</title> <para> Parse and retrieve a package.xml object from various sources. </para> </refsect1> <refsect1> <title> Class Trees for <classname>PEAR_PackageFile</classname> </title> <para> <itemizedlist> <listitem> <para>PEAR_PackageFile</para> </listitem> </itemizedlist> </para> </refsect1> </refentry> &core.ppm.pear-packagefile.pear-packagefile; &core.ppm.pear-packagefile.factory; &core.ppm.pear-packagefile.fromanyfile; &core.ppm.pear-packagefile.fromarray; &core.ppm.pear-packagefile.frompackagefile; &core.ppm.pear-packagefile.fromtgzfile; &core.ppm.pear-packagefile.fromxmlstring; &core.ppm.pear-packagefile.parserfactory; &core.ppm.pear-packagefile.rawreturn; &core.ppm.pear-packagefile.setlogger; &core.ppm.pear-packagefile.constants; </sect1> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/constants.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/constants.xml +++ peardoc/en/core/ppm/pear-packagefile/constants.xml <refentry id="core.ppm.pear-packagefile.constants"> <refnamediv> <refname>Package PEAR Constants</refname> <refpurpose>Constants defined in and used by PEAR</refpurpose> </refnamediv> <refsect1 id="core.ppm.pear-packagefile.constants.details"> <title>All Constants</title> <refsect2 id="core.ppm.pear-packagefile.constants.details.packagefile---php"> <title>Constants defined in PackageFile.php</title> <para> <table> <title>Constants defined in PackageFile.php</title> <tgroup cols="3"> <thead> <row> <entry>Name</entry> <entry>Value</entry> <entry>Line Number</entry> </row> </thead> <tbody> <row> <entry>PEAR_PACKAGEFILE_ERROR_INVALID_PACKAGEVERSION</entry> <entry>2</entry> <entry>35</entry> </row> <row> <entry>PEAR_PACKAGEFILE_ERROR_NO_PACKAGEVERSION</entry> <entry>1</entry> <entry>30</entry> </row> </tbody> </tgroup> </table> </para> </refsect2> </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/factory.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/factory.xml +++ peardoc/en/core/ppm/pear-packagefile/factory.xml <refentry id="core.ppm.pear-packagefile.factory"> <refnamediv> <refname> <function>PEAR_PackageFile::factory</function> </refname> <refpurpose>factory</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> PEAR_PackageFile_v1|PEAR_PackageFile_v2& <function>PEAR_PackageFile::factory</function> </funcdef> <paramdef> string <parameter>$version</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.factory.desc"> &title.desc; <para> Retrieve a raw <classname>PEAR_PackageFile_vX</classname> object where X is either 1 or 2. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.factory.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$version</parameter> </term> <listitem> <para> The package.xml version represented (1 or 2) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.factory.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.factory.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/fromanyfile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/fromanyfile.xml +++ peardoc/en/core/ppm/pear-packagefile/fromanyfile.xml <refentry id="core.ppm.pear-packagefile.fromanyfile"> <refnamediv> <refname> <function>PEAR_PackageFile::fromAnyFile</function> </refname> <refpurpose>Returns package information from different sources</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> string& <function>PEAR_PackageFile::fromAnyFile</function> </funcdef> <paramdef> string <parameter>$info</parameter> </paramdef> <paramdef> int <parameter>$state</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.fromanyfile.desc"> &title.desc; <para>This method is able to extract information about a package from a .tgz archive or from a XML package definition file.</para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromanyfile.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$info</parameter> </term> <listitem> <para>path to a file containing a package.xml (package archive or package.xml)</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.int; <parameter>$state</parameter> </term> <listitem> <para>package state (one of <link linkend="core.ppm.pear-validate.constants"><literal>PEAR_VALIDATE_*</literal></link> constants)</para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromanyfile.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromanyfile.note"> &title.note; ¬e.shouldstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/fromarray.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/fromarray.xml +++ peardoc/en/core/ppm/pear-packagefile/fromarray.xml <refentry id="core.ppm.pear-packagefile.fromarray"> <refnamediv> <refname> <function>PEAR_PackageFile::fromArray</function> </refname> <refpurpose>Return a packagefile object from its toArray() method</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> PEAR_PackageFile_v1|PEAR_PackageFile_v2& <function>PEAR_PackageFile::fromArray</function> </funcdef> <paramdef> array <parameter>$arr</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.fromarray.desc"> &title.desc; <warning> <para> WARNING: no validation is performed, the array is assumed to be valid, always parse from xml if you want validation. </para> </warning> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromarray.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.array; <parameter>$arr</parameter> </term> <listitem> <para> Contents of a previously parsed package.xml object. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromarray.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromarray.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/frompackagefile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/frompackagefile.xml +++ peardoc/en/core/ppm/pear-packagefile/frompackagefile.xml <refentry id="core.ppm.pear-packagefile.frompackagefile"> <refnamediv> <refname> <function>PEAR_PackageFile::fromPackageFile</function> </refname> <refpurpose> Returns information about a package file. Expects the name of a package.xml file as input. </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> array& <function>PEAR_PackageFile::fromPackageFile</function> </funcdef> <paramdef> string <parameter>$descfile</parameter> </paramdef> <paramdef> int <parameter>$state</parameter> </paramdef> <paramdef> string|false <parameter> <optional>$archive = &false;</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.frompackagefile.desc"> &title.desc; <para> parse and return a package.xml object from a package.xml file, or a <link linkend="core.pear.pear-error"><classname>PEAR_Error</classname></link> object upon error. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.frompackagefile.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$descfile</parameter> </term> <listitem> <para>name of package.xml file</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.int; <parameter>$state</parameter> </term> <listitem> <para>package state (one of <link linkend="core.ppm.pear-validate.constants"><literal>PEAR_VALIDATE_*</literal></link> constants)</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string;|&false; <parameter>$archive</parameter> </term> <listitem> <para> full path to the full package .tgz file containing the package.xml, or false for none. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.frompackagefile.returns"> &title.returns; <para> <emphasis>returns</emphasis> array with package information </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.frompackagefile.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.frompackagefile.note"> &title.note; ¬e.shouldstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/fromtgzfile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/fromtgzfile.xml +++ peardoc/en/core/ppm/pear-packagefile/fromtgzfile.xml <refentry id="core.ppm.pear-packagefile.fromtgzfile"> <refnamediv> <refname> <function>PEAR_PackageFile::fromTgzFile</function> </refname> <refpurpose>fromTgzFile</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> PEAR_PackageFile_v1|PEAR_PackageFile_v2|PEAR_Error& <function>PEAR_PackageFile::fromTgzFile</function> </funcdef> <paramdef> string <parameter>$file</parameter> </paramdef> <paramdef> int <parameter>$state</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.fromtgzfile.desc"> &title.desc; <para> parse and return a package.xml object from a packaged archive, or a <link linkend="core.pear.pear-error"><classname>PEAR_Error</classname></link> object upon error. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromtgzfile.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para>name of packaged .tgz or .tar to extract and parse package.xml from</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.int; <parameter>$state</parameter> </term> <listitem> <para> package state (one of <link linkend="core.ppm.pear-validate.constants"><literal>PEAR_VALIDATE_*</literal></link> constants) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromtgzfile.returns"> &title.returns; <para> <emphasis>returns</emphasis> success of parsing </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromtgzfile.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromtgzfile.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/fromxmlstring.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/fromxmlstring.xml +++ peardoc/en/core/ppm/pear-packagefile/fromxmlstring.xml <refentry id="core.ppm.pear-packagefile.fromxmlstring"> <refnamediv> <refname> <function>PEAR_PackageFile::fromXmlString</function> </refname> <refpurpose>fromXmlString</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> PEAR_PackageFile_v1|PEAR_PackageFile_v2|PEAR_Error& <function>PEAR_PackageFile::fromXmlString</function> </funcdef> <paramdef> string <parameter>$data</parameter> </paramdef> <paramdef> int <parameter>$state</parameter> </paramdef> <paramdef> string <parameter>$file</parameter> </paramdef> <paramdef> string|false <parameter> <optional>$archive = &false;</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.fromxmlstring.desc"> &title.desc; <para> parse and return a package.xml object, or a <link linkend="core.pear.pear-error"><classname>PEAR_Error</classname></link> object upon error. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromxmlstring.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$data</parameter> </term> <listitem> <para>contents of package.xml file</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.int; <parameter>$state</parameter> </term> <listitem> <para>package state (one of <link linkend="core.ppm.pear-validate.constants"><literal>PEAR_VALIDATE_*</literal></link> constants)</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para>full path to the package.xml file (and the files it references)</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string;|&false; <parameter>$archive</parameter> </term> <listitem> <para> full path to the full package .tgz file containing the package.xml, or false for none. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromxmlstring.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromxmlstring.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/parserfactory.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/parserfactory.xml +++ peardoc/en/core/ppm/pear-packagefile/parserfactory.xml <refentry id="core.ppm.pear-packagefile.parserfactory"> <refnamediv> <refname> <function>PEAR_PackageFile::parserFactory</function> </refname> <refpurpose>parserFactory</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> PEAR_PackageFile_Parser_v1|PEAR_PackageFile_Parser_v2& <function>PEAR_PackageFile::parserFactory</function> </funcdef> <paramdef> string <parameter>$version</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.parserfactory.desc"> &title.desc; <para> Return a package.xml parsing object appropriate for the selected package.xml version. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.parserfactory.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$version</parameter> </term> <listitem> <para> The package.xml version represented (1 or 2) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.parserfactory.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.parserfactory.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/pear-packagefile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/pear-packagefile.xml +++ peardoc/en/core/ppm/pear-packagefile/pear-packagefile.xml <refentry id="core.ppm.pear-packagefile.pear-packagefile"> <refnamediv> <refname> constructor <function>PEAR_PackageFile::PEAR_PackageFile</function> </refname> <refpurpose>PEAR_PackageFile</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> void constructor <function>PEAR_PackageFile::PEAR_PackageFile</function> </funcdef> <paramdef> PEAR_Config <parameter>&$config</parameter> </paramdef> <paramdef> bool <parameter> <optional>$debug = &false;</optional> </parameter> </paramdef> <paramdef> string <parameter> <optional>$tmpdir = &false;</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.pear-packagefile.desc"> &title.desc; <para> Prepare for parsing one or more package.xml files. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.pear-packagefile.param"> &title.param; <para> <variablelist> <varlistentry> <term> <link linkend="core.ppm.pear-config"><classname>PEAR_Config</classname></link> <parameter>&$config</parameter> </term> <listitem> <para> The configuration to use for parsing and channel registry (needed for channel-specific validators). </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$debug</parameter> </term> <listitem> <para> The debug logging level (this is usually the value of the <literal>verbose</literal> configuration variable). </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$tmpdir</parameter> </term> <listitem> <para> The temporary directory to extract files in. By default, a new temporary directory is created using <link linkend="core.pear.system.mktemp"><function>System::mktemp</function></link>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.pear-packagefile.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.pear-packagefile.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/rawreturn.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/rawreturn.xml +++ peardoc/en/core/ppm/pear-packagefile/rawreturn.xml <refentry id="core.ppm.pear-packagefile.rawreturn"> <refnamediv> <refname> <function>PEAR_PackageFile::rawReturn</function> </refname> <refpurpose>Turn off validation - return a parsed package.xml without checking it for errors</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> void <function>PEAR_PackageFile::rawReturn</function> </funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.rawreturn.desc"> &title.desc; <para>This is used by the package-validate command</para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.rawreturn.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.rawreturn.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/setlogger.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/setlogger.xml +++ peardoc/en/core/ppm/pear-packagefile/setlogger.xml <refentry id="core.ppm.pear-packagefile.setlogger"> <refnamediv> <refname> <function>PEAR_PackageFile::setLogger</function> </refname> <refpurpose>setLogger</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> void <function>PEAR_PackageFile::setLogger</function> </funcdef> <paramdef> PEAR_Common <parameter>&$l</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.setlogger.desc"> &title.desc; <para> set a logging class that matches the signature of <classname>PEAR_Common</classname>'s <link linkend="core.ppm.pear-common.log"><function>log</function></link> method. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.setlogger.param"> &title.param; <para> <variablelist> <varlistentry> <term> <link linkend="core.ppm.pear-common"><classname>PEAR_Common</classname></link> <parameter>&$l</parameter> </term> <listitem> <para> The PEAR_Common object. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.setlogger.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.setlogger.note"> &title.note; ¬e.notstatic; </refsect1> </refentry>
http://cvs.php.net/diff.php/peardoc/en/core/ppm.xml?r1=1.8&r2=1.9&ty=u Index: peardoc/en/core/ppm.xml diff -u peardoc/en/core/ppm.xml:1.8 peardoc/en/core/ppm.xml:1.9 --- peardoc/en/core/ppm.xml:1.8 Sun Jun 5 00:37:42 2005 +++ peardoc/en/core/ppm.xml Tue Jun 7 23:42:46 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <chapter id="core.ppm"> <title>PEAR Installer classes</title> @@ -21,7 +21,8 @@ &core.ppm.pear-dependencydb; &core.ppm.pear-frontend; &core.ppm.pear-installer; - &core.ppm.pear-packager; + &core.ppm.pear-packagefile; + &core.ppm.pear-packager; &core.ppm.pear-registry; &core.ppm.pear-remote; &core.ppm.pear-rest; http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile.xml +++ peardoc/en/core/ppm/pear-packagefile.xml <sect1 id="core.ppm.pear-packagefile"> <title>PEAR</title> <refentry id="core.ppm.pear-packagefile-summary"> <refnamediv> <refname> Class Summary <classname>PEAR_PackageFile</classname> </refname> <refpurpose>Abstraction for the package.xml package description file</refpurpose> </refnamediv> <refsect1> <title>Abstraction for the package.xml package description file</title> <para> Parse and retrieve a package.xml object from various sources. </para> </refsect1> <refsect1> <title> Class Trees for <classname>PEAR_PackageFile</classname> </title> <para> <itemizedlist> <listitem> <para>PEAR_PackageFile</para> </listitem> </itemizedlist> </para> </refsect1> </refentry> &core.ppm.pear-packagefile.pear-packagefile; &core.ppm.pear-packagefile.factory; &core.ppm.pear-packagefile.fromanyfile; &core.ppm.pear-packagefile.fromarray; &core.ppm.pear-packagefile.frompackagefile; &core.ppm.pear-packagefile.fromtgzfile; &core.ppm.pear-packagefile.fromxmlstring; &core.ppm.pear-packagefile.parserfactory; &core.ppm.pear-packagefile.rawreturn; &core.ppm.pear-packagefile.setlogger; &core.ppm.pear-packagefile.constants; </sect1> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/constants.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/constants.xml +++ peardoc/en/core/ppm/pear-packagefile/constants.xml <refentry id="core.ppm.pear-packagefile.constants"> <refnamediv> <refname>Package PEAR Constants</refname> <refpurpose>Constants defined in and used by PEAR</refpurpose> </refnamediv> <refsect1 id="core.ppm.pear-packagefile.constants.details"> <title>All Constants</title> <refsect2 id="core.ppm.pear-packagefile.constants.details.packagefile---php"> <title>Constants defined in PackageFile.php</title> <para> <table> <title>Constants defined in PackageFile.php</title> <tgroup cols="3"> <thead> <row> <entry>Name</entry> <entry>Value</entry> <entry>Line Number</entry> </row> </thead> <tbody> <row> <entry>PEAR_PACKAGEFILE_ERROR_INVALID_PACKAGEVERSION</entry> <entry>2</entry> <entry>35</entry> </row> <row> <entry>PEAR_PACKAGEFILE_ERROR_NO_PACKAGEVERSION</entry> <entry>1</entry> <entry>30</entry> </row> </tbody> </tgroup> </table> </para> </refsect2> </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/factory.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/factory.xml +++ peardoc/en/core/ppm/pear-packagefile/factory.xml <refentry id="core.ppm.pear-packagefile.factory"> <refnamediv> <refname> <function>PEAR_PackageFile::factory</function> </refname> <refpurpose>factory</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> PEAR_PackageFile_v1|PEAR_PackageFile_v2& <function>PEAR_PackageFile::factory</function> </funcdef> <paramdef> string <parameter>$version</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.factory.desc"> &title.desc; <para> Retrieve a raw <classname>PEAR_PackageFile_vX</classname> object where X is either 1 or 2. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.factory.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$version</parameter> </term> <listitem> <para> The package.xml version represented (1 or 2) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.factory.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.factory.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/fromanyfile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/fromanyfile.xml +++ peardoc/en/core/ppm/pear-packagefile/fromanyfile.xml <refentry id="core.ppm.pear-packagefile.fromanyfile"> <refnamediv> <refname> <function>PEAR_PackageFile::fromAnyFile</function> </refname> <refpurpose>Returns package information from different sources</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> string& <function>PEAR_PackageFile::fromAnyFile</function> </funcdef> <paramdef> string <parameter>$info</parameter> </paramdef> <paramdef> int <parameter>$state</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.fromanyfile.desc"> &title.desc; <para>This method is able to extract information about a package from a .tgz archive or from a XML package definition file.</para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromanyfile.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$info</parameter> </term> <listitem> <para>path to a file containing a package.xml (package archive or package.xml)</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.int; <parameter>$state</parameter> </term> <listitem> <para>package state (one of <link linkend="core.ppm.pear-validate.constants"><literal>PEAR_VALIDATE_*</literal></link> constants)</para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromanyfile.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromanyfile.note"> &title.note; ¬e.shouldstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/fromarray.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/fromarray.xml +++ peardoc/en/core/ppm/pear-packagefile/fromarray.xml <refentry id="core.ppm.pear-packagefile.fromarray"> <refnamediv> <refname> <function>PEAR_PackageFile::fromArray</function> </refname> <refpurpose>Return a packagefile object from its toArray() method</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> PEAR_PackageFile_v1|PEAR_PackageFile_v2& <function>PEAR_PackageFile::fromArray</function> </funcdef> <paramdef> array <parameter>$arr</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.fromarray.desc"> &title.desc; <warning> <para> WARNING: no validation is performed, the array is assumed to be valid, always parse from xml if you want validation. </para> </warning> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromarray.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.array; <parameter>$arr</parameter> </term> <listitem> <para> Contents of a previously parsed package.xml object. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromarray.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromarray.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/frompackagefile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/frompackagefile.xml +++ peardoc/en/core/ppm/pear-packagefile/frompackagefile.xml <refentry id="core.ppm.pear-packagefile.frompackagefile"> <refnamediv> <refname> <function>PEAR_PackageFile::fromPackageFile</function> </refname> <refpurpose> Returns information about a package file. Expects the name of a package.xml file as input. </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> array& <function>PEAR_PackageFile::fromPackageFile</function> </funcdef> <paramdef> string <parameter>$descfile</parameter> </paramdef> <paramdef> int <parameter>$state</parameter> </paramdef> <paramdef> string|false <parameter> <optional>$archive = &false;</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.frompackagefile.desc"> &title.desc; <para> parse and return a package.xml object from a package.xml file, or a <link linkend="core.pear.pear-error"><classname>PEAR_Error</classname></link> object upon error. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.frompackagefile.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$descfile</parameter> </term> <listitem> <para>name of package.xml file</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.int; <parameter>$state</parameter> </term> <listitem> <para>package state (one of <link linkend="core.ppm.pear-validate.constants"><literal>PEAR_VALIDATE_*</literal></link> constants)</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string;|&false; <parameter>$archive</parameter> </term> <listitem> <para> full path to the full package .tgz file containing the package.xml, or false for none. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.frompackagefile.returns"> &title.returns; <para> <emphasis>returns</emphasis> array with package information </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.frompackagefile.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.frompackagefile.note"> &title.note; ¬e.shouldstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/fromtgzfile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/fromtgzfile.xml +++ peardoc/en/core/ppm/pear-packagefile/fromtgzfile.xml <refentry id="core.ppm.pear-packagefile.fromtgzfile"> <refnamediv> <refname> <function>PEAR_PackageFile::fromTgzFile</function> </refname> <refpurpose>fromTgzFile</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> PEAR_PackageFile_v1|PEAR_PackageFile_v2|PEAR_Error& <function>PEAR_PackageFile::fromTgzFile</function> </funcdef> <paramdef> string <parameter>$file</parameter> </paramdef> <paramdef> int <parameter>$state</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.fromtgzfile.desc"> &title.desc; <para> parse and return a package.xml object from a packaged archive, or a <link linkend="core.pear.pear-error"><classname>PEAR_Error</classname></link> object upon error. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromtgzfile.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para>name of packaged .tgz or .tar to extract and parse package.xml from</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.int; <parameter>$state</parameter> </term> <listitem> <para> package state (one of <link linkend="core.ppm.pear-validate.constants"><literal>PEAR_VALIDATE_*</literal></link> constants) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromtgzfile.returns"> &title.returns; <para> <emphasis>returns</emphasis> success of parsing </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromtgzfile.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromtgzfile.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/fromxmlstring.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/fromxmlstring.xml +++ peardoc/en/core/ppm/pear-packagefile/fromxmlstring.xml <refentry id="core.ppm.pear-packagefile.fromxmlstring"> <refnamediv> <refname> <function>PEAR_PackageFile::fromXmlString</function> </refname> <refpurpose>fromXmlString</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> PEAR_PackageFile_v1|PEAR_PackageFile_v2|PEAR_Error& <function>PEAR_PackageFile::fromXmlString</function> </funcdef> <paramdef> string <parameter>$data</parameter> </paramdef> <paramdef> int <parameter>$state</parameter> </paramdef> <paramdef> string <parameter>$file</parameter> </paramdef> <paramdef> string|false <parameter> <optional>$archive = &false;</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.fromxmlstring.desc"> &title.desc; <para> parse and return a package.xml object, or a <link linkend="core.pear.pear-error"><classname>PEAR_Error</classname></link> object upon error. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromxmlstring.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$data</parameter> </term> <listitem> <para>contents of package.xml file</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.int; <parameter>$state</parameter> </term> <listitem> <para>package state (one of <link linkend="core.ppm.pear-validate.constants"><literal>PEAR_VALIDATE_*</literal></link> constants)</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para>full path to the package.xml file (and the files it references)</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string;|&false; <parameter>$archive</parameter> </term> <listitem> <para> full path to the full package .tgz file containing the package.xml, or false for none. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromxmlstring.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.fromxmlstring.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/parserfactory.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/parserfactory.xml +++ peardoc/en/core/ppm/pear-packagefile/parserfactory.xml <refentry id="core.ppm.pear-packagefile.parserfactory"> <refnamediv> <refname> <function>PEAR_PackageFile::parserFactory</function> </refname> <refpurpose>parserFactory</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> PEAR_PackageFile_Parser_v1|PEAR_PackageFile_Parser_v2& <function>PEAR_PackageFile::parserFactory</function> </funcdef> <paramdef> string <parameter>$version</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.parserfactory.desc"> &title.desc; <para> Return a package.xml parsing object appropriate for the selected package.xml version. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.parserfactory.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$version</parameter> </term> <listitem> <para> The package.xml version represented (1 or 2) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.parserfactory.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.parserfactory.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/pear-packagefile.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/pear-packagefile.xml +++ peardoc/en/core/ppm/pear-packagefile/pear-packagefile.xml <refentry id="core.ppm.pear-packagefile.pear-packagefile"> <refnamediv> <refname> constructor <function>PEAR_PackageFile::PEAR_PackageFile</function> </refname> <refpurpose>PEAR_PackageFile</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> void constructor <function>PEAR_PackageFile::PEAR_PackageFile</function> </funcdef> <paramdef> PEAR_Config <parameter>&$config</parameter> </paramdef> <paramdef> bool <parameter> <optional>$debug = &false;</optional> </parameter> </paramdef> <paramdef> string <parameter> <optional>$tmpdir = &false;</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.pear-packagefile.desc"> &title.desc; <para> Prepare for parsing one or more package.xml files. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.pear-packagefile.param"> &title.param; <para> <variablelist> <varlistentry> <term> <link linkend="core.ppm.pear-config"><classname>PEAR_Config</classname></link> <parameter>&$config</parameter> </term> <listitem> <para> The configuration to use for parsing and channel registry (needed for channel-specific validators). </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$debug</parameter> </term> <listitem> <para> The debug logging level (this is usually the value of the <literal>verbose</literal> configuration variable). </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$tmpdir</parameter> </term> <listitem> <para> The temporary directory to extract files in. By default, a new temporary directory is created using <link linkend="core.pear.system.mktemp"><function>System::mktemp</function></link>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.pear-packagefile.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.pear-packagefile.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/rawreturn.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/rawreturn.xml +++ peardoc/en/core/ppm/pear-packagefile/rawreturn.xml <refentry id="core.ppm.pear-packagefile.rawreturn"> <refnamediv> <refname> <function>PEAR_PackageFile::rawReturn</function> </refname> <refpurpose>Turn off validation - return a parsed package.xml without checking it for errors</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> void <function>PEAR_PackageFile::rawReturn</function> </funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.rawreturn.desc"> &title.desc; <para>This is used by the package-validate command</para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.rawreturn.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.rawreturn.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-packagefile/setlogger.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-packagefile/setlogger.xml +++ peardoc/en/core/ppm/pear-packagefile/setlogger.xml <refentry id="core.ppm.pear-packagefile.setlogger"> <refnamediv> <refname> <function>PEAR_PackageFile::setLogger</function> </refname> <refpurpose>setLogger</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once '/PackageFile.php';</funcsynopsisinfo> <funcprototype> <funcdef> void <function>PEAR_PackageFile::setLogger</function> </funcdef> <paramdef> PEAR_Common <parameter>&$l</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-packagefile.setlogger.desc"> &title.desc; <para> set a logging class that matches the signature of <classname>PEAR_Common</classname>'s <link linkend="core.ppm.pear-common.log"><function>log</function></link> method. </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.setlogger.param"> &title.param; <para> <variablelist> <varlistentry> <term> <link linkend="core.ppm.pear-common"><classname>PEAR_Common</classname></link> <parameter>&$l</parameter> </term> <listitem> <para> The PEAR_Common object. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.setlogger.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-packagefile.setlogger.note"> &title.note; ¬e.notstatic; </refsect1> </refentry>