mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-06-04 22:03:33 +00:00
Changed methods and attributes from private to protected.
This commit is contained in:
parent
40654df5ab
commit
f5a54d00dd
39 changed files with 502 additions and 547 deletions
lib/Cake/Model/Datasource
|
@ -43,7 +43,7 @@ class DataSource extends Object {
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
private $__descriptions = array();
|
||||
protected $_descriptions = array();
|
||||
|
||||
/**
|
||||
* Holds a list of sources (tables) contained in the DataSource
|
||||
|
@ -123,13 +123,13 @@ class DataSource extends Object {
|
|||
}
|
||||
$table = $model->tablePrefix . $model->table;
|
||||
|
||||
if (isset($this->__descriptions[$table])) {
|
||||
return $this->__descriptions[$table];
|
||||
if (isset($this->_descriptions[$table])) {
|
||||
return $this->_descriptions[$table];
|
||||
}
|
||||
$cache = $this->__cacheDescription($table);
|
||||
|
||||
if ($cache !== null) {
|
||||
$this->__descriptions[$table] =& $cache;
|
||||
$this->_descriptions[$table] =& $cache;
|
||||
return $cache;
|
||||
}
|
||||
return null;
|
||||
|
@ -293,7 +293,7 @@ class DataSource extends Object {
|
|||
}
|
||||
|
||||
if ($data !== null) {
|
||||
$this->__descriptions[$object] =& $data;
|
||||
$this->_descriptions[$object] =& $data;
|
||||
}
|
||||
|
||||
$key = ConnectionManager::getSourceName($this) . '_' . $object;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue