<?php

include_once(dirname(__FILE__).'/../../Base/Controller.php');
include_once(dirname(__FILE__).'/../View/Page.php');
include_once(dirname(__FILE__).'/../View/Backup.php');

class BackupController extends Controller
{
  function ItemList()
  {
    $Page = new PageView($this->System);
    $View = new BackupView($this->System);
    return($Page->GetOutput($View->ItemList()));
  }    

  function Add()
  {
    $Page = new PageView($this->System);
    $View = new BackupView($this->System);
    return($Page->GetOutput($View->Add()));
  }    

  function Restore()
  {
    $Page = new PageView($this->System);
    $View = new BackupView($this->System);
    return($Page->GetOutput($View->Restore()));
  }    
  
  function Download()
  {
    $Page = new PageView($this->System);
    $View = new BackupView($this->System);
    return($Page->GetOutput($View->Download()));
  }    
}
