|
|
@@ -705,7 +705,7 @@ class Controller extends Object implements CakeEventListener {
|
|
|
*
|
|
|
* @return array Associative array of the HTTP codes as keys, and the message
|
|
|
* strings as values, or null of the given $code does not exist.
|
|
|
- * @deprecated Use CakeResponse::httpCodes();
|
|
|
+ * @deprecated Since 2.4. Will be removed in 3.0. Use CakeResponse::httpCodes().
|
|
|
*/
|
|
|
public function httpCodes($code = null) {
|
|
|
return $this->response->httpCodes($code);
|
|
|
@@ -820,7 +820,7 @@ class Controller extends Object implements CakeEventListener {
|
|
|
*
|
|
|
* @param string $status The header message that is being set.
|
|
|
* @return void
|
|
|
- * @deprecated Use CakeResponse::header()
|
|
|
+ * @deprecated Will be removed in 3.0. Use CakeResponse::header().
|
|
|
*/
|
|
|
public function header($status) {
|
|
|
$this->response->header($status);
|
|
|
@@ -978,7 +978,7 @@ class Controller extends Object implements CakeEventListener {
|
|
|
*
|
|
|
* @return void
|
|
|
* @link http://book.cakephp.org/2.0/en/controllers.html#Controller::disableCache
|
|
|
- * @deprecated Use CakeResponse::disableCache()
|
|
|
+ * @deprecated Will be removed in 3.0. Use CakeResponse::disableCache().
|
|
|
*/
|
|
|
public function disableCache() {
|
|
|
$this->response->disableCache();
|
|
|
@@ -995,6 +995,7 @@ class Controller extends Object implements CakeEventListener {
|
|
|
* @param string $layout Layout you want to use, defaults to 'flash'
|
|
|
* @return void
|
|
|
* @link http://book.cakephp.org/2.0/en/controllers.html#Controller::flash
|
|
|
+ * @deprecated Will be removed in 3.0. Use Session::setFlash().
|
|
|
*/
|
|
|
public function flash($message, $url, $pause = 1, $layout = 'flash') {
|
|
|
$this->autoRender = false;
|
|
|
@@ -1015,7 +1016,7 @@ class Controller extends Object implements CakeEventListener {
|
|
|
* @param boolean $exclusive If true, and $op is an array, fields not included in $op will not be
|
|
|
* included in the returned conditions
|
|
|
* @return array An array of model conditions
|
|
|
- * @deprecated Will be removed in 3.0
|
|
|
+ * @deprecated Will be removed in 3.0.
|
|
|
*/
|
|
|
public function postConditions($data = array(), $op = null, $bool = 'AND', $exclusive = false) {
|
|
|
if (!is_array($data) || empty($data)) {
|
|
|
@@ -1072,7 +1073,7 @@ class Controller extends Object implements CakeEventListener {
|
|
|
* @param array $whitelist List of allowed options for paging
|
|
|
* @return array Model query results
|
|
|
* @link http://book.cakephp.org/2.0/en/controllers.html#Controller::paginate
|
|
|
- * @deprecated Use PaginatorComponent instead
|
|
|
+ * @deprecated Will be removed in 3.0. Use PaginatorComponent instead.
|
|
|
*/
|
|
|
public function paginate($object = null, $scope = array(), $whitelist = array()) {
|
|
|
return $this->Components->load('Paginator', $this->paginate)->paginate($object, $scope, $whitelist);
|
|
|
@@ -1146,7 +1147,7 @@ class Controller extends Object implements CakeEventListener {
|
|
|
* @param string $method
|
|
|
* @return boolean
|
|
|
* @see Controller::beforeScaffold()
|
|
|
- * @deprecated
|
|
|
+ * @deprecated Will be removed in 3.0.
|
|
|
*/
|
|
|
protected function _beforeScaffold($method) {
|
|
|
return $this->beforeScaffold($method);
|
|
|
@@ -1169,7 +1170,7 @@ class Controller extends Object implements CakeEventListener {
|
|
|
* @param string $method
|
|
|
* @return boolean
|
|
|
* @see Controller::afterScaffoldSave()
|
|
|
- * @deprecated
|
|
|
+ * @deprecated Will be removed in 3.0.
|
|
|
*/
|
|
|
protected function _afterScaffoldSave($method) {
|
|
|
return $this->afterScaffoldSave($method);
|
|
|
@@ -1192,7 +1193,7 @@ class Controller extends Object implements CakeEventListener {
|
|
|
* @param string $method
|
|
|
* @return boolean
|
|
|
* @see Controller::afterScaffoldSaveError()
|
|
|
- * @deprecated
|
|
|
+ * @deprecated Will be removed in 3.0.
|
|
|
*/
|
|
|
protected function _afterScaffoldSaveError($method) {
|
|
|
return $this->afterScaffoldSaveError($method);
|
|
|
@@ -1217,7 +1218,7 @@ class Controller extends Object implements CakeEventListener {
|
|
|
* @param string $method
|
|
|
* @return boolean
|
|
|
* @see Controller::scaffoldError()
|
|
|
- * @deprecated
|
|
|
+ * @deprecated Will be removed in 3.0.
|
|
|
*/
|
|
|
protected function _scaffoldError($method) {
|
|
|
return $this->scaffoldError($method);
|