Changeset 95 for trunk/Packages/Common/Base.php
- Timestamp:
- Dec 6, 2021, 11:33:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Base.php
r94 r95 1 1 <?php 2 3 class System4 {5 /* @var Database */6 var $Database;7 8 function __construct()9 {10 $this->Database = new Database();11 }12 }13 2 14 3 class Base 15 4 { 16 /** @var Application */ 17 var $System; 18 /* @var Database */ 19 var $Database; 5 public System $System; 6 public Database $Database; 20 7 21 function __construct( Application$System)8 function __construct(System $System) 22 9 { 23 $this->System = $System; 24 $this->Database = $System->Database; 10 $this->System = &$System; 11 $this->Database = &$System->Database; 12 } 13 14 static function GetClassName() 15 { 16 return get_called_class(); 25 17 } 26 18 } 27 28 class Model extends Base29 {30 31 }32 33 class View extends Base34 {35 36 }37 38 class Controller extends Base39 {40 41 }
Note:
See TracChangeset
for help on using the changeset viewer.