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