FUuidValidator verifies if the attribute represents an universally unique identifier
In the model we use:
public function rules() { return array( array('<attributeName>', 'ext.validators.FUuidValidator') ) }
| Parameter | Default value | Comment |
| message | the user-defined error message | |
| skipOnError | false | whether this validation rule should be skipped if when there is already a validation error for the current attribute |
| on | List of scenarios that the validator should be applied. Each array value refers to a scenario name with the same name as its array key. | |
| safe | true | whether attributes listed with this validator should be considered safe for massive assignment |
| enableClientValidation | true | whether to perform client-side validation |
| allowEmpty | true | whether the attribute value can be null or empty |
| not | false | whether to invert the validation logic. If set to true, the regular expression defined should NOT match the attribute value. |
Be the first person to leave a comment
Please login to leave your comment.