Update Helper->tagIsInvalid() documentation.

This commit is contained in:
Ber Clausen 2011-09-27 13:55:32 -03:00
parent a4fc424b40
commit b5ddd4e5b7

View file

@ -573,13 +573,13 @@ class Helper extends Overloadable {
}
/**
* Returns false if given FORM field has no errors. Otherwise it returns the constant set in
* Returns null if given FORM field has no errors. Otherwise it returns the constant set in
* the array Model->validationErrors.
*
* @param string $model Model name as a string
* @param string $field Fieldname as a string
* @param integer $modelID Unique index identifying this record within the form
* @return boolean True on errors.
* @return mixed Null if no errors, string with error otherwhise.
*/
function tagIsInvalid($model = null, $field = null, $modelID = null) {
$view =& ClassRegistry::getObject('view');