Class AbstractValidator

Description

Abstract validator class

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

PHP2Go
   |
   --AbstractValidator
Direct descendents
Class Description
AlphaCharsValidator Validates if a string contains alphanumeric chars only
ChoiceValidator Validates if a value is included in a list of choices
CPFCNPJValidator Validates CPF/CNPJ values
CreditCardValidator Validates credit card numbers
CurrencyValidator Validates signed currency values
DateValidator Validates date and datetime values
EmailValidator Validates e-mail addresses
FloatValidator Validates signed and unsigned float values
IntegerValidator Validates signed and unsigned integer numbers
IntervalValidator Validates values against an interval
IPAddressValidator Validates IP (Internet Protocol) addresses
MaxLengthValidator Validates the length of strings against a maximum limit
MaxValidator Validates values against a maximum value
MinLengthValidator Validates the length of strings against a minimum limit
MinValidator Validates values against a minimum value
RegexValidator Validates values against a regular expression pattern
RequiredValidator Used by the forms API to validate required fields
RuleValidator Used by the forms API to validate rules
TimeValidator Validates time values (hour, minute and second)
UploadValidator Validates and processes file uploads
UrlValidator Validates URL addresses
WordValidator Validates if strings are word boundary
ZipCodeValidator Validates postal codes
Variable Summary
string $errorMessage
string $fieldLabel
Method Summary
AbstractValidator AbstractValidator ([array $params = NULL])
void execute ()
string getError ()
Variables
string $errorMessage (line 53)

Error message

  • access: private
string $fieldLabel (line 45)

Holds the label of the field being validated

  • access: private
Methods
Constructor AbstractValidator (line 61)

Class constructor

AbstractValidator AbstractValidator ([array $params = NULL])
  • array $params: Validator arguments
execute (line 72)

Must be implemented by child classes

  • abstract:
void execute ()

Redefined in descendants as:
getError (line 80)

Get the validation error message

string getError ()

Inherited Methods

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:19:57 -0300 by phpDocumentor 1.3.2