cvs: peardoc /en/core/ppm/pear-channelfile setvalidationpackage.xml

From: Date: Sat, 04 Jun 2005 02:38:26 +0000
Subject: cvs: peardoc /en/core/ppm/pear-channelfile setvalidationpackage.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6201@lists.php.net to get a copy of this message
cellog Fri Jun 3 22:38:26 2005 EDT Added files: /peardoc/en/core/ppm/pear-channelfile setvalidationpackage.xml Log: add new docs http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-channelfile/setvalidationpackage.xml?r=1.1&p=1 Index: peardoc/en/core/ppm/pear-channelfile/setvalidationpackage.xml +++ peardoc/en/core/ppm/pear-channelfile/setvalidationpackage.xml <!-- $Revision: 1.1 $ --> <refentry id="core.ppm.pear-channelfile.setvalidationpackage"> <refnamediv> <refname> <function>PEAR_ChannelFile::setValidationPackage</function> </refname> <refpurpose> Set the package validation object if it differs from PEAR&apos;s default. </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;/ChannelFile.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> boolean <function>PEAR_ChannelFile::setValidationPackage</function> </funcdef> <paramdef> string|false <parameter>$validateclass</parameter> </paramdef> <paramdef> string <parameter>$version</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.ppm.pear-channelfile.setvalidationpackage.desc"> &title.desc; <para> The class must be either in memory (<classname>PEAR_Validate</classname> or <classname>PEAR_Validate_PECL</classname>) or be available for <function>include_once</function> via a simple formula: Transform the underscores (<literal>_</literal>) into directory separators (<literal>/</literal>), append <literal>.php</literal> and include. </para> <para> A validation class named <classname>Foo_Bar_Baz</classname> should be available for inclusion via this code: </para> <para> <programlisting> <![CDATA[ <?php include_once 'Foo/Bar/Baz.php'; ?> ]]> </programlisting> </para> <para> In addition, the validation package must be available for installation from the channel with the version number to install specified by the <parameter>$version</parameter> parameter. </para> </refsect1> <refsect1 id="core.ppm.pear-channelfile.setvalidationpackage.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string|&false; <parameter>$validateclass</parameter> </term> <listitem> <para>pass in &false; to reset to the default packagename regex</para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$version</parameter> </term> <listitem> <para> The package version that must be installed for this channel to validate properly. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.ppm.pear-channelfile.setvalidationpackage.returns"> &title.returns; <para> <emphasis>returns</emphasis> success </para> </refsect1> <refsect1 id="core.ppm.pear-channelfile.setvalidationpackage.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="core.ppm.pear-channelfile.setvalidationpackage.note"> &title.note; &note.notstatic; </refsect1> </refentry>

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