[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/data/validator/rules/ -> intrangerule.class.php (sommaire)

(pas de description)

Poids: 100 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 1 fois
Nécessite: 0 fichiers

Définit 1 class

IntRangeRule:: (6 méthodes):
  IntRangeRule()
  getMinValue()
  setMinValue()
  getMaxValue()
  setMaxValue()
  validate()


Classe: IntRangeRule  - X-Ref

\ingroup Validator_Rules

Given two values that will be used as lower and upper boundaries of the range,
it will validate whether the given value falls within the range.

It will set the errors ERROR_RULE_INTEGER_TOO_SMALL or ERROR_RULE_INTEGER_TOO_LARGE in case the
validation is not successful.
IntRangeRule($minValue, $maxValue)   X-Ref
Initializes the rule

param: minValue the lower boundary of the range
param: maxValue the upper boundary of the range

getMinValue()   X-Ref

return: the lower boundary of the range

setMinValue($minValue)   X-Ref
sets the lower boundary of the range

param: minValue the minimum value

getMaxValue()   X-Ref

return: the upper boundary of the range

setMaxValue($maxValue)   X-Ref
sets the lower boundary of the range

param: minValue the minimum value

validate($value)   X-Ref
validates that the given value is within the two boundaries previously specified

param: value The value to validate
return: True if successful or false otherwise



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics