source:
trunk/Packages/Common/Base.php
Last change on this file was 952, checked in by , 17 months ago | |
---|---|
File size: 418 bytes |
Line | |
---|---|
1 | <?php |
2 | |
3 | class Base |
4 | { |
5 | public System $System; |
6 | public Database $Database; |
7 | |
8 | function __construct(System $System) |
9 | { |
10 | $this->System = &$System; |
11 | $this->Database = &$System->Database; |
12 | } |
13 | |
14 | static function GetClassName() |
15 | { |
16 | return get_called_class(); |
17 | } |
18 | |
19 | public function __debugInfo() |
20 | { |
21 | $Vars = get_object_vars($this); |
22 | unset($Vars['System'], $Vars['Database']); |
23 | return $Vars; |
24 | } |
25 | } |
Note:
See TracBrowser
for help on using the repository browser.