1 | <?php |
||
19 | class DataModel { |
||
20 | |||
21 | /** |
||
22 | * @var DataModel |
||
23 | */ |
||
24 | protected static $inst; |
||
25 | |||
26 | /** |
||
27 | * @var array $customDataLists |
||
28 | */ |
||
29 | protected $customDataLists = array(); |
||
30 | |||
31 | /** |
||
32 | * Get the global DataModel. |
||
33 | * |
||
34 | * @return DataModel |
||
35 | */ |
||
36 | public static function inst() { |
||
43 | |||
44 | /** |
||
45 | * Set the global DataModel, used when data is requested from static |
||
46 | * methods. |
||
47 | * |
||
48 | * @return DataModel |
||
49 | */ |
||
50 | public static function set_inst(DataModel $inst) { |
||
53 | |||
54 | /** |
||
55 | * @param string |
||
56 | * |
||
57 | * @return DataList |
||
58 | */ |
||
59 | public function __get($class) { |
||
69 | |||
70 | /** |
||
71 | * @param string |
||
72 | * @param DataList |
||
73 | */ |
||
74 | public function __set($class, $item) { |
||
79 | |||
80 | } |
||
81 |