Class DateValidator

Description

Validates date and datetime values

Located in /core/validation/DateValidator.class.php (line 41)

PHP2Go
   |
   --AbstractValidator
      |
      --DateValidator
Variable Summary
string $type
Method Summary
DateValidator DateValidator ([array $params = NULL])
bool execute (string &$value)
Variables
string $type (line 49)

Date type

  • access: private

Inherited Variables

Inherited from AbstractValidator

AbstractValidator::$errorMessage
AbstractValidator::$fieldLabel
Methods
Constructor DateValidator (line 60)

Class constructor

Accepted arguments:

  • type (string): EURO, US or SQL

DateValidator DateValidator ([array $params = NULL])
  • array $params: Arguments
execute (line 74)

Runs the validation

bool execute (string &$value)
  • string &$value: Date 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:22:43 -0300 by phpDocumentor 1.3.2