source: trunk/www/Module/Task/Controller.php

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
3include_once(dirname(__FILE__).'/../../Base/Controller.php');
4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
5include_once(dirname(__FILE__).'/View.php');
6
7class TaskController extends Controller
8{
9 function ItemList()
10 {
11 $Page = new PageView($this->System);
12 if($this->System->Modules['Permission']->Check('Task', 'ItemList'))
13 {
14 $View = new TaskView($this->System);
15 return($Page->GetOutput($View->ItemList()));
16 } else return($Page->AccessDenied());
17 }
18
19 function ErrorLog()
20 {
21 $Page = new PageView($this->System);
22 if($this->System->Modules['Permission']->Check('Task', 'ErrorLog'))
23 {
24 $View = new TaskView($this->System);
25 return($Page->GetOutput($View->ErrorLog()));
26 } else return($Page->AccessDenied());
27 }
28
29 function StandardLog()
30 {
31 $Page = new PageView($this->System);
32 if($this->System->Modules['Permission']->Check('Task', 'StandardLog'))
33 {
34 $View = new TaskView($this->System);
35 return($Page->GetOutput($View->StandardLog()));
36 } else return($Page->AccessDenied());
37 }
38}
Note: See TracBrowser for help on using the repository browser.