Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

cValidator

 

 

 

 

Class diagramm

Methods

Method nameDescriptionExample
   
   
   
   
   
   
   
   
   
   
   
   
   
   

 

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');

Adding validator classes

  • No labels