mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Deprecating a number of Controller properties and adding $request.
This commit is contained in:
parent
26f7fcef3c
commit
22161874cb
1 changed files with 12 additions and 0 deletions
|
@ -49,6 +49,7 @@ class Controller extends Object {
|
||||||
* Stores the current URL, relative to the webroot of the application.
|
* Stores the current URL, relative to the webroot of the application.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
|
* @deprecated Will be removed in future versions. Use $this->request->here instead
|
||||||
*/
|
*/
|
||||||
public $here = null;
|
public $here = null;
|
||||||
|
|
||||||
|
@ -56,6 +57,7 @@ class Controller extends Object {
|
||||||
* The webroot of the application.
|
* The webroot of the application.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
|
* @deprecated Will be removed in future versions. Use $this->request->webroot instead
|
||||||
*/
|
*/
|
||||||
public $webroot = null;
|
public $webroot = null;
|
||||||
|
|
||||||
|
@ -96,6 +98,7 @@ class Controller extends Object {
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
* @link http://book.cakephp.org/view/963/The-Parameters-Attribute-params
|
* @link http://book.cakephp.org/view/963/The-Parameters-Attribute-params
|
||||||
|
* @deprecated Will be removed in future versions. Use $this->request instead
|
||||||
*/
|
*/
|
||||||
public $params = array();
|
public $params = array();
|
||||||
|
|
||||||
|
@ -104,9 +107,17 @@ class Controller extends Object {
|
||||||
* using the `$this->data['ModelName']['fieldName']` pattern.
|
* using the `$this->data['ModelName']['fieldName']` pattern.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
|
* @deprecated Will be removed in future versions. Use $this->request->data instead
|
||||||
*/
|
*/
|
||||||
public $data = array();
|
public $data = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An instance of a CakeRequest object that contains information about the current request.
|
||||||
|
*
|
||||||
|
* @var CakeRequest
|
||||||
|
*/
|
||||||
|
public $request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds pagination defaults for controller actions. The keys that can be included
|
* Holds pagination defaults for controller actions. The keys that can be included
|
||||||
* in this array are: 'conditions', 'fields', 'order', 'limit', 'page', and 'recursive',
|
* in this array are: 'conditions', 'fields', 'order', 'limit', 'page', and 'recursive',
|
||||||
|
@ -159,6 +170,7 @@ class Controller extends Object {
|
||||||
* Base URL path.
|
* Base URL path.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
|
* @deprecated Will be removed in future versions. Use $this->request->base instead
|
||||||
*/
|
*/
|
||||||
public $base = null;
|
public $base = null;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue