cvs: peardoc /en/core/ppm/pear-channelfile getvalidationobject.xml
| From: | Greg Beaver | Date: | Fri, 03 Jun 2005 01:19:43 +0000 |
| Subject: | cvs: peardoc /en/core/ppm/pear-channelfile getvalidationobject.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6181@lists.php.net to get a copy of this message | ||
cellog Thu Jun 2 21:19:43 2005 EDT
Added files:
/peardoc/en/core/ppm/pear-channelfile getvalidationobject.xml
Log:
add new docs
http://cvs.php.net/co.php/peardoc/en/core/ppm/pear-channelfile/getvalidationobject.xml?r=1.1&p=1
Index: peardoc/en/core/ppm/pear-channelfile/getvalidationobject.xml
+++ peardoc/en/core/ppm/pear-channelfile/getvalidationobject.xml
<!-- $Revision: 1.1 $ -->
<refentry id="core.ppm.pear-channelfile.getvalidationobject">
<refnamediv>
<refname>
<function>PEAR_ChannelFile::getValidationObject</function>
</refname>
<refpurpose>Retrieve the object that can be used for custom validation</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcsynopsisinfo>require_once
'/ChannelFile.php';</funcsynopsisinfo>
<funcprototype>
<funcdef>
<replaceable>PEAR_Validate|false</replaceable>
&
<function>PEAR_ChannelFile::getValidationObject</function>
</funcdef>
<paramdef>
string|false
<parameter>
<optional>$package = &false;</optional>
</parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="core.ppm.pear-channelfile.getvalidationobject.desc">
&title.desc;
<para>
Retrieve the channel validation object. The package parameter is intended to notify
<function>getValidationObject</function> of the package to be validated. If the
package
is in fact the channel validation package, then PEAR_Validate will be used for validation.
This prevents an endless loop that would otherwise occur.
</para>
</refsect1>
<refsect1 id="core.ppm.pear-channelfile.getvalidationobject.param">
&title.param;
<para>
<variablelist>
<varlistentry>
<term>
&type.string;|&false;
<parameter>$package</parameter>
</term>
<listitem>
<para>
The name of the package to validate. If the package is
the channel validation package, <classname>PEAR_Validate</classname> is returned.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 id="core.ppm.pear-channelfile.getvalidationobject.returns">
&title.returns;
<para>
<emphasis>returns</emphasis>
false is returned if the validation package cannot be located
</para>
</refsect1>
<refsect1 id="core.ppm.pear-channelfile.getvalidationobject.throws">
&title.throws;
<para>
<emphasis>throws</emphasis>
no exceptions thrown
</para>
</refsect1>
<refsect1 id="core.ppm.pear-channelfile.getvalidationobject.note">
&title.note;
¬e.notstatic;
</refsect1>
</refentry>