PEAR_ChannelFile::getValidationObject

PEAR_ChannelFile::getValidationObject() – Retrieve the object that can be used for custom validation

Synopsis

require_once '/ChannelFile.php';

PEAR_Validate|false & PEAR_ChannelFile::getValidationObject ( string|false $package = false )

Description

Retrieve the channel validation object. The package parameter is intended to notify getValidationObject() 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.

Parameter

string|FALSE $package

The name of the package to validate. If the package is the channel validation package, PEAR_Validate is returned.

Return value

returns false is returned if the validation package cannot be located

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Get channel summary (Previous) Retrieve the name of the validation package for this channel (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.