source: trunk/www/Application/Controller/User.php@ 78

Last change on this file since 78 was 78, checked in by george, 16 years ago
  • Upraveno: Zrušeny samostatné include soubory a správně vloženy přímé závislosti pomocí include_once do všech souborů. Takto se budou načítat jen ty třídy, které jsou skutenčě potřeba.
  • Upraveno: Aplikace se nyní inicializuje přes soubor Application.php, kde je vložena třída odvozená z třídy System. Hlavní soubor index.php se pak odkazuje na soubor aplikace.
  • Objekty Database, Config a Translation jsou nyní lokální v rámci třídy System.
  • Přidáno: Třída pro odesílání pošty. Použita v třídě User.
File size: 2.1 KB
Line 
1<?php
2
3include_once(dirname(__FILE__).'/../../Base/Controller.php');
4include_once(dirname(__FILE__).'/../View/Page.php');
5include_once(dirname(__FILE__).'/../View/User.php');
6
7class UserController extends Controller
8{
9 function Login()
10 {
11 $Page = new PageView($this->System);
12 $View = new UserView($this->System);
13 return($Page->GetOutput($View->Login()));
14 }
15
16 function LoginFinish()
17 {
18 $Page = new PageView($this->System);
19 $View = new UserView($this->System);
20 return($Page->GetOutput($View->LoginFinish()));
21 }
22
23 function Logout()
24 {
25 $Page = new PageView($this->System);
26 $View = new UserView($this->System);
27 return($Page->GetOutput($View->Logout()));
28 }
29
30 function Options()
31 {
32 $Page = new PageView($this->System);
33 $View = new UserView($this->System);
34 return($Page->GetOutput($View->Options()));
35 }
36
37 function OptionsSave()
38 {
39 $Page = new PageView($this->System);
40 $View = new UserView($this->System);
41 return($Page->GetOutput($View->OptionsSave()));
42 }
43
44 function Register()
45 {
46 $Page = new PageView($this->System);
47 $View = new UserView($this->System);
48 return($Page->GetOutput($View->Register()));
49 }
50
51 function RegisterConfirm()
52 {
53 $Page = new PageView($this->System);
54 $View = new UserView($this->System);
55 return($Page->GetOutput($View->Confirm()));
56 }
57
58 function PasswordRecovery()
59 {
60 $Page = new PageView($this->System);
61 $View = new UserView($this->System);
62 return($Page->GetOutput($View->PasswordRecovery()));
63 }
64
65 function PasswordRecoveryFinish()
66 {
67 $Page = new PageView($this->System);
68 $View = new UserView($this->System);
69 return($Page->GetOutput($View->PasswordRecovery()));
70 }
71
72 function PasswordRecoveryConfirm()
73 {
74 $Page = new PageView($this->System);
75 $View = new UserView($this->System);
76 return($Page->GetOutput($View->PasswordRecoveryConfirm()));
77 }
78
79 function RegisterSave()
80 {
81 $Page = new PageView($this->System);
82 $View = new UserView($this->System);
83 return($Page->GetOutput($View->RegisterSave()));
84 }
85}
86
87?>
Note: See TracBrowser for help on using the repository browser.