Ubiquity 2.5.2
php rapid development framework
|
Validators manager. More...
Static Public Member Functions | |
static | start () |
static | getCacheInfo ($model) |
static | validate ($instance, $group='', $excludedValidators=[]) |
Validates an instance. | |
static | getUIConstraints ($instance, $group='', $excludedValidators=[]) |
Returns an array of UI rules for Javascript validation. | |
static | validateInstances ($instances, $group='') |
Validates an array of objects. | |
Static Public Member Functions inherited from ValidatorsManagerInitTrait | |
static | initModelsValidators (&$config, $databaseOffset='default') |
Parses models and save validators in cache to use in dev only. | |
static | initClassValidators ($class) |
Parses a class and save validators in cache to use in dev only. | |
static | addClassValidators ($class) |
Parses a class and save validators in cache. | |
static | registerType ($type, $validatorClass) |
Registers a validator type for using with @validator annotation. | |
Static Public Member Functions inherited from ValidatorsManagerCacheTrait | |
static | clearCache ($model=null, $group='') |
static | initCacheInstanceValidators ($instance, $group='') |
Initializes the cache (SessionCache) for the class of instance. | |
Static Public Attributes | |
static | $validatorTypes |
Static Protected Member Functions | |
static | getGroupArrayValidators (array $validators, $group) |
static | getGroupMemberValidators (array $validators, $group) |
static | validateInstances_ ($instances, $members) |
static | validate_ ($instance, $members, $excludedValidators=[]) |
static | getUIConstraints_ ($instance, $members, $excludedValidators=[]) |
Static Protected Member Functions inherited from ValidatorsManagerCacheTrait | |
static | getClassCacheValidators ($class, $group='') |
static | getHash ($class) |
static | getModelCacheKey ($classname) |
static | store ($model, $validators) |
static | fetch ($model) |
static | validateFromCache_ ($instance, $members, $excludedValidators=[]) |
static | getUIConstraintsFromCache_ ($instance, $members, $excludedValidators=[]) |
static | initInstancesValidators ($instance, $members, $group='') |
static | getValidatorInstance ($type) |
Static Protected Attributes | |
static | $instanceValidators = [ ] |
Static Protected Attributes inherited from ValidatorsManagerCacheTrait | |
static | $cache |
static | $key = 'contents/validators/' |
Validators manager.
Ubiquity\contents\validation$ValidatorsManager This class is part of Ubiquity
Definition at line 45 of file ValidatorsManager.php.
|
static |
Definition at line 80 of file ValidatorsManager.php.
|
staticprotected |
Definition at line 84 of file ValidatorsManager.php.
|
staticprotected |
Definition at line 95 of file ValidatorsManager.php.
|
static |
Returns an array of UI rules for Javascript validation.
$instance | ||
string | $group | |
array | $excludedValidators |
Definition at line 134 of file ValidatorsManager.php.
|
staticprotected |
Definition at line 207 of file ValidatorsManager.php.
|
static |
Definition at line 48 of file ValidatorsManager.php.
|
static |
Validates an instance.
object | $instance | |
string | $group | |
array | $excludedValidators |
Definition at line 114 of file ValidatorsManager.php.
|
staticprotected |
Definition at line 184 of file ValidatorsManager.php.
|
static |
Validates an array of objects.
array | $instances | |
string | $group |
Definition at line 154 of file ValidatorsManager.php.
|
staticprotected |
Definition at line 169 of file ValidatorsManager.php.
|
staticprotected |
Definition at line 46 of file ValidatorsManager.php.
|
static |
Definition at line 51 of file ValidatorsManager.php.