...
With the first parameter parameter you can choose whitch instance the factory will create. For example if you want to get an instance of the cValidatorEmail class just type the parameter 'email'.
Code Block | ||
---|---|---|
| ||
$email = cValidatorFactory::getInstance('email'); $email->isValid('contenido@contenido.org'); |
...