Class MinLengthValidator

Description

Validates the length of strings against a minimum limit

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

PHP2Go
   |
   --AbstractValidator
      |
      --MinLengthValidator
Variable Summary
Method Summary
MaxLengthValidator MinLengthValidator ([array $params = NULL])
bool execute (string $value)
Variables
bool $bypassEmpty = FALSE (line 53)

Whether empty values should be ignored or not

  • access: private
int $minLength (line 45)

Minimum length

  • access: private

Inherited Variables

Inherited from AbstractValidator

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

Class constructor

Accepted arguments:

  • minlength (int): minimum length
  • bypassEmpty (boolean): bypass empty values

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

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:27:55 -0300 by phpDocumentor 1.3.2