Class RegexValidator

Description

Validates values against a regular expression pattern

Located in /core/validation/RegexValidator.class.php (line 37)

PHP2Go
   |
   --AbstractValidator
      |
      --RegexValidator
Variable Summary
string $pattern
string $type
Method Summary
RegexValidator RegexValidator ([array $params = NULL])
bool execute (string $value)
Variables
string $pattern (line 45)

Regular expression pattern

  • access: private
string $type = 'POSIX' (line 55)

Regular expression type

Accepts 2 values: POSIX or PCRE.

  • access: private

Inherited Variables

Inherited from AbstractValidator

AbstractValidator::$errorMessage
AbstractValidator::$fieldLabel
Methods
Constructor RegexValidator (line 67)

Class constructor

Accepted arguments:

  • pattern (string): REGEXP pattern
  • type (string): REGEXP type (POSIX or PCRE)

RegexValidator RegexValidator ([array $params = NULL])
  • array $params: Arguments
execute (line 83)

Runs the validation

bool execute (string $value)
  • string $value: Value to be validated

Redefinition of:
AbstractValidator::execute()
Must be implemented by child classes

Inherited Methods

Inherited From AbstractValidator

AbstractValidator::AbstractValidator()
AbstractValidator::execute()
AbstractValidator::getError()

Inherited From PHP2Go

PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()

Documentation generated on Sun, 07 Oct 2007 19:28:52 -0300 by phpDocumentor 1.3.2