ModelValidator (class)

Class ModelValidator

ModelValidator object encapsulates all methods related to data validations for a model It also provides an API to dynamically change validation rules for each model field.

Implements ArrayAccess to easily modify rules as usually done with Model::$validate definition array

ModelValidator implements ArrayAccess, IteratorAggregate, Countable
Package: Cake\Model
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Link: 登录查看完整内容