PEAR_Validate::validateVersion

PEAR_Validate::validateVersion() – protected function to validate a version

Synopsis

require_once '/Validate.php';

void PEAR_Validate::validateVersion ( )

Description

Override this function in a channel validator in order to apply a different version validation scheme. An example of this use is in the PEAR_Validate_PECL class, which overrides validateVersion() to be less strict than the default PEAR_Validate::validateVersion().

Errors should be reported using _addFailure() method, and non-fatal errors (warnings) should be reported using the _addWarning() method.

Throws

throws no exceptions thrown

Note

This function can not be called statically.

validateTime (Previous) This validates a dependency group name, and dependency group names must conform to the PEAR naming convention, so the method is final and static. (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.