cvs: peardoc /en/package pear.xml /en/package/pear pear-packageupdate.xml /en/package/pear/pear-packageupdate/pear-packageupdate
determinepreffile.xml factory.xml isincludable.xml loadpreferences.xml
| From: | Scott Mattocks | Date: | Fri, 28 Apr 2006 12:40:15 +0000 |
| Subject: | cvs: peardoc /en/package pear.xml /en/package/pear pear-packageupdate.xml /en/package/pear/pear-packageupdate/pear-packageupdate determinepreffile.xml factory.xml isincludable.xml loadpreferences.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-7827@lists.php.net to get a copy of this message | ||
scottmattocks Fri Apr 28 12:40:15 2006 UTC
Added files:
/peardoc/en/package/pear pear-packageupdate.xml
/peardoc/en/package/pear/pear-packageupdate/pear-packageupdate
determinepreffile.xml
factory.xml
isincludable.xml
loadpreferences.xml
Modified files:
/peardoc/en/package pear.xml
Log:
Start of PEAR_PackageUpdate docs. TOC, intro and a few methods.
http://cvs.php.net/viewcvs.cgi/peardoc/en/package/pear.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/pear.xml diff -u peardoc/en/package/pear.xml:1.6 peardoc/en/package/pear.xml:1.7 --- peardoc/en/package/pear.xml:1.6 Fri Feb 17 16:04:31 2006 +++ peardoc/en/package/pear.xml Fri Apr 28 12:40:15 2006 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <chapter id="package.pear"> <title>PEAR</title> @@ -11,6 +11,7 @@ &package.pear.frontend-gtk2; &package.pear.pear-info; &package.pear.pear-packagefilemanager; + &package.pear.pear-packageupdate; </chapter> <!-- Keep this comment at the end of the file http://cvs.php.net/viewcvs.cgi/peardoc/en/package/pear/pear-packageupdate.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-packageupdate.xml +++ peardoc/en/package/pear/pear-packageupdate.xml <!-- $Revision: 1.1 $ --> <sect1 id="package.pear.pear-packageupdate"> <title>PEAR_PackageUpdate</title> <refentry id="package.pear.pear-packageupdate.pear-packageupdate-summary"> <refnamediv> <refname>Introduction to <classname>PEAR_PackageUpdate</classname></refname> <refpurpose> A package to make adding self updating functionality to other packages or applications easy. </refpurpose> </refnamediv> <refsect1> <title> About PEAR::PackageUpdate </title> <para> PEAR::PackageUpdate gives other packages or applications the ability to automatically keep themselves up-to-date by checking their channel server for the latest release and self-updating with the user's permission. Auto-update features help developers by reducing the number of different versions of a package which are currently used. This reduces the likely hood of bugs related to outdated versions being reported. </para> <para> This package automates the update process but still allows the user to remain in control of their computer. PEAR::PackageUpdate respects a user's preferences and allows the user to decide not only if the package should be updated but also when to be alerted to new updates. The user can decide to only be notified when a new release has a certain state or release type (bug fix, feature enhancment, or major version). The user can even turn off the updating features. All of these settings are on a package-by-package basis. </para> <para> PEAR::PackageUpdate is designed to be a backend for other packages which provide different interface types. For example, this package can be used to drive a PHP-GTK 2, CLI or HTML frontend. </para> </refsect1> <refsect1> <title> Usage Example </title> <para> <programlisting role="php-highlighted"> <![CDATA[<?php class Foo { function __construct() { // Try to update the package if needed. require_once 'PEAR/PackageUpdate.php'; // Load the PHP-GTK 2 driver to check for updates for pear://Foo $ppu = PEAR_PackageUpdate::factory('Gtk2', 'Foo', 'pear'); // Check for trouble loading the driver. if ($ppu !== false) { // See if a new version is available (respects user prefs). if ($ppu->checkUpdate()) { // Ask for permission to update. if ($ppu->presentUpdate()) { if ($ppu->update()) { // The update was a success. The app must be // restarted. $ppu->forceRestart(); } } } } // ... } // ... } ?>]]> </programlisting> </para> </refsect1> </refentry> &package.pear.pear-packageupdate.pear-packageupdate.factory; &package.pear.pear-packageupdate.pear-packageupdate.isincludable; &package.pear.pear-packageupdate.pear-packageupdate.loadpreferences; <!-- &package.pear.pear-packageupdate.pear-packageupdate.determinepreffile; &package.pear.pear-packageupdate.pear-packageupdate.checkupdate; &package.pear.pear-packageupdate.pear-packageupdate.getpackageinfo; &package.pear.pear-packageupdate.pear-packageupdate.getpackagepreferences; &package.pear.pear-packageupdate.pear-packageupdate.savepreferences; &package.pear.pear-packageupdate.pear-packageupdate.preferencesallowupdate; &package.pear.pear-packageupdate.pear-packageupdate.releasetype; &package.pear.pear-packageupdate.pear-packageupdate.setdontaskagain; &package.pear.pear-packageupdate.pear-packageupdate.setdontaskuntilnextrelease; &package.pear.pear-packageupdate.pear-packageupdate.setminimumreleasetype; &package.pear.pear-packageupdate.pear-packageupdate.setminimumstate; &package.pear.pear-packageupdate.pear-packageupdate.setpreference; &package.pear.pear-packageupdate.pear-packageupdate.setpreferences; &package.pear.pear-packageupdate.pear-packageupdate.update; &package.pear.pear-packageupdate.pear-packageupdate.forcerestart; &package.pear.pear-packageupdate.pear-packageupdate.presentupdate; &package.pear.pear-packageupdate.pear-packageupdate.pusherror; &package.pear.pear-packageupdate.pear-packageupdate.repackagepear-error; &package.pear.pear-packageupdate.pear-packageupdate.poperror; &package.pear.pear-packageupdate.pear-packageupdate.haserrors; --> </sect1> <!-- Generated by phpDocumentor v 1.3.0 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 --> http://cvs.php.net/viewcvs.cgi/peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/determinepreffile.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/determinepreffile.xml +++ peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/determinepreffile.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packageupdate.pear-packageupdate.factory"> <refnamediv> <refname>PEAR_PackageUpdate::factory</refname> <refpurpose> Factory method for createing PEAR_PackageUpdate frontend instances. </refpurpose> </refnamediv> <refsynopsisdiv> <methodsynopsis> <modifier>public</modifier> &type.mixed; <methodname>PEAR_PackageUpdate::factory</methodname> <methodparam> &type.string; <parameter>$driver</parameter> </methodparam> <methodparam> &type.string; <parameter>$packageName</parameter> </methodparam> <methodparam> &type.string; <parameter>$channel</parameter> </methodparam> </methodsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.desc"> &title.desc; <para> Factory method for creating PEAR_PackageUpdate frontend instances. </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $driver</parameter> - The name of a frontend driver class. <parameter>$driver</parameter> must be one of <literal>Gtk2</literal>, <literal>CLI</literal>, or <literal>Web</literal>. </para> </listitem> <listitem> <para> <parameter>string $packageName</parameter> - The name of the package to be updated. Example: <classname>PEAR_PackageFileManager_Web</classname>. </para> </listitem> <listitem> <para> <parameter>string $driver</parameter> - The name of the channel <parameter>$packageName</parameter> is hosted on. This may be a fully qualified channel name such as <literal>pear.php.net</literal> or a short channel name like <literal>pear</literal>. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.note"> &title.note; ¬e.shouldstatic; </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.return"> &title.returns; <para> <parameter>mixed</parameter> - reference to a new object or &false; when if the object could not be created (i.e. invalid driver name). </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/viewcvs.cgi/peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/factory.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/factory.xml +++ peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/factory.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packageupdate.pear-packageupdate.factory"> <refnamediv> <refname>PEAR_PackageUpdate::factory</refname> <refpurpose> Factory method for createing PEAR_PackageUpdate frontend instances. </refpurpose> </refnamediv> <refsynopsisdiv> <methodsynopsis> <modifier>public</modifier> &type.mixed; <methodname>PEAR_PackageUpdate::factory</methodname> <methodparam> &type.string; <parameter>$driver</parameter> </methodparam> <methodparam> &type.string; <parameter>$packageName</parameter> </methodparam> <methodparam> &type.string; <parameter>$channel</parameter> </methodparam> </methodsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.desc"> &title.desc; <para> Factory method for creating PEAR_PackageUpdate frontend instances. </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $driver</parameter> - The name of a frontend driver class. <parameter>$driver</parameter> must be one of <literal>Gtk2</literal>, <literal>CLI</literal>, or <literal>Web</literal>. </para> </listitem> <listitem> <para> <parameter>string $packageName</parameter> - The name of the package to be updated. Example: <classname>PEAR_PackageFileManager_Web</classname>. </para> </listitem> <listitem> <para> <parameter>string $driver</parameter> - The name of the channel <parameter>$packageName</parameter> is hosted on. This may be a fully qualified channel name such as <literal>pear.php.net</literal> or a short channel name like <literal>pear</literal>. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.note"> &title.note; ¬e.shouldstatic; </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.return"> &title.returns; <para> <parameter>mixed</parameter> - reference to a new object or &false; when if the object could not be created (i.e. invalid driver name). </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/viewcvs.cgi/peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/isincludable.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/isincludable.xml +++ peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/isincludable.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packageupdate.pear-packageupdate.isincludable"> <refnamediv> <refname>PEAR_PackageUpdate::isIncludable</refname> <refpurpose> Determines whether or not a file is includable. </refpurpose> </refnamediv> <refsynopsisdiv> <methodsynopsis> <modifier>public</modifier> &type.bool; <methodname>PEAR_PackageUpdate::isIncludable</methodname> <methodparam> &type.string; <parameter>$path</parameter> </methodparam> </methodsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.isincludable.desc"> &title.desc; <para> Determines whether or not a file is includable. This method is used to ensure that the driver class file can be found and included. </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.isincludable.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>&type.string; $path</parameter> - The path to the file to check. The path should be a subdirectory of one of the directories in the include path. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.isincludable.note"> &title.note; ¬e.canstatic; </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.isincludable.return"> &title.returns; <para> <parameter>&type.bool;</parameter> - &true; if the file is includable. </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/viewcvs.cgi/peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/loadpreferences.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/loadpreferences.xml +++ peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/loadpreferences.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packageupdate.pear-packageupdate.loadpreferences"> <refnamediv> <refname>PEAR_PackageUpdate::loadPreferences</refname> <refpurpose> Loads the user's preferences from the preference file. </refpurpose> </refnamediv> <refsynopsisdiv> <methodsynopsis> <modifier>public</modifier> &type.mixed; <methodname>PEAR_PackageUpdate::loadPreferences</methodname> </methodsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.loadpreferences.desc"> &title.desc; <para> Loads the user's preferences from the preference file. </para> <para> The preferences are stored in the user's home directory as the file <literal>.ppurc</literal>. The file contains a serialized array of preferences for each package that has been checked for updates so far. </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.loadpreferences.note"> &title.note; ¬e.notstatic; </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.loadpreferences.return"> &title.returns; <para> <parameter>&type.bool;</parameter> - &true; if the preferences where loaded successfully, &false; otherwise. </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/viewcvs.cgi/peardoc/en/package/pear.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/en/package/pear.xml diff -u peardoc/en/package/pear.xml:1.6 peardoc/en/package/pear.xml:1.7 --- peardoc/en/package/pear.xml:1.6 Fri Feb 17 16:04:31 2006 +++ peardoc/en/package/pear.xml Fri Apr 28 12:40:15 2006 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <chapter id="package.pear"> <title>PEAR</title> @@ -11,6 +11,7 @@ &package.pear.frontend-gtk2; &package.pear.pear-info; &package.pear.pear-packagefilemanager; + &package.pear.pear-packageupdate; </chapter> <!-- Keep this comment at the end of the file http://cvs.php.net/viewcvs.cgi/peardoc/en/package/pear/pear-packageupdate.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-packageupdate.xml +++ peardoc/en/package/pear/pear-packageupdate.xml <!-- $Revision: 1.1 $ --> <sect1 id="package.pear.pear-packageupdate"> <title>PEAR_PackageUpdate</title> <refentry id="package.pear.pear-packageupdate.pear-packageupdate-summary"> <refnamediv> <refname>Introduction to <classname>PEAR_PackageUpdate</classname></refname> <refpurpose> A package to make adding self updating functionality to other packages or applications easy. </refpurpose> </refnamediv> <refsect1> <title> About PEAR::PackageUpdate </title> <para> PEAR::PackageUpdate gives other packages or applications the ability to automatically keep themselves up-to-date by checking their channel server for the latest release and self-updating with the user's permission. Auto-update features help developers by reducing the number of different versions of a package which are currently used. This reduces the likely hood of bugs related to outdated versions being reported. </para> <para> This package automates the update process but still allows the user to remain in control of their computer. PEAR::PackageUpdate respects a user's preferences and allows the user to decide not only if the package should be updated but also when to be alerted to new updates. The user can decide to only be notified when a new release has a certain state or release type (bug fix, feature enhancment, or major version). The user can even turn off the updating features. All of these settings are on a package-by-package basis. </para> <para> PEAR::PackageUpdate is designed to be a backend for other packages which provide different interface types. For example, this package can be used to drive a PHP-GTK 2, CLI or HTML frontend. </para> </refsect1> <refsect1> <title> Usage Example </title> <para> <programlisting role="php-highlighted"> <![CDATA[<?php class Foo { function __construct() { // Try to update the package if needed. require_once 'PEAR/PackageUpdate.php'; // Load the PHP-GTK 2 driver to check for updates for pear://Foo $ppu = PEAR_PackageUpdate::factory('Gtk2', 'Foo', 'pear'); // Check for trouble loading the driver. if ($ppu !== false) { // See if a new version is available (respects user prefs). if ($ppu->checkUpdate()) { // Ask for permission to update. if ($ppu->presentUpdate()) { if ($ppu->update()) { // The update was a success. The app must be // restarted. $ppu->forceRestart(); } } } } // ... } // ... } ?>]]> </programlisting> </para> </refsect1> </refentry> &package.pear.pear-packageupdate.pear-packageupdate.factory; &package.pear.pear-packageupdate.pear-packageupdate.isincludable; &package.pear.pear-packageupdate.pear-packageupdate.loadpreferences; <!-- &package.pear.pear-packageupdate.pear-packageupdate.determinepreffile; &package.pear.pear-packageupdate.pear-packageupdate.checkupdate; &package.pear.pear-packageupdate.pear-packageupdate.getpackageinfo; &package.pear.pear-packageupdate.pear-packageupdate.getpackagepreferences; &package.pear.pear-packageupdate.pear-packageupdate.savepreferences; &package.pear.pear-packageupdate.pear-packageupdate.preferencesallowupdate; &package.pear.pear-packageupdate.pear-packageupdate.releasetype; &package.pear.pear-packageupdate.pear-packageupdate.setdontaskagain; &package.pear.pear-packageupdate.pear-packageupdate.setdontaskuntilnextrelease; &package.pear.pear-packageupdate.pear-packageupdate.setminimumreleasetype; &package.pear.pear-packageupdate.pear-packageupdate.setminimumstate; &package.pear.pear-packageupdate.pear-packageupdate.setpreference; &package.pear.pear-packageupdate.pear-packageupdate.setpreferences; &package.pear.pear-packageupdate.pear-packageupdate.update; &package.pear.pear-packageupdate.pear-packageupdate.forcerestart; &package.pear.pear-packageupdate.pear-packageupdate.presentupdate; &package.pear.pear-packageupdate.pear-packageupdate.pusherror; &package.pear.pear-packageupdate.pear-packageupdate.repackagepear-error; &package.pear.pear-packageupdate.pear-packageupdate.poperror; &package.pear.pear-packageupdate.pear-packageupdate.haserrors; --> </sect1> <!-- Generated by phpDocumentor v 1.3.0 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 --> http://cvs.php.net/viewcvs.cgi/peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/determinepreffile.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/determinepreffile.xml +++ peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/determinepreffile.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packageupdate.pear-packageupdate.factory"> <refnamediv> <refname>PEAR_PackageUpdate::factory</refname> <refpurpose> Factory method for createing PEAR_PackageUpdate frontend instances. </refpurpose> </refnamediv> <refsynopsisdiv> <methodsynopsis> <modifier>public</modifier> &type.mixed; <methodname>PEAR_PackageUpdate::factory</methodname> <methodparam> &type.string; <parameter>$driver</parameter> </methodparam> <methodparam> &type.string; <parameter>$packageName</parameter> </methodparam> <methodparam> &type.string; <parameter>$channel</parameter> </methodparam> </methodsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.desc"> &title.desc; <para> Factory method for creating PEAR_PackageUpdate frontend instances. </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $driver</parameter> - The name of a frontend driver class. <parameter>$driver</parameter> must be one of <literal>Gtk2</literal>, <literal>CLI</literal>, or <literal>Web</literal>. </para> </listitem> <listitem> <para> <parameter>string $packageName</parameter> - The name of the package to be updated. Example: <classname>PEAR_PackageFileManager_Web</classname>. </para> </listitem> <listitem> <para> <parameter>string $driver</parameter> - The name of the channel <parameter>$packageName</parameter> is hosted on. This may be a fully qualified channel name such as <literal>pear.php.net</literal> or a short channel name like <literal>pear</literal>. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.note"> &title.note; ¬e.shouldstatic; </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.return"> &title.returns; <para> <parameter>mixed</parameter> - reference to a new object or &false; when if the object could not be created (i.e. invalid driver name). </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/viewcvs.cgi/peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/factory.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/factory.xml +++ peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/factory.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packageupdate.pear-packageupdate.factory"> <refnamediv> <refname>PEAR_PackageUpdate::factory</refname> <refpurpose> Factory method for createing PEAR_PackageUpdate frontend instances. </refpurpose> </refnamediv> <refsynopsisdiv> <methodsynopsis> <modifier>public</modifier> &type.mixed; <methodname>PEAR_PackageUpdate::factory</methodname> <methodparam> &type.string; <parameter>$driver</parameter> </methodparam> <methodparam> &type.string; <parameter>$packageName</parameter> </methodparam> <methodparam> &type.string; <parameter>$channel</parameter> </methodparam> </methodsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.desc"> &title.desc; <para> Factory method for creating PEAR_PackageUpdate frontend instances. </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $driver</parameter> - The name of a frontend driver class. <parameter>$driver</parameter> must be one of <literal>Gtk2</literal>, <literal>CLI</literal>, or <literal>Web</literal>. </para> </listitem> <listitem> <para> <parameter>string $packageName</parameter> - The name of the package to be updated. Example: <classname>PEAR_PackageFileManager_Web</classname>. </para> </listitem> <listitem> <para> <parameter>string $driver</parameter> - The name of the channel <parameter>$packageName</parameter> is hosted on. This may be a fully qualified channel name such as <literal>pear.php.net</literal> or a short channel name like <literal>pear</literal>. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.note"> &title.note; ¬e.shouldstatic; </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.factory.return"> &title.returns; <para> <parameter>mixed</parameter> - reference to a new object or &false; when if the object could not be created (i.e. invalid driver name). </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/viewcvs.cgi/peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/isincludable.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/isincludable.xml +++ peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/isincludable.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packageupdate.pear-packageupdate.isincludable"> <refnamediv> <refname>PEAR_PackageUpdate::isIncludable</refname> <refpurpose> Determines whether or not a file is includable. </refpurpose> </refnamediv> <refsynopsisdiv> <methodsynopsis> <modifier>public</modifier> &type.bool; <methodname>PEAR_PackageUpdate::isIncludable</methodname> <methodparam> &type.string; <parameter>$path</parameter> </methodparam> </methodsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.isincludable.desc"> &title.desc; <para> Determines whether or not a file is includable. This method is used to ensure that the driver class file can be found and included. </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.isincludable.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>&type.string; $path</parameter> - The path to the file to check. The path should be a subdirectory of one of the directories in the include path. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.isincludable.note"> &title.note; ¬e.canstatic; </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.isincludable.return"> &title.returns; <para> <parameter>&type.bool;</parameter> - &true; if the file is includable. </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/viewcvs.cgi/peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/loadpreferences.xml?view=markup&rev=1.1 Index: peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/loadpreferences.xml +++ peardoc/en/package/pear/pear-packageupdate/pear-packageupdate/loadpreferences.xml <!-- $Revision: 1.1 $ --> <refentry id="package.pear.pear-packageupdate.pear-packageupdate.loadpreferences"> <refnamediv> <refname>PEAR_PackageUpdate::loadPreferences</refname> <refpurpose> Loads the user's preferences from the preference file. </refpurpose> </refnamediv> <refsynopsisdiv> <methodsynopsis> <modifier>public</modifier> &type.mixed; <methodname>PEAR_PackageUpdate::loadPreferences</methodname> </methodsynopsis> </refsynopsisdiv> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.loadpreferences.desc"> &title.desc; <para> Loads the user's preferences from the preference file. </para> <para> The preferences are stored in the user's home directory as the file <literal>.ppurc</literal>. The file contains a serialized array of preferences for each package that has been checked for updates so far. </para> </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.loadpreferences.note"> &title.note; ¬e.notstatic; </refsect1> <refsect1 id="package.pear.pear-packageupdate.pear-packageupdate.loadpreferences.return"> &title.returns; <para> <parameter>&type.bool;</parameter> - &true; if the preferences where loaded successfully, &false; otherwise. </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 -->