[ 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/ -> regexprule.class.php (sommaire)

(pas de description)

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

Définit 1 class

RegExpRule:: (6 méthodes):
  RegExpRule()
  getRegExp()
  setRegExp()
  isCaseSensitive()
  setCaseSensitive()
  validate()


Classe: RegExpRule  - X-Ref

\ingroup Validator_Rules

Implements a rule that checks whether a string matches the given regular expression, supporting
both case sensitive and not sensitive.
RegExpRule($regExp, $caseSensitive = DEFAULT_RULE_CASE_SENSITIVE)   X-Ref
Builds the regular expression rule.

param: regExp The regular expression against which we are going to be matching data.
param: caseSensitive Whether the regular expression will be matched using the case

getRegExp()   X-Ref

return: Returns the regular expression that is being used to validate data

setRegExp($regExp)   X-Ref

return: Sets the regular expression that will be used to validate data

isCaseSensitive()   X-Ref

return: Returns true if the case-sensitive mode is enabled or false otherwise

setCaseSensitive($caseSensitive = DEFAULT_RULE_CASE_SENSITIVE)   X-Ref
Sets the case sensitive mode.

param: caseSensitive True to activate the case-sensitive mode or false otherwise

validate($value)   X-Ref
Checks whether the given value matches the regular expression that was given as a parameter
to the constructor (or changed later on via the setRegExp method)

param: value The string that will be validated
return: Returns true if the string matches the regular expression or false otherwise



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