mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
magic setters/getters only for e_object and NOT e_model and its children (bad things happen)
This commit is contained in:
parent
a907aac8e8
commit
a0e0ee73dc
@ -57,7 +57,7 @@ class e_object
|
||||
*/
|
||||
function __construct($data = array())
|
||||
{
|
||||
if(is_array($data)) $this->_data = $data;
|
||||
if(is_array($data)) $this->setData($data);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -477,15 +477,6 @@ class e_model extends e_object
|
||||
*/
|
||||
protected $_cache_force = false;
|
||||
|
||||
/**
|
||||
* Constructor - set data on initialization
|
||||
*
|
||||
* @param array $data
|
||||
*/
|
||||
function __construct($data = array())
|
||||
{
|
||||
$this->setData($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional DB table - used for auto-load data from the DB
|
||||
@ -1512,6 +1503,34 @@ class e_model extends e_object
|
||||
$this->_db_table = $this->_field_id = '';
|
||||
$this->data_has_changed = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable Magic setter
|
||||
*/
|
||||
public function __set($key, $value)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable Magic getter
|
||||
*/
|
||||
public function __get($key)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable
|
||||
*/
|
||||
public function __isset($key)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable
|
||||
*/
|
||||
public function __unset($key)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -131,6 +131,8 @@ class e_user_model extends e_front_model
|
||||
* @var e_user_model
|
||||
*/
|
||||
protected $_editor = null;
|
||||
|
||||
protected $_class_list;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
Loading…
x
Reference in New Issue
Block a user