Class IntervalValidator

Description

Validates values against an interval

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

PHP2Go
   |
   --AbstractValidator
      |
      --IntervalValidator
Variable Summary
int $max
int $min
Method Summary
IntervalValidator IntervalValidator ([array $params = NULL])
bool execute (int $value)
Variables
int $max (line 53)

Upper bound

  • access: private
int $min (line 45)

Lower bound

  • access: private

Inherited Variables

Inherited from AbstractValidator

AbstractValidator::$errorMessage
AbstractValidator::$fieldLabel
Methods
Constructor IntervalValidator (line 65)

Class constructor

Accepted arguments:

  • min (int): lower bound
  • max (int): upper bound

IntervalValidator IntervalValidator ([array $params = NULL])
  • array $params: Arguments
execute (line 81)

Runs the validation

bool execute (int $value)
  • int $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:26:45 -0300 by phpDocumentor 1.3.2