Add deprecated flag to methods that are removed in 3.0.

A few methods in Controller were not marked as deprecated, but already
removed in 3.0. Shore up that difference.

Refs #3105
This commit is contained in:
mark_story 2014-03-23 20:40:17 -04:00
parent 75fcc7c2f8
commit de9a5a5845

View file

@ -874,6 +874,7 @@ class Controller extends Object implements CakeEventListener {
* Returns number of errors in a submitted FORM.
*
* @return integer Number of errors
* @deprecated This method will be removed in 3.0
*/
public function validate() {
$args = func_get_args();
@ -892,6 +893,7 @@ class Controller extends Object implements CakeEventListener {
*
* @param mixed A list of models as a variable argument
* @return array Validation errors, or false if none
* @deprecated This method will be removed in 3.0
*/
public function validateErrors() {
$objects = func_get_args();