Property | Type | Description | |
---|---|---|---|
$allowMessageFromRule | whether to use error message composed by validator declared via [[rule]] if its validation fails. If enabled, error message specified for this validator itself will appear only if attribute value is not an array. If disabled, own error message value will be used always. | ||
$rule | definition of the validation rule, which should be used on array values. It should be specified in the same format as at [[\yii\base\Model::rules()]], except it should not contain attribute list as the first element. For example: php ['integer'] ['match', 'pattern' => '/[a-z]/is'] Please refer to [[\yii\base\Model::rules()]] for more details. |
Method | Description | |
---|---|---|
init ( ) | ||
validateAttribute ( $model, $attribute ) |
Method | Description | |
---|---|---|
validateValue ( $value ) |
Method | Description | |
---|---|---|
createEmbeddedValidator ( |
Creates validator object based on the validation rule specified in [[rule]]. | |
getValidator ( |
Returns the validator declared in [[rule]]. |
public $allowMessageFromRule |
public $rule |