cvs: peardoc /en/package pear.xml /en/package/pear pear-packagefilemanager.xml /en/package/pear/pear-packagefilemanager constants.xml globals.xml
/en/package/pear/pear-packagefilemanager/pear-packagefilemanager addconfigureoption.xml adddependency.xml addmaintainer.xml addplatformexception.xml
addreplacement.xml addrole.xml debugpackagefile.xml pear_packagefilemanager.xml raiseerror.xml setoptions.xml writepackagefile.xml
/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs dirlist.xml
/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file dirlist.xml getfilelist.xml pear_packagefilemanager_file.xml

From: Date: Sat, 26 Jul 2003 05:52:16 +0000
Subject: cvs: peardoc /en/package pear.xml /en/package/pear pear-packagefilemanager.xml /en/package/pear/pear-packagefilemanager constants.xml globals.xml
/en/package/pear/pear-packagefilemanager/pear-packagefilemanager addconfigureoption.xml adddependency.xml addmaintainer.xml addplatformexception.xml
addreplacement.xml addrole.xml debugpackagefile.xml pear_packagefilemanager.xml raiseerror.xml setoptions.xml writepackagefile.xml
/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs dirlist.xml
/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file dirlist.xml getfilelist.xml pear_packagefilemanager_file.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-1107@lists.php.net to get a copy of this message
cellog Sat Jul 26 01:52:16 2003 EDT Added files: /peardoc/en/package/pear pear-packagefilemanager.xml /peardoc/en/package/pear/pear-packagefilemanager constants.xml globals.xml /peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager addconfigureoption.xml adddependency.xml addmaintainer.xml addplatformexception.xml addreplacement.xml addrole.xml debugpackagefile.xml pear_packagefilemanager.xml raiseerror.xml setoptions.xml writepackagefile.xml /peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs dirlist.xml /peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file dirlist.xml getfilelist.xml pear_packagefilemanager_file.xml Modified files: /peardoc/en/package pear.xml Log: adding documentation for PEAR_PackageFileManager (generated by phpDocumentor 1.2.2 :)

Index: peardoc/en/package/pear.xml diff -u peardoc/en/package/pear.xml:1.1 peardoc/en/package/pear.xml:1.2 --- peardoc/en/package/pear.xml:1.1 Fri Apr 25 18:29:03 2003 +++ peardoc/en/package/pear.xml Sat Jul 26 01:52:16 2003 @@ -6,6 +6,7 @@ </para> &package.pear.pear-info; + &package.pear.pear-packagefilemanager; </chapter> <!-- Keep this comment at the end of the file Index: peardoc/en/package/pear/pear-packagefilemanager.xml +++ peardoc/en/package/pear/pear-packagefilemanager.xml <sect1 id="package.pear.pear-packagefilemanager"> <title>PEAR_PackageFileManager</title> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-summary"> <refnamediv> <refname>Class Summary <function>PEAR_PackageFileManager</function></refname> <refpurpose>PEAR :: PackageGenerate updates the &lt;filelist&gt;&lt;/filelist&gt; section of a PEAR package.xml file to reflect the current files in preparation for a release.</refpurpose> </refnamediv> <refsect1> <title>PEAR :: PackageGenerate updates the &lt;filelist&gt;&lt;/filelist&gt; section of a PEAR package.xml file to reflect the current files in preparation for a release.</title> <para>The PEAR_PackageGenerate class uses a plugin system to generate the list of files in a package. This allows both standard recursive directory parsing (plugin type file) and more intelligent options such as the CVS browser PEAR_PackageFileManager_Cvs, which grabs all files in a local CVS checkout to create the list, ignoring any other local files.</para><para>Other options include specifying roles for file extensions (all .php files are role=&quot;php&quot;, for example), roles for directories (all directories named &quot;tests&quot; are given role=&quot;tests&quot; by default), and exceptions. Exceptions are specific pathnames with * and ? wildcards that match a default role, but should have another. For example, perhaps a debug.tpl template would normally be data, but should be included in the docs role. Along these lines, to exclude files entirely, use the ignore option.</para><para>Required options for a release include version, baseinstalldir, state, and packagedirectory (the full path to the local location of the package to create a package.xml file for)</para><para>Example usage: <programlisting role="php-highlighted">1 &lt;?php 2 require_once('PEAR/PackageFileManager.php'); 3 $packagexml = new <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager">PEAR_PackageFileManager</link>; 4 $e = $packagexml-&gt;<link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions">setOptions</link>( 5 array('baseinstalldir' =&gt; 'PhpDocumentor', 6 'version' =&gt; '1.2.1', 7 'packagedirectory' =&gt; 'C:/Web Pages/chiara/phpdoc2/', 8 'state' =&gt; 'stable', 9 'filelistgenerator' =&gt; 'cvs', // generate from cvs, use file for directory 10 'notes' =&gt; 'We\'ve implemented many new and exciting features', 11 'ignore' =&gt; array('TODO', 'tests/'), // ignore TODO, all files in tests/ 12 'installexceptions' =&gt; array('phpdoc' =&gt; '/*'), // baseinstalldir =&quot;/&quot; for phpdoc 13 'dir_roles' =&gt; array('tutorials' =&gt; 'doc'), 14 'exceptions' =&gt; array('README' =&gt; 'doc', // README would be data, now is doc 15 'PHPLICENSE.txt' =&gt; 'doc'))); // same for the license 16 if (PEAR::isError($e)) { 17 echo $e-&gt;getMessage(); 18 die(); 19 } 20 $e = $test-&gt;<link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception">addPlatformException</link>('pear-phpdoc.bat', 'windows'); 21 if (PEAR::isError($e)) { 22 echo $e-&gt;getMessage(); 23 exit; 24 } 25 $packagexml-&gt;<link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole">addRole</link>('pkg', 'doc'); // add a new role mapping 26 if (PEAR::isError($e)) { 27 echo $e-&gt;getMessage(); 28 exit; 29 } 30 // replace @PHP-BIN@ in this file with the path to php executable! pretty neat 31 $e = $test-&gt;<link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement">addReplacement</link>('pear-phpdoc', 'pear-config', '@PHP-BIN@', 'php_bin'); 32 if (PEAR::isError($e)) { 33 echo $e-&gt;getMessage(); 34 exit; 35 } 36 $e = $test-&gt;<link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement">addReplacement</link>('pear-phpdoc.bat', 'pear-config', '@PHP-BIN@', 'php_bin'); 37 if (PEAR::isError($e)) { 38 echo $e-&gt;getMessage(); 39 exit; 40 } 41 // note use of - this is VERY important 42 if (isset($_GET['make']) || $_SERVER['argv'][2] == 'make') { 43 $e = $packagexml-&gt;<link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile">writePackageFile</link>(); 44 } else { 45 $e = $packagexml-&gt;<link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile">debugPackageFile</link>(); 46 } 47 if (PEAR::isError($e)) { 48 echo $e-&gt;getMessage(); 49 die(); 50 } 51 ?&gt; 52 53 In addition, a package.xml file can now be generated from 54 scratch, with the usage of new options package, summary, description, and 55 the use of the method </programlisting></para> </refsect1> <refsect1> <title>Class Trees for <function>PEAR_PackageFileManager</function></title> <para> <itemizedlist> <listitem><para> PEAR_PackageFileManager </para></listitem> </itemizedlist> </para> </refsect1> </refentry> &package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager; &package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption; &package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency; &package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer; &package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception; &package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement; &package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole; &package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile; &package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror; &package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions; &package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile; <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs-summary"> <refnamediv> <refname>Class Summary <classname>PEAR_PackageFileManager_CVS</classname></refname> <refpurpose>Generate a file list from a CVS checkout</refpurpose> </refnamediv> <refsect1> <title>Generate a file list from a CVS checkout</title> <para>Note that this will <emphasis>NOT</emphasis> work on a repository, only on a checked out CVS module</para> </refsect1> <refsect1> <title>Class Trees for <classname>PEAR_PackageFileManager_CVS</classname></title> <para> <itemizedlist> <listitem><para> <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-file-summary"><classname>PEAR_PackageFileManager_File</classname></link> <itemizedlist> <listitem><para> PEAR_PackageFileManager_CVS </para></listitem> </itemizedlist> </para></listitem> </itemizedlist> </para> <para> <classname>PEAR_PackageFileManager_CVS</classname> Inherited Methods </para> <para> <table> <title>Inherited from <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-file-summary"><classname>PEAR_PackageFileManager_File</classname></link></title> <tgroup cols="2"> <thead> <row> <entry>Method Name</entry> <entry>Summary</entry> </row> </thead> <tbody> <row> <entry> Constructor <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file"><function>PEAR_PackageFileManager_File::PEAR_PackageFileManager_File</function></link></entry> <entry>Set up the File filelist generator</entry> </row> <row> <entry> <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist"><function>PEAR_PackageFileManager_File::dirList</function></link></entry> <entry>Retrieve a listing of every file in $directory and all subdirectories.</entry> </row> <row> <entry> <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist"><function>PEAR_PackageFileManager_File::getFileList</function></link></entry> <entry>Generate the &lt;filelist&gt;&lt;/filelist&gt; section of the package file.</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> </refentry> &package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist; <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file-summary"> <refnamediv> <refname>Class Summary <function>PEAR_PackageFileManager_File</function></refname> <refpurpose>Retrieve the files from a directory listing</refpurpose> </refnamediv> <refsect1> <title>Retrieve the files from a directory listing</title> <para>This class is used to retrieve a raw directory listing. Use the <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs-summary"><classname>PEAR_PackageFileManager_CVS</classname></link> class to only retrieve the contents of a cvs repository when generating the package.xml</para> </refsect1> <refsect1> <title>Class Trees for <function>PEAR_PackageFileManager_File</function></title> <para> <itemizedlist> <listitem><para> PEAR_PackageFileManager_File </para></listitem> </itemizedlist> </para> <para> <table> <title>Classes that extend <function>PEAR_PackageFileManager_File</function></title> <tgroup cols="2"> <thead> <row> <entry>Class</entry> <entry>Summary</entry> </row> </thead> <tbody> <row> <entry><link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs-summary">PEAR_PackageFileManager_CVS</link></entry> <entry>Generate a file list from a CVS checkout</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> </refentry> &package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file; &package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist; &package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist; &package.pear.pear-packagefilemanager.constants &package.pear.pear-packagefilemanager.globals </sect1> <!-- Generated by phpDocumentor v 1.2.2 http://www.phpdoc.org --> <!-- 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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/constants.xml +++ peardoc/en/package/pear/pear-packagefilemanager/constants.xml <refentry id="package.pear.pear-packagefilemanager.constants"> <refnamediv> <refname>Package PEAR_PackageFileManager Constants</refname> <refpurpose>Constants defined in and used by PEAR_PackageFileManager</refpurpose> </refnamediv> <refsect1 id="package.pear.pear-packagefilemanager.constants.details"> <title>All Constants</title> <refsect2 id="package.pear.pear-packagefilemanager.constants.details.PackageFileManager---php.defines"> <title> Constants defined in PackageFileManager.php </title> <para> <table> <title>Constants defined in PackageFileManager.php</title> <tgroup cols="3"> <thead> <row> <entry>Name</entry> <entry>Value</entry> <entry>Line Number</entry> </row> </thead> <tbody> <row> <entry>PEAR_PACKAGEFILEMANAGER_ADD_MAINTAINERS</entry> <entry>18</entry> <entry>49</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_CANTCOPY_PKGFILE</entry> <entry>8</entry> <entry>39</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_CANTOPEN_TMPPKGFILE</entry> <entry>9</entry> <entry>40</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_CANTWRITE_PKGFILE</entry> <entry>6</entry> <entry>37</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_DEST_UNWRITABLE</entry> <entry>7</entry> <entry>38</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_DIR_DOESNT_EXIST</entry> <entry>12</entry> <entry>43</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_GENERATOR_NOTFOUND</entry> <entry>4</entry> <entry>35</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_GENERATOR_NOTFOUND_ANYWHERE</entry> <entry>5</entry> <entry>36</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_IGNORED_EVERYTHING</entry> <entry>20</entry> <entry>51</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_INVALID_PACKAGE</entry> <entry>21</entry> <entry>52</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_INVALID_REPLACETYPE</entry> <entry>22</entry> <entry>53</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_INVALID_ROLE</entry> <entry>23</entry> <entry>54</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_NOBASEDIR</entry> <entry>3</entry> <entry>34</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_NOCVSENTRIES</entry> <entry>11</entry> <entry>42</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_NODESC</entry> <entry>17</entry> <entry>48</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_NOPACKAGE</entry> <entry>14</entry> <entry>45</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_NOPKGDIR</entry> <entry>3</entry> <entry>33</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_NOSTATE</entry> <entry>1</entry> <entry>31</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_NOSUMMARY</entry> <entry>16</entry> <entry>47</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_NOVERSION</entry> <entry>2</entry> <entry>32</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_NO_FILES</entry> <entry>19</entry> <entry>50</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_PATH_DOESNT_EXIST</entry> <entry>10</entry> <entry>41</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_RUN_SETOPTIONS</entry> <entry>13</entry> <entry>44</entry> </row> <row> <entry>PEAR_PACKAGEFILEMANAGER_WRONG_MROLE</entry> <entry>15</entry> <entry>46</entry> </row> </tbody> </tgroup> </table> </para> </refsect2> </refsect1> </refentry> <!-- Generated by phpDocumentor v 1.2.2 http://www.phpdoc.org --> <!-- 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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/globals.xml +++ peardoc/en/package/pear/pear-packagefilemanager/globals.xml <refentry id="package.pear.pear-packagefilemanager.globals"> <refnamediv> <refname>Package PEAR_PackageFileManager Global Variables</refname> <refpurpose>Global Variables defined in and used by PEAR_PackageFileManager</refpurpose> </refnamediv> <refsect1 id="package.pear.pear-packagefilemanager.globals.details"> <title>All Global Variables</title> <refsect2 id="package.pear.pear-packagefilemanager.globals.details.PackageFileManager---php.globals"> <title> Global Variables defined in PackageFileManager.php </title> <para> <table> <title>Global Variables defined in PackageFileManager.php</title> <tgroup cols="3"> <thead> <row> <entry>Name</entry> <entry>Value</entry> <entry>Line Number</entry> </row> </thead> <tbody> <row> <entry>$GLOBALS['_PEAR_PACKAGEFILEMANAGER_ERRORS']</entry> <entry><programlisting role="php-highlighted">1 array( 2 'en' =&gt; 3 array( 4 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_NOSTATE</link> =&gt; 5 'Release State (option \'state\') must by specified in PEAR_PackageFileManager setOptions (alpha|beta|stable)', 6 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_NOVERSION</link> =&gt; 7 'Release Version (option \'version\') must be specified in PEAR_PackageFileManager setOptions', 8 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_NOPKGDIR</link> =&gt; 9 'Package source base directory (option \'packagedirectory\') must be ' . 10 'specified in PEAR_PackageFileManager setOptions', 11 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_NOPKGDIR</link> =&gt; 12 'Package install base directory (option \'baseinstalldir\') must be ' . 13 'specified in PEAR_PackageFileManager setOptions', 14 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_GENERATOR_NOTFOUND</link> =&gt; 15 'Base class &quot;%s&quot; can\'t be located', 16 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_GENERATOR_NOTFOUND_ANYWHERE</link> =&gt; 17 'Base class &quot;%s&quot; can\'t be located in default or user-specified directories', 18 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_CANTWRITE_PKGFILE</link> =&gt; 19 'Failed to write package.xml file to destination directory', 20 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_DEST_UNWRITABLE</link> =&gt; 21 'Destination directory &quot;%s&quot; is unwritable', 22 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_CANTCOPY_PKGFILE</link> =&gt; 23 'Failed to copy package.xml.tmp file to package.xml', 24 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_CANTOPEN_TMPPKGFILE</link> =&gt; 25 'Failed to open temporary file &quot;%s&quot; for writing', 26 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_PATH_DOESNT_EXIST</link> =&gt; 27 'package.xml file path &quot;%s&quot; doesn\'t exist or isn\'t a directory', 28 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_NOCVSENTRIES</link> =&gt; 29 'Directory &quot;%s&quot; is not a CVS directory (it must have the CVS/Entries file)', 30 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_DIR_DOESNT_EXIST</link> =&gt; 31 'Package source base directory &quot;%s&quot; doesn\'t exist or isn\'t a directory', 32 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_RUN_SETOPTIONS</link> =&gt; 33 'Run $managerclass-&gt;setOptions() before any other methods', 34 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_NOPACKAGE</link> =&gt; 35 'Package Name (option \'package\') must by specified in PEAR_PackageFileManager '. 36 'setOptions to create a new package.xml', 37 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_NOSUMMARY</link> =&gt; 38 'Package Summary (option \'summary\') must by specified in PEAR_PackageFileManager' . 39 ' setOptions to create a new package.xml', 40 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_NODESC</link> =&gt; 41 'Detailed Package Description (option \'description\') must be' . 42 ' specified in PEAR_PackageFileManager constructor to create a new package.xml', 43 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_WRONG_MROLE</link> =&gt; 44 'Maintainer role must be one of &quot;%s&quot;, was &quot;%s&quot;', 45 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_ADD_MAINTAINERS</link> =&gt; 46 'Add maintainers to a package before generating the package.xml', 47 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_NO_FILES</link> =&gt; 48 'No files found, check the path &quot;%s&quot;', 49 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_IGNORED_EVERYTHING</link> =&gt; 50 'No files left, check the path &quot;%s&quot; and ignore option &quot;%s&quot;', 51 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_INVALID_PACKAGE</link> =&gt; 52 'Package validation failed:%s%s', 53 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_INVALID_REPLACETYPE</link> =&gt; 54 'Replacement Type must be one of &quot;%s&quot;, was passed &quot;%s&quot;', 55 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_INVALID_ROLE</link> =&gt; 56 'Invalid file role passed to addRole, must be one of &quot;%s&quot;, was passed &quot;%s&quot;', 57 ),) </programlisting></entry> <entry>60</entry> </row> </tbody> </tgroup> </table> </para> </refsect2> </refsect1> </refentry> <!-- Generated by phpDocumentor v --> <!-- 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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption"> <refnamediv> <refname><function>PEAR_PackageFileManager::addConfigureOption</function></refname> <refpurpose>Add an install-time configuration option for building of source</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::addConfigureOption</function></funcdef> <paramdef>string <parameter>$name</parameter></paramdef> <paramdef>string <parameter>$prompt</parameter></paramdef> <paramdef>string <parameter> <optional>$default = null</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption.desc"> &title.desc; <para>This option is only useful to PECL projects that are built upon installation</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$name</parameter> </term> <listitem> <para> name of the option </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$prompt</parameter> </term> <listitem> <para> prompt to display to the user </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$default</parameter> </term> <listitem> <para> default value </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption.throws"> &title.throws; <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_RUN_SETOPTIONS </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency"> <refnamediv> <refname><function>PEAR_PackageFileManager::addDependency</function></refname> <refpurpose>Add a dependency on another package, or an extension/php</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::addDependency</function></funcdef> <paramdef>string <parameter>$name</parameter></paramdef> <paramdef>string <parameter> <optional>$version = false</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$operator = 'ge'</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$type = 'pkg'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency.desc"> &title.desc; <para>This will overwrite an existing dependency if it is found. In other words, if a dependency on PHP 4.1.0 exists, and addDependency('php', '4.3.0', 'ge', 'php') is called, the existing dependency on PHP 4.1.0 will be overwritten with the new one on PHP 4.3.0</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$name</parameter> </term> <listitem> <para> Dependency element name </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$version</parameter> </term> <listitem> <para> Dependency version </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$operator</parameter> </term> <listitem> <para> A specific operator for the version, this can be one of: 'has', 'not', 'lt', 'le', 'eq', 'ne', 'ge', or 'gt' </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$type</parameter> </term> <listitem> <para> Dependency type. This can be one of: 'pkg', 'ext', 'php', 'prog', 'os', 'sapi', or 'zend' </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency.throws"> &title.throws; <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_RUN_SETOPTIONS </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer"> <refnamediv> <refname><function>PEAR_PackageFileManager::addMaintainer</function></refname> <refpurpose>Add a maintainer to the list of maintainers.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addMaintainer</function></funcdef> <paramdef>string <parameter>$handle</parameter></paramdef> <paramdef>lead|developer|contributor|helper <parameter>$role</parameter></paramdef> <paramdef>string <parameter>$name</parameter></paramdef> <paramdef>string <parameter>$email</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer.desc"> &title.desc; <para>Every maintainer must have a valid account at pear.php.net. The first parameter is the account name (for instance, cellog is the handle for Greg Beaver at pear.php.net). Every maintainer has one of four possible roles: <itemizedlist><listitem><para>lead: the primary maintainer</para></listitem><listitem><para>developer: an important developer on the project</para></listitem><listitem><para>contributor: self-explanatory</para></listitem><listitem><para>helper: ditto</para></listitem></itemizedlist> Finally, specify the name and email of the maintainer</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$handle</parameter> </term> <listitem> <para> username on pear.php.net of maintainer </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type>lead|developer|contributor|helper</type> <parameter>$role</parameter> </term> <listitem> <para> role of maintainer </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$name</parameter> </term> <listitem> <para> full name of maintainer </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$email</parameter> </term> <listitem> <para> email address of maintainer </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception"> <refnamediv> <refname><function>PEAR_PackageFileManager::addPlatformException</function></refname> <refpurpose>Add an install-time platform conditional install for a file</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addPlatformException</function></funcdef> <paramdef>string <parameter>$path</parameter></paramdef> <paramdef>string <parameter>$platform</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception.desc"> &title.desc; <para>The format of the platform string must be OS-version-cpu-extra if any more specific information is needed, and the OS must be in lower case as in &quot;windows.&quot; The match is performed using a regular expression, but uses * and ? wildcards instead of .* and .?. Note that hpux/aix/irix/linux are all exclusive. To select non-windows, use (*ix|*ux)</para><para>This information is based on eyeing the source for OS/Guess.php, so if you are unsure of what to do, read that file.</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$path</parameter> </term> <listitem> <para> relative path of file (relative to packagedirectory option) </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$platform</parameter> </term> <listitem> <para> platform descriptor string </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement"> <refnamediv> <refname><function>PEAR_PackageFileManager::addReplacement</function></refname> <refpurpose>Add a replacement option for a file</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addReplacement</function></funcdef> <paramdef>string <parameter>$path</parameter></paramdef> <paramdef>string <parameter>$type</parameter></paramdef> <paramdef>string <parameter>$from</parameter></paramdef> <paramdef>string <parameter>$to</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement.desc"> &title.desc; <para>This sets an install-time complex search-and-replace function allowing the setting of platform-specific variables in an installed file.</para><para>if $type is php-const, then $to must be the name of a PHP Constant. If $type is pear-config, then $to must be the name of a PEAR config variable accessible through a PEAR_Config::get() method. If type is package-info, then $to must be the name of a section from the package.xml file used to install this file.</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$path</parameter> </term> <listitem> <para> relative path of file (relative to packagedirectory option) </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$type</parameter> </term> <listitem> <para> variable type, either php-const, pear-config or package-info </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$from</parameter> </term> <listitem> <para> text to replace in the source file </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$to</parameter> </term> <listitem> <para> variable name to use for replacement </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement.throws"> &title.throws; <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_INVALID_REPLACETYPE </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole"> <refnamediv> <refname><function>PEAR_PackageFileManager::addRole</function></refname> <refpurpose>Add an extension/role mapping to the role mapping option</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addRole</function></funcdef> <paramdef>string <parameter>$extension</parameter></paramdef> <paramdef>string <parameter>$role</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole.desc"> &title.desc; <para>Roles influence both where a file is installed and how it is installed. Files with role=&quot;data&quot; are in a completely different directory hierarchy from the program files of role=&quot;php&quot;</para><para>In PEAR 1.2b2, these roles are <itemizedlist><listitem><para>php (most common)</para></listitem><listitem><para>data</para></listitem><listitem><para>doc</para></listitem><listitem><para>test</para></listitem><listitem><para>script (gives the file an executable attribute)</para></listitem><listitem><para>src</para></listitem></itemizedlist></para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$extension</parameter> </term> <listitem> <para> file extension </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$role</parameter> </term> <listitem> <para> role </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole.throws"> &title.throws; <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_INVALID_ROLE </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile"> <refnamediv> <refname><function>PEAR_PackageFileManager::debugPackageFile</function></refname> <refpurpose>ALWAYS use this to test output before overwriting your package.xml!!</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::debugPackageFile</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile.desc"> &title.desc; <para>This method instructs writePackageFile() to simply print the package.xml to output, either command-line or web-friendly (this is automatic based on the existence of $_SERVER['PATH_TRANSLATED']</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile"><function>PEAR_PackageFileManager::writePackageFile</function></link> - calls with the debug parameter set based on whether it is called from the command-line or web interface </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager"> <refnamediv> <refname>constructor <function>PEAR_PackageFileManager::PEAR_PackageFileManager</function></refname> <refpurpose>Does nothing, use setOptions</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void constructor <function>PEAR_PackageFileManager::PEAR_PackageFileManager</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager.desc"> &title.desc; <para>The constructor is not used in order to be able to return a PEAR_Error from setOptions</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions"><function>PEAR_PackageFileManager::setOptions</function></link> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror"> <refnamediv> <refname><function>PEAR_PackageFileManager::raiseError</function></refname> <refpurpose>Utility function to shorten error generation code</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>PEAR_Error <function>PEAR_PackageFileManager::raiseError</function></funcdef> <paramdef>mixed <parameter>$code</parameter></paramdef> <paramdef>mixed <parameter> <optional>$i1 = ''</optional></parameter></paramdef> <paramdef>mixed <parameter> <optional>$i2 = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror.desc"> &title.desc; <para><programlisting role="php-highlighted">1 function <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror">raiseError</link>($code, $i1 = '', $i2 = '') 2 { 3 return PEAR::<link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror">raiseError</link>('PEAR_PackageFileManager Error: ' . 4 <ulink url="http://www.php.net/sprintf">sprintf</ulink>($GLOBALS['_PEAR_PACKAGEFILEMANAGER_ERRORS'][$this-&gt;_options['lang']][$code], 5 $i1, $i2)); 6 } </programlisting></para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$code</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$i1</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$i2</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror.static"> <title>static</title> <para> <emphasis>static</emphasis> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions"> <refnamediv> <refname><function>PEAR_PackageFileManager::setOptions</function></refname> <refpurpose>Set package.xml generation options</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::setOptions</function></funcdef> <paramdef>array <parameter> <optional>$options = array()</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions.desc"> &title.desc; <para>The options array is indexed as follows: <programlisting role="php-highlighted">1 $options = array('option_name' =&gt; &lt;optionvalue&gt;); </programlisting></para><para>The documentation below simplifies this description through the use of option_name without quotes</para><para>Configuration options: <itemizedlist><listitem><para>lang: lang controls the language in which error messages are displayed. There are currently only English error messages, but any contributed will be added over time.&lt;br&gt; Possible values: en (default)</para></listitem><listitem><para>packagefile: the name of the packagefile, defaults to package.xml</para></listitem><listitem><para>pathtopackagefile: the path to an existing package file to read in, if different from the packagedirectory</para></listitem><listitem><para>packagedirectory: the path to the base directory of the package. For package PEAR_PackageFileManager, this path is /path/to/pearcvs/pear/PEAR_PackageFileManager where /path/to/pearcvs is a local path on your hard drive</para></listitem><listitem><para>outputdirectory: the path in which to place the generated package.xml by default, this is ignored, and the package.xml is created in the packagedirectory</para></listitem><listitem><para>filelistgenerator: the &lt;filelist&gt; section plugin which will be used. In this release, there are two generator plugins, file and cvs. For details, see the docs for these plugins</para></listitem><listitem><para>usergeneratordir: For advanced users. If you write your own filelist generator plugin, use this option to tell PEAR_PackageFileManager where to find the file that contains it. If the plugin is named foo, the class must be named PEAR_PackageFileManager_Foo no matter where it is located. By default, the Foo plugin is located in PEAR/PackageFileManager/Foo.php. If you pass /path/to/foo in this option, setOptions will look for PEAR_PackageFileManager_Foo in /path/to/foo/Foo.php</para></listitem><listitem><para>doctype: Specifies the DTD of the package.xml file. Default is http://pear.php.net/dtd/package-1.0</para></listitem><listitem><para>pearcommonclass: Specifies the name of the class to instantiate, default is PEAR_Common, but users can override this with a custom class that implements PEAR_Common's method interface</para></listitem></itemizedlist> package.xml simple options: <itemizedlist><listitem><para>baseinstalldir: The base directory to install this package in. For package PEAR_PackageFileManager, this is &quot;PEAR&quot;, for package PEAR, this is &quot;/&quot;</para></listitem><listitem><para>license: The license this release is released under. Default is PHP License if left unspecified</para></listitem><listitem><para>notes: Release notes, any text describing what makes this release unique</para></listitem><listitem><para>changelognotes: notes for the changelog, this should be more detailed than the release notes. By default, PEAR_PackageFileManager uses the notes option for the changelog as well</para></listitem><listitem><para>version: The version number for this release. Remember the convention for numbering: initial alpha is between 0 and 1, add b&lt;beta number&gt; for beta as in 1.0b1, the integer portion of the version should specify backwards compatibility, as in 1.1 is backwards compatible with 1.0, but 2.0 is not backwards compatible with 1.10. Also note that 1.10 is a greater release version than 1.1 (think of it as &quot;one point ten&quot; and &quot;one point one&quot;). Bugfix releases should be a third decimal as in 1.0.1, 1.0.2</para></listitem><listitem><para>package: [optional] Package name. Use this to create a new package.xml, or overwrite an existing one from another package used as a template</para></listitem><listitem><para>summary: [optional] Summary of package purpose</para></listitem><listitem><para>description: [optional] Description of package purpose. Note that the above three options are not optional when creating a new package.xml from scratch</para></listitem></itemizedlist><emphasis>WARNING</emphasis>: all complex options that require a file path are case-sensitive</para><para>package.xml complex options: <itemizedlist><listitem><para>ignore: an array of filenames, directory names, or wildcard expressions specifying files to exclude entirely from the package.xml. Wildcards are operating system wildcards * and ?. file*foo.php will exclude filefoo.php, fileabrfoo.php and filewho_is_thisfoo.php. file?foo.php will exclude fileafoo.php and will not exclude fileaafoo.php. test/ will exclude all directories and subdirectories of ANY directory named test encountered in directory parsing. *test* will exclude all files and directories that contain test in their name</para></listitem><listitem><para>roles: this is an array mapping file extension to install role. This specifies default behavior that can be overridden by the exceptions option and dir_roles option. use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole"><function>addRole</function></link></para></listitem></itemizedlist> to add a new role to the pre-existing array <itemizedlist><listitem><para>dir_roles: this is an array mapping directory name to install role. All files in a directory whose name matches the directory will be given the install role specified. Single files can be excluded from this using the exceptions option. The directory should be a relative path from the baseinstalldir, or &quot;/&quot; for the baseinstalldir</para></listitem><listitem><para>exceptions: specify file role for specific files. This array maps all files matching the exact name of a file to a role as in &quot;file.ext&quot; =&gt; &quot;role&quot;</para></listitem><listitem><para>deps: dependency array. Pass in an empty array to clear all dependencies, and use</para></listitem></itemizedlist> <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency"><function>addDependency</function></link> to add new ones/replace existing ones <itemizedlist><listitem><para>maintainers: maintainers array. Pass in an empty array to clear all maintainers, and use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer"><function>addMaintainer</function></link></para></listitem></itemizedlist> to add a new maintainer/replace existing maintainer <itemizedlist><listitem><para>installexceptions: array mapping of specific filenames to baseinstalldir values. Use this to force the installation of a file into another directory, such as forcing a script to be in the root scripts directory so that it will be in the path. The filename must be a relative path to the packagedirectory</para></listitem><listitem><para>platformexceptions: array mapping of specific filenames to the platform they should be installed on. Use this to specify unix-only files or windows-only files. The format of the platform string must be OS-version-cpu-extra if any more specific information is needed, and the OS must be in lower case as in &quot;windows.&quot; The match is performed using a regular expression, but uses * and ? wildcards instead of .* and .?. Note that hpux/aix/irix/linux are all exclusive. To select non-windows, use (*ix|*ux)</para></listitem><listitem><para>installas: array mapping of specific filenames to the filename they should be installed as. Use this to specify new filenames for files that should be installed. This will often be used in conjunction with platformexceptions if there are two files for different OSes that must have the same name when installed.</para></listitem><listitem><para>replacements: array mapping of specific filenames to complex text search-and-replace that should be performed upon install. The format is: &lt;pre&gt; filename =&gt; array('type' =&gt; php-const|pear-config|package-info 'from' =&gt; text in file 'to' =&gt; name of variable) &lt;/pre&gt; if type is php-const, then 'to' must be the name of a PHP Constant. If type is pear-config, then 'to' must be the name of a PEAR config variable accessible through a PEAR_Config class-&gt;get() method. If type is package-info, then 'to' must be the name of a section from the package.xml file used to install this file.</para></listitem><listitem><para>configure_options: array specifies build options for PECL packages (you should probably use PECL_Gen instead, but it's here for completeness)</para></listitem></itemizedlist></para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.array; <parameter>$options</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions.throws"> &title.throws; <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_NOBASEDIR </para> <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_GENERATOR_NOTFOUND_ANYWHERE </para> <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_GENERATOR_NOTFOUND </para> <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_NOPKGDIR </para> <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_NOVERSION </para> <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_NOSTATE </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs-summary"><classname>PEAR_PackageFileManager_CVS</classname></link> </para> <para> <emphasis>see</emphasis> <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-file-summary"><classname>PEAR_PackageFileManager_File</classname></link> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile"> <refnamediv> <refname><function>PEAR_PackageFileManager::writePackageFile</function></refname> <refpurpose>Writes the package.xml file out with the newly created &lt;release&gt;&lt;/release&gt; tag</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::writePackageFile</function></funcdef> <paramdef>boolean <parameter> <optional>$debuginterface = null</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile.desc"> &title.desc; <para>ALWAYS use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile"><function>debugPackageFile</function></link> to verify that output is correct before overwriting your package.xml</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.bool; <parameter>$debuginterface</parameter> </term> <listitem> <para> null if no debugging, true if web interface, false if command-line </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile.throws"> &title.throws; <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_DEST_UNWRITABLE </para> <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_CANTOPEN_TMPPKGFILE </para> <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_CANTCOPY_PKGFILE </para> <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_ADD_MAINTAINERS </para> <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_CANTWRITE_PKGFILE </para> <para> <emphasis>throws</emphasis> PEAR_PACKAGEFILEMANAGER_RUN_SETOPTIONS </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile"><function>PEAR_PackageFileManager::debugPackageFile</function></link> - calls with the debug parameter set based on whether it is called from the command-line or web interface </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist"> <refnamediv> <refname><function>PEAR_PackageFileManager_CVS::dirList</function></refname> <refpurpose>Return a list of all files in the CVS repository</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager/Cvs.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>PEAR_PackageFileManager_CVS::dirList</function></funcdef> <paramdef>string <parameter>$directory</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist.desc"> &title.desc; <para>This function is like <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist"><function>parent::dirList</function></link> except that instead of retrieving a regular filelist, it first retrieves a listing of all the CVS/Entries files in $directory and all of the subdirectories. Then, it reads the Entries file, and creates a listing of files that are a part of the CVS repository. No check is made to see if they have been modified, but newly added or removed files are ignored.</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$directory</parameter> </term> <listitem> <para> full path to the directory you want the list of </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist.returns"> &title.returns; <para> <emphasis>returns</emphasis> list of files in a directory </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist.see"> &title.see; <para> <emphasis>see</emphasis> _readCVSEntries() </para> <para> <emphasis>see</emphasis> _recurDirList() </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist"> <refnamediv> <refname><function>PEAR_PackageFileManager_File::dirList</function></refname> <refpurpose>Retrieve a listing of every file in $directory and all subdirectories.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager/File.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>PEAR_PackageFileManager_File::dirList</function></funcdef> <paramdef>string <parameter>$directory</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist.desc"> &title.desc; <para>The return format is an array of full paths to files</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$directory</parameter> </term> <listitem> <para> full path to the directory you want the list of </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist.returns"> &title.returns; <para> <emphasis>returns</emphasis> list of files in a directory </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist"> <refnamediv> <refname><function>PEAR_PackageFileManager_File::getFileList</function></refname> <refpurpose>Generate the &lt;filelist&gt;&lt;/filelist&gt; section of the package file.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager/File.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>PEAR_PackageFileManager_File::getFileList</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist.desc"> &title.desc; <para>This function performs the backend generation of the array containing all files in this package</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist.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 --> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file"> <refnamediv> <refname>constructor <function>PEAR_PackageFileManager_File::PEAR_PackageFileManager_File</function></refname> <refpurpose>Set up the File filelist generator</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PackageFileManager/File.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void constructor <function>PEAR_PackageFileManager_File::PEAR_PackageFileManager_File</function></funcdef> <paramdef>PEAR_PackageFileManager <parameter>&$parent</parameter></paramdef> <paramdef>array <parameter>$options</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file.desc"> &title.desc; <para>'ignore' is the only option that this class uses. See <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions"><function>PEAR_PackageFileManager::setOptions</function></link> for more information and formatting of this option</para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type>PEAR_PackageFileManager</type> <parameter>&$parent</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$options</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file.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 -->
« previous php.pear.doc (#1107) next »