cValidator
Class diagramm
Methods
Method name | Description | Example |
---|---|---|
How to use
$email = cValidatorFactory::getInstance('email'); var_dump($email->isValid('contenido@contenido.org'));
$email = cValidatorFactory::getInstance('email'); $email->isValid('contenido@@contenido.org');
$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');