Browse Source

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
mark_story 12 years ago
parent
commit
de9a5a5845
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/Cake/Controller/Controller.php

+ 2 - 0
lib/Cake/Controller/Controller.php

@@ -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();