source: trunk/www/Module/Emulator/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.2 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 EmulatorController extends Controller
8{
9 function ItemList()
10 {
11 $Page = new PageView($this->System);
12 $View = new EmulatorView($this->System);
13 return($Page->GetOutput($View->ItemList()));
14 }
15
16 function Show()
17 {
18 $Page = new PageView($this->System);
19 $View = new EmulatorView($this->System);
20 return($Page->GetOutput($View->Item()));
21 }
22
23 function Compile()
24 {
25 $Page = new PageView($this->System);
26 $View = new EmulatorView($this->System);
27 return($Page->GetOutput($View->Compile()));
28 }
29
30 function Download()
31 {
32 $Page = new PageView($this->System);
33 $View = new EmulatorView($this->System);
34 return($Page->GetOutput($View->Download()));
35 }
36
37 function Add()
38 {
39 $Page = new PageView($this->System);
40 $View = new EmulatorView($this->System);
41 return($Page->GetOutput($View->Add()));
42 }
43
44 function AddFinish()
45 {
46 $Page = new PageView($this->System);
47 $View = new EmulatorView($this->System);
48 return($Page->GetOutput($View->AddFinish()));
49 }
50}
Note: See TracBrowser for help on using the repository browser.