Class FloatValidator

Description

Validates signed and unsigned float values

Optionally, the class can validate maximum precision (length of the decimal part).

Located in /core/validation/FloatValidator.class.php (line 40)

PHP2Go
   |
   --AbstractValidator
      |
      --FloatValidator
Variable Summary
string $decimalPoint
array $limiters
Method Summary
FloatValidator FloatValidator ([array $params = NULL])
bool execute (string &$value)
Variables
string $decimalPoint (line 58)

Decimal separator

If ommited, will be retrieved from the locale settings.

  • access: private
array $limiters (line 48)

Max sizes for integer and decimal parts

  • access: private

Inherited Variables

Inherited from AbstractValidator

AbstractValidator::$errorMessage
AbstractValidator::$fieldLabel
Methods
Constructor FloatValidator (line 70)

Class constructor

Accepted arguments:

  • limiters (array): array containing max size of integer and decimal parts of the number
  • decimalPoint (string): decimal separator

FloatValidator FloatValidator ([array $params = NULL])
  • array $params: Arguments
execute (line 93)

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:24:41 -0300 by phpDocumentor 1.3.2