Last change
on this file was 17, checked in by chronos, 8 years ago |
- Modified: Old database class replaced by newer from Common package to fix compatibility with PHP7.
|
File size:
453 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | class System
|
---|
4 | {
|
---|
5 | /* @var Database */
|
---|
6 | var $Database;
|
---|
7 |
|
---|
8 | function __construct()
|
---|
9 | {
|
---|
10 | $this->Database = new Database();
|
---|
11 | }
|
---|
12 | }
|
---|
13 |
|
---|
14 | class Base
|
---|
15 | {
|
---|
16 | /** @var Application */
|
---|
17 | var $System;
|
---|
18 | /* @var Database */
|
---|
19 | var $Database;
|
---|
20 |
|
---|
21 | function __construct(Application $System)
|
---|
22 | {
|
---|
23 | $this->System = &$System;
|
---|
24 | $this->Database = &$System->Database;
|
---|
25 | }
|
---|
26 | }
|
---|
27 |
|
---|
28 | class Model extends Base
|
---|
29 | {
|
---|
30 |
|
---|
31 | }
|
---|
32 |
|
---|
33 | class View extends Base
|
---|
34 | {
|
---|
35 |
|
---|
36 | }
|
---|
37 |
|
---|
38 | class Controller extends Base
|
---|
39 | {
|
---|
40 |
|
---|
41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.