Last change
on this file was 95, checked in by chronos, 10 years ago |
- Upraveno: Soubory různých logických částí systému odděleny do aplikačních modulů.
|
File size:
1.1 KB
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | include_once(dirname(__FILE__).'/../../Base/Controller.php');
|
---|
4 | include_once(dirname(__FILE__).'/../../Application/View/Page.php');
|
---|
5 | include_once(dirname(__FILE__).'/View.php');
|
---|
6 |
|
---|
7 | class HomePageController extends Controller
|
---|
8 | {
|
---|
9 | function Show()
|
---|
10 | {
|
---|
11 | $Page = new PageView($this->System);
|
---|
12 | if($this->System->Modules['Permission']->Check('HomePage', 'Show'))
|
---|
13 | {
|
---|
14 | $View = new HomePageView($this->System);
|
---|
15 | return($Page->GetOutput($View->Welcome()));
|
---|
16 | } else return($Page->AccessDenied());
|
---|
17 | }
|
---|
18 |
|
---|
19 | function Info()
|
---|
20 | {
|
---|
21 | $Page = new PageView($this->System);
|
---|
22 | if($this->System->Modules['Permission']->Check('HomePage', 'Info'))
|
---|
23 | {
|
---|
24 | $View = new HomePageView($this->System);
|
---|
25 | return($Page->GetOutput($View->Info()));
|
---|
26 | } else return($Page->AccessDenied());
|
---|
27 | }
|
---|
28 |
|
---|
29 | function State()
|
---|
30 | {
|
---|
31 | $Page = new PageView($this->System);
|
---|
32 | if($this->System->Modules['Permission']->Check('HomePage', 'State'))
|
---|
33 | {
|
---|
34 | $View = new HomePageView($this->System);
|
---|
35 | return($Page->GetOutput($View->State()));
|
---|
36 | } else return($Page->AccessDenied());
|
---|
37 | }
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.