cvs: peardoc /en/package/pear/pear-info faq.xml whatsnew.xml
| From: | Laurent Laville | Date: | Thu, 17 Jan 2008 09:59:16 +0000 |
| Subject: | cvs: peardoc /en/package/pear/pear-info faq.xml whatsnew.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-10413@lists.php.net to get a copy of this message | ||
farell Thu Jan 17 09:59:16 2008 UTC
Added files:
/peardoc/en/package/pear/pear-info faq.xml whatsnew.xml
Log:
add a FAQ and an history version list
http://cvs.php.net/viewvc.cgi/peardoc/en/package/pear/pear-info/faq.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-info/faq.xml +++ peardoc/en/package/pear/pear-info/faq.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-info.faq"> <refnamediv> <refname>FAQ</refname> <refpurpose>Answers to most Frequently Asked Questions</refpurpose> </refnamediv> <refsect1 id="package.pear.pear-info.faq.content"> <title>PEAR_Info FAQ</title> <qandaset> <qandadiv><title>General questions</title> <qandaentry> <question> <para>What does it cost ?</para> </question> <answer> <para> You can download and use it for free. But don't delete the copyright notice. You can read terms of the <ulink url="&url.license.php;3_01.txt">PHP license</ulink>. </para> </answer> </qandaentry> <qandaentry> <question> <para>Do you offer support ?</para> </question> <answer> <para> YES if there is no answer in this Guide and if you are ready to share some informations such as : your configuration (platform Win *nix mac, PHP version, PEAR packages installed) and perharps your script. </para> </answer> </qandaentry> <qandaentry> <question> <para>I found a bug, what shall I do ?</para> </question> <answer> <para> You can report it with the bug tracker at <ulink url="&url.pear.package;PEAR_Info/bugs">PEAR</ulink>. </para> </answer> </qandaentry> <qandaentry> <question> <para>What is PEAR ?</para> </question> <answer> <para> PEAR (an acronym for <emphasis role="bold">P</emphasis>HP <emphasis role="bold">E</emphasis>xtension and <emphasis role="bold">A</emphasis>pplication <emphasis role="bold">R</emphasis>epository) is a framework and distribution system for reusable PHP components. </para> <para> Don't forget to read also the <ulink url="&url.pear.manual;en">PEAR Manual</ulink> and <ulink url="&url.pear.manual;en/faq.php">PEAR FAQ</ulink>. </para> </answer> </qandaentry> </qandadiv> <qandadiv><title>How to</title> <qandaentry> <question> <para> I want to display my system configuration, but this one is not detected ? </para> </question> <answer> <para> If your system file (see command <command>pear config-show</command>) does not exists, or is locate in another directory, then you should give this information on PEAR_Info class constructor. </para> <para> <programlisting role="php"> <![CDATA[ <?php // @link http://pear.php.net/bugs/bug.php?id=12878 // Search for pear.conf inside /etc/pear/ require_once 'PEAR/Info.php'; $pear_dir = ''; $user_file = ''; $syst_file = '/etc/pear/pear.conf'; $info = new PEAR_Info($pear_dir, $user_file, $syst_file); $info->display(); ?> ]]> </programlisting> </para> </answer> </qandaentry> <qandaentry> <question> <para> I want to change the look an feel (colors) of PEAR_Info output ? </para> </question> <answer> <para> First copy the default stylesheet named <filename>pearinfo.css</filename> (locate in <filename class='directory'>{data_dir}/PEAR_Info</filename> : see command <command>pear config-show</command>) as a pattern. Then second, change colors and whatever you want until you keep all CSS selectors. </para> <para> See for example the blue layout pattern skin locate in package installation under name <filename>{doc_dir}/PEAR_Info/examples/blueskin.css</filename>. </para> <para> Last, as <filename>{doc_dir}/PEAR_Info/examples/pear_info2.php</filename> script, set the new stylesheet with <methodname>PEAR_Info::setStyleSheet</methodname>. <programlisting role="php"> <![CDATA[ <?php require_once 'PEAR/Info.php'; $info = new PEAR_Info(); $info->setStyleSheet(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'blueskin.css'); $info->display(); ?> ]]> </programlisting> </para> </answer> </qandaentry> <qandaentry> <question> <para>I want to display packages from all my channels ? </para> </question> <answer> <para> By default PEAR_Info display only informations from <literal>pear.php.net</literal> channel. </para> <para> To remove this limit, give as option to the class constructor an empty channels list, as below : <programlisting role="php"> <![CDATA[ <?php require_once 'PEAR/Info.php'; $pear_dir = ''; $user_file = ''; $syst_file = '/opt/lampp/etc/pear.conf'; $options = array('channels' => array() ); $info = new PEAR_Info($pear_dir, $user_file, $syst_file, $options); $info->display(); ?> ]]> </programlisting> </para> <para> <note> If you want to filter package listing from a channel list, then give the full qualified list; something like : <para> <programlisting role="php"> <![CDATA[ <?php $options = array('channels' => array('pear.php.net', 'pear.phpunit.de', '__uri') ); ?> ]]> </programlisting> </para> </note> </para> </answer> </qandaentry> <qandaentry> <question> <para> I want to check if a package is installed or not ? </para> </question> <answer> <para> With static method <methodname>PEAR_Info::packageInstalled</methodname>, you can check installation of a package from all channels declared, and also filter by version. </para> <para> <programlisting role="php"> <![CDATA[ <?php require_once 'PEAR/Info.php'; $inst = PEAR_Info::packageInstalled('Role_Web', '1.1.0', 'pearified'); if ($inst === false) { echo 'sorry it seems that "pearified/Role_Web" package is not installed' . ' or version is less than 1.1.0'; } ?> ]]> </programlisting> </para> </answer> </qandaentry> </qandadiv> </qandaset> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/pear/pear-info/whatsnew.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-info/whatsnew.xml +++ peardoc/en/package/pear/pear-info/whatsnew.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-info.whatsnew"> <refnamediv> <refname>News</refname> <refpurpose>What is New in version ?</refpurpose> </refnamediv> <refsect1 id="package.pear.pear-info.whatsnew.10x"> <title>Version 1.0.x</title> <para> <itemizedlist> <listitem> <para><emphasis role="bold">Initial PEAR public release</emphasis> occured at end of April 2003. </para> </listitem> <listitem> <para><emphasis role="bold">Moved output of the PEAR_Info</emphasis> to <methodname>PEAR_Info::show()</methodname> </para> </listitem> <listitem> <para><emphasis role="bold">Local PEAR logo</emphasis> copy included </para> </listitem> <listitem> <para><emphasis role="bold">Added PEAR Configuration section to the output</emphasis> </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-info.whatsnew.15x"> <title>Version 1.5.x</title> <para> <itemizedlist> <listitem> <para><emphasis role="bold">Allows Off-Line viewing</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Shows *all* installed packages</emphasis>, whether in PEAR or not </para> </listitem> <listitem> <para><emphasis role="bold">You can now specify a custom PEAR config file</emphasis> </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-info.whatsnew.16x"> <title>Version 1.6.x</title> <para> <itemizedlist> <listitem> <para><emphasis role="bold">Added static method</emphasis>, <methodname>PEAR_Info::packageInstalled()</methodname>. Allows to check if a package is installed or not. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-info.whatsnew.17x"> <title>Version 1.7.x</title> <para> <itemizedlist> <listitem> <para><emphasis role="bold">Easy change look and feel with a simple CSS file</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Show packages dependencies list</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">HTML page output is XHTML compliant</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Introduce a full and flexible configuration system</emphasis> to show only information you want </para> </listitem> <listitem> <para><emphasis role="bold">Show channel list</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Show maintainer inactive status in Credits page</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Support REST 1.0 protocol</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Drop support of package xml 1.0</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Credits page is now customizable</emphasis> with PEAR_INFO_CREDITS_* constant </para> </listitem> <listitem> <para><emphasis role="bold">You may have a standalone html page</emphasis> (default behavior) with PEAR_INFO_FULLPAGE, or part of it </para> </listitem> <listitem> <para><emphasis role="bold">Removed support of PEAR 1.3.x</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Upgrade requirement</emphasis> to PHP 4.3.0 and PEAR 1.5.4 (to avoid security vulnerability) </para> </listitem> <listitem> <para><emphasis role="bold">Coding Standard fixes</emphasis> (errors/warnings) following recommandation by <ulink url="&url.pear.package;PHP_CodeSniffer">PHP_CodeSniffer</ulink> </para> </listitem> </itemizedlist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/viewvc.cgi/peardoc/en/package/pear/pear-info/faq.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-info/faq.xml +++ peardoc/en/package/pear/pear-info/faq.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-info.faq"> <refnamediv> <refname>FAQ</refname> <refpurpose>Answers to most Frequently Asked Questions</refpurpose> </refnamediv> <refsect1 id="package.pear.pear-info.faq.content"> <title>PEAR_Info FAQ</title> <qandaset> <qandadiv><title>General questions</title> <qandaentry> <question> <para>What does it cost ?</para> </question> <answer> <para> You can download and use it for free. But don't delete the copyright notice. You can read terms of the <ulink url="&url.license.php;3_01.txt">PHP license</ulink>. </para> </answer> </qandaentry> <qandaentry> <question> <para>Do you offer support ?</para> </question> <answer> <para> YES if there is no answer in this Guide and if you are ready to share some informations such as : your configuration (platform Win *nix mac, PHP version, PEAR packages installed) and perharps your script. </para> </answer> </qandaentry> <qandaentry> <question> <para>I found a bug, what shall I do ?</para> </question> <answer> <para> You can report it with the bug tracker at <ulink url="&url.pear.package;PEAR_Info/bugs">PEAR</ulink>. </para> </answer> </qandaentry> <qandaentry> <question> <para>What is PEAR ?</para> </question> <answer> <para> PEAR (an acronym for <emphasis role="bold">P</emphasis>HP <emphasis role="bold">E</emphasis>xtension and <emphasis role="bold">A</emphasis>pplication <emphasis role="bold">R</emphasis>epository) is a framework and distribution system for reusable PHP components. </para> <para> Don't forget to read also the <ulink url="&url.pear.manual;en">PEAR Manual</ulink> and <ulink url="&url.pear.manual;en/faq.php">PEAR FAQ</ulink>. </para> </answer> </qandaentry> </qandadiv> <qandadiv><title>How to</title> <qandaentry> <question> <para> I want to display my system configuration, but this one is not detected ? </para> </question> <answer> <para> If your system file (see command <command>pear config-show</command>) does not exists, or is locate in another directory, then you should give this information on PEAR_Info class constructor. </para> <para> <programlisting role="php"> <![CDATA[ <?php // @link http://pear.php.net/bugs/bug.php?id=12878 // Search for pear.conf inside /etc/pear/ require_once 'PEAR/Info.php'; $pear_dir = ''; $user_file = ''; $syst_file = '/etc/pear/pear.conf'; $info = new PEAR_Info($pear_dir, $user_file, $syst_file); $info->display(); ?> ]]> </programlisting> </para> </answer> </qandaentry> <qandaentry> <question> <para> I want to change the look an feel (colors) of PEAR_Info output ? </para> </question> <answer> <para> First copy the default stylesheet named <filename>pearinfo.css</filename> (locate in <filename class='directory'>{data_dir}/PEAR_Info</filename> : see command <command>pear config-show</command>) as a pattern. Then second, change colors and whatever you want until you keep all CSS selectors. </para> <para> See for example the blue layout pattern skin locate in package installation under name <filename>{doc_dir}/PEAR_Info/examples/blueskin.css</filename>. </para> <para> Last, as <filename>{doc_dir}/PEAR_Info/examples/pear_info2.php</filename> script, set the new stylesheet with <methodname>PEAR_Info::setStyleSheet</methodname>. <programlisting role="php"> <![CDATA[ <?php require_once 'PEAR/Info.php'; $info = new PEAR_Info(); $info->setStyleSheet(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'blueskin.css'); $info->display(); ?> ]]> </programlisting> </para> </answer> </qandaentry> <qandaentry> <question> <para>I want to display packages from all my channels ? </para> </question> <answer> <para> By default PEAR_Info display only informations from <literal>pear.php.net</literal> channel. </para> <para> To remove this limit, give as option to the class constructor an empty channels list, as below : <programlisting role="php"> <![CDATA[ <?php require_once 'PEAR/Info.php'; $pear_dir = ''; $user_file = ''; $syst_file = '/opt/lampp/etc/pear.conf'; $options = array('channels' => array() ); $info = new PEAR_Info($pear_dir, $user_file, $syst_file, $options); $info->display(); ?> ]]> </programlisting> </para> <para> <note> If you want to filter package listing from a channel list, then give the full qualified list; something like : <para> <programlisting role="php"> <![CDATA[ <?php $options = array('channels' => array('pear.php.net', 'pear.phpunit.de', '__uri') ); ?> ]]> </programlisting> </para> </note> </para> </answer> </qandaentry> <qandaentry> <question> <para> I want to check if a package is installed or not ? </para> </question> <answer> <para> With static method <methodname>PEAR_Info::packageInstalled</methodname>, you can check installation of a package from all channels declared, and also filter by version. </para> <para> <programlisting role="php"> <![CDATA[ <?php require_once 'PEAR/Info.php'; $inst = PEAR_Info::packageInstalled('Role_Web', '1.1.0', 'pearified'); if ($inst === false) { echo 'sorry it seems that "pearified/Role_Web" package is not installed' . ' or version is less than 1.1.0'; } ?> ]]> </programlisting> </para> </answer> </qandaentry> </qandadiv> </qandaset> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/pear/pear-info/whatsnew.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-info/whatsnew.xml +++ peardoc/en/package/pear/pear-info/whatsnew.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-info.whatsnew"> <refnamediv> <refname>News</refname> <refpurpose>What is New in version ?</refpurpose> </refnamediv> <refsect1 id="package.pear.pear-info.whatsnew.10x"> <title>Version 1.0.x</title> <para> <itemizedlist> <listitem> <para><emphasis role="bold">Initial PEAR public release</emphasis> occured at end of April 2003. </para> </listitem> <listitem> <para><emphasis role="bold">Moved output of the PEAR_Info</emphasis> to <methodname>PEAR_Info::show()</methodname> </para> </listitem> <listitem> <para><emphasis role="bold">Local PEAR logo</emphasis> copy included </para> </listitem> <listitem> <para><emphasis role="bold">Added PEAR Configuration section to the output</emphasis> </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-info.whatsnew.15x"> <title>Version 1.5.x</title> <para> <itemizedlist> <listitem> <para><emphasis role="bold">Allows Off-Line viewing</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Shows *all* installed packages</emphasis>, whether in PEAR or not </para> </listitem> <listitem> <para><emphasis role="bold">You can now specify a custom PEAR config file</emphasis> </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-info.whatsnew.16x"> <title>Version 1.6.x</title> <para> <itemizedlist> <listitem> <para><emphasis role="bold">Added static method</emphasis>, <methodname>PEAR_Info::packageInstalled()</methodname>. Allows to check if a package is installed or not. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-info.whatsnew.17x"> <title>Version 1.7.x</title> <para> <itemizedlist> <listitem> <para><emphasis role="bold">Easy change look and feel with a simple CSS file</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Show packages dependencies list</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">HTML page output is XHTML compliant</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Introduce a full and flexible configuration system</emphasis> to show only information you want </para> </listitem> <listitem> <para><emphasis role="bold">Show channel list</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Show maintainer inactive status in Credits page</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Support REST 1.0 protocol</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Drop support of package xml 1.0</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Credits page is now customizable</emphasis> with PEAR_INFO_CREDITS_* constant </para> </listitem> <listitem> <para><emphasis role="bold">You may have a standalone html page</emphasis> (default behavior) with PEAR_INFO_FULLPAGE, or part of it </para> </listitem> <listitem> <para><emphasis role="bold">Removed support of PEAR 1.3.x</emphasis> </para> </listitem> <listitem> <para><emphasis role="bold">Upgrade requirement</emphasis> to PHP 4.3.0 and PEAR 1.5.4 (to avoid security vulnerability) </para> </listitem> <listitem> <para><emphasis role="bold">Coding Standard fixes</emphasis> (errors/warnings) following recommandation by <ulink url="&url.pear.package;PHP_CodeSniffer">PHP_CodeSniffer</ulink> </para> </listitem> </itemizedlist> </para> </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 -->