Updating doc blocks for model::validates.

This commit is contained in:
mark_story 2009-12-03 00:53:31 -05:00
parent 6046528744
commit be64f26f9f

View file

@ -2333,6 +2333,8 @@ class Model extends Overloadable {
/**
* Returns true if all fields pass validation.
*
* Will validate the currently set data. Use Model::set() or Model::create() to set the active data.
*
* @param string $options An optional array of custom options to be made available in the beforeValidate callback
* @return boolean True if there are no errors
* @access public
@ -2350,6 +2352,7 @@ class Model extends Overloadable {
*
* @param string $options An optional array of custom options to be made available in the beforeValidate callback
* @return array Array of invalid fields
* @see Model::validates()
* @access public
* @link http://book.cakephp.org/view/410/Validating-Data-from-the-Controller
*/