|
Last change
on this file was 95, checked in by chronos, 11 years ago |
- Upraveno: Soubory různých logických částí systému odděleny do aplikačních modulů.
|
|
File size:
885 bytes
|
| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | include_once(dirname(__FILE__).'/../../Base/Controller.php');
|
|---|
| 4 | include_once(dirname(__FILE__).'/../View/Page.php');
|
|---|
| 5 | include_once(dirname(__FILE__).'/../View/Backup.php');
|
|---|
| 6 |
|
|---|
| 7 | class BackupController extends Controller
|
|---|
| 8 | {
|
|---|
| 9 | function ItemList()
|
|---|
| 10 | {
|
|---|
| 11 | $Page = new PageView($this->System);
|
|---|
| 12 | $View = new BackupView($this->System);
|
|---|
| 13 | return($Page->GetOutput($View->ItemList()));
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | function Add()
|
|---|
| 17 | {
|
|---|
| 18 | $Page = new PageView($this->System);
|
|---|
| 19 | $View = new BackupView($this->System);
|
|---|
| 20 | return($Page->GetOutput($View->Add()));
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | function Restore()
|
|---|
| 24 | {
|
|---|
| 25 | $Page = new PageView($this->System);
|
|---|
| 26 | $View = new BackupView($this->System);
|
|---|
| 27 | return($Page->GetOutput($View->Restore()));
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 | function Download()
|
|---|
| 31 | {
|
|---|
| 32 | $Page = new PageView($this->System);
|
|---|
| 33 | $View = new BackupView($this->System);
|
|---|
| 34 | return($Page->GetOutput($View->Download()));
|
|---|
| 35 | }
|
|---|
| 36 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.