source: trunk/www/Module/Server/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.5 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 ServerController extends Controller
8{
9 function Add()
10 {
11 $Page = new PageView($this->System);
12 $View = new ServerView($this->System);
13 return($Page->GetOutput($View->Add()));
14 }
15
16 function Create()
17 {
18 $Page = new PageView($this->System);
19 $View = new ServerView($this->System);
20 return($Page->GetOutput($View->Create()));
21 }
22
23 function Show()
24 {
25 $Page = new PageView($this->System);
26 $View = new ServerView($this->System);
27 return($Page->GetOutput($View->Item()));
28 }
29
30 function Edit()
31 {
32 $Page = new PageView($this->System);
33 $View = new ServerView($this->System);
34 return($Page->GetOutput($View->Edit()));
35 }
36
37 function Save()
38 {
39 $Page = new PageView($this->System);
40 $View = new ServerView($this->System);
41 return($Page->GetOutput($View->Save()));
42 }
43
44 function Start()
45 {
46 $Page = new PageView($this->System);
47 $View = new ServerView($this->System);
48 return($Page->GetOutput($View->Start()));
49 }
50
51 function Stop()
52 {
53 $Page = new PageView($this->System);
54 $View = new ServerView($this->System);
55 return($Page->GetOutput($View->Stop()));
56 }
57
58 function DatabaseImport()
59 {
60 $Page = new PageView($this->System);
61 $View = new DatabaseView($this->System);
62 return($Page->GetOutput($View->Import()));
63 }
64
65 function ItemList()
66 {
67 $Page = new PageView($this->System);
68 $View = new ServerView($this->System);
69 return($Page->GetOutput($View->ItemList()));
70 }
71
72 function GameAccountRegister()
73 {
74 $Page = new PageView($this->System);
75 $View = new ServerView($this->System);
76 return($Page->GetOutput($View->AccountCreate()));
77 }
78
79 function GameAccountRegisterFinish()
80 {
81 $Page = new PageView($this->System);
82 $View = new ServerView($this->System);
83 return($Page->GetOutput($View->AccountCreateFinish()));
84 }
85
86 function RealmList()
87 {
88 $View = new ServerView($this->System);
89 $View->RealmListfile();
90 }
91
92 function PatchList()
93 {
94 $View = new ServerView($this->System);
95 $View->PatchList();
96 }
97
98 function XMLExport()
99 {
100 $View = new ServerView($this->System);
101 $View->XMLExport();
102 }
103
104 function UnLock()
105 {
106 $Model = new Server($this->System, $_GET['Id']);
107 $Model->UnLock();
108 }
109
110 function Lock()
111 {
112 $Model = new Server($this->System, $_GET['Id']);
113 $Model->Lock();
114 }
115}
Note: See TracBrowser for help on using the repository browser.