// Add new username and email validation:
$User->addValidation('enforceUsernameAndEmail');
// $User->loadedValidation() would return array('enforceUsernameAndEmail')
// Reset to default state:
$User->resetValidation();
// $User->loadedValidation() would return array('_default')
// Load and set only the password validation:
$User->loadValidation('enforcePassword');
// $User->loadedValidation() would return array('enforcePassword')
// Add the other validation type also:
$User->addValidation('enforceUsernameAndEmail');
// $User->loadedValidation() would return array('enforcePassword', 'enforceUsernameAndEmail')
// Reset again to default state:
$User->resetValidation();
// $User->loadedValidation() would return array('_default')
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.