cValidator
Class diagramm
Methods
Method name | Description | Example |
---|---|---|
How to use
$email = cValidatorFactory::getInstance('email'); $email->isValid('contenido@contenido.org');
The call of the isValid method above returns true.
$email = cValidatorFactory::getInstance('email'); $email->isValid('contenido@@contenido.org');
The call of the isValid method above returns false.
$regex = cValidatorFactory::getInstance('regex'); $regex->setOption('pattern', '/CONTENIDO/'); $regex->isValid('CONTENIDO 4.9');
$regex = cValidatorFactory::getInstance('regex'); $regex->setOption('pattern', '/CONTENIDO/'); $regex->isValid('CONDENITO 4.9');