PEAR_ChannelFile::setValidationPackage

PEAR_ChannelFile::setValidationPackage() – Set the package validation object if it differs from PEAR's default.

Synopsis

require_once '/ChannelFile.php';

boolean PEAR_ChannelFile::setValidationPackage ( string|false $validateclass , string $version )

Description

The class must be either in memory (PEAR_Validate or PEAR_Validate_PECL) or be available for include_once() via a simple formula: Transform the underscores (_) into directory separators (/), append .php and include.

A validation class named Foo_Bar_Baz should be available for inclusion via this code:


<?php
include_once 'Foo/Bar/Baz.php';
?>

In addition, the validation package must be available for installation from the channel with the version number to install specified by the $version parameter.

Parameter

string|FALSE $validateclass

pass in FALSE to reset to the default packagename regex

string $version

The package version that must be installed for this channel to validate properly.

Return value

returns success

Throws

throws no exceptions thrown

Note

This function can not be called statically.

set the summary of a channel's purpose (Previous) determines whether a webservices function is supported by a 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.