source: trunk/www/Module/Realm/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: 2.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 RealmController extends Controller
8{
9 function ItemList()
10 {
11 $Page = new PageView($this->System);
12 $View = new RealmView($this->System);
13 return($Page->GetOutput($View->ItemList()));
14 }
15
16 function Show()
17 {
18 $Page = new PageView($this->System);
19 $View = new RealmView($this->System);
20 return($Page->GetOutput($View->Item()));
21 }
22
23 function Add()
24 {
25 $Page = new PageView($this->System);
26 $View = new RealmView($this->System);
27 return($Page->GetOutput($View->Add()));
28 }
29
30 function Create()
31 {
32 $Page = new PageView($this->System);
33 $View = new RealmView($this->System);
34 return($Page->GetOutput($View->Create()));
35 }
36
37 function InitDatabase()
38 {
39 $Page = new PageView($this->System);
40 $View = new RealmView($this->System);
41 return($Page->GetOutput($View->InitDatabase()));
42 }
43
44 function Edit()
45 {
46 $Page = new PageView($this->System);
47 $View = new RealmView($this->System);
48 return($Page->GetOutput($View->Edit()));
49 }
50
51 function Save()
52 {
53 $Page = new PageView($this->System);
54 $View = new RealmView($this->System);
55 return($Page->GetOutput($View->Save()));
56 }
57
58 function EditDetailed()
59 {
60 $Page = new PageView($this->System);
61 $View = new RealmView($this->System);
62 return($Page->GetOutput($View->EditDetailed()));
63 }
64
65 function SaveDetailed()
66 {
67 $Page = new PageView($this->System);
68 $View = new RealmView($this->System);
69 return($Page->GetOutput($View->SaveDetailed()));
70 }
71
72 function Start()
73 {
74 $Page = new PageView($this->System);
75 $View = new RealmView($this->System);
76 return($Page->GetOutput($View->Start()));
77 }
78
79 function Stop()
80 {
81 $Page = new PageView($this->System);
82 $View = new RealmView($this->System);
83 return($Page->GetOutput($View->Stop()));
84 }
85
86 function UpdateCharacters()
87 {
88 $Page = new PageView($this->System);
89 $View = new RealmView($this->System);
90 return($Page->GetOutput($View->UpdateRealmlistAccountCount()));
91 }
92}
Note: See TracBrowser for help on using the repository browser.