source: branches/mvc/Application/Application.php

Last change on this file was 47, checked in by chronos, 10 years ago
  • Odstraněno: Zbytečná PHP ukončovací značka "?>" z konce všech souborů.
File size: 1.6 KB
Line 
1<?php
2
3include_once(dirname(__FILE__).'/../Base/System.php');
4//include_once(dirname(__FILE__).'/Model/Log.php');
5//include_once(dirname(__FILE__).'/Model/UserList.php');
6include_once(dirname(__FILE__).'/CustomOutput.php');
7
8class Application extends System
9{
10 var $DefaultModule = 'Main';
11
12 function __construct()
13 {
14 parent::__construct();
15 $this->Output = new CustomOutput($this);
16
17/* $this->Type->RegisterType('YesNo', 'Enumeration', array('Ano', 'Ne'));
18 $this->Type->RegisterType('NoYes', 'Enumeration', array('Ne', 'Ano'));
19 $this->Type->RegisterType('TaskState', 'Enumeration', array('Čekající', 'Běžící', 'Dokončeno'));
20 $this->Type->RegisterType('OnlineState', 'Enumeration', array('Nedostupný', 'Dostupný'));
21 $this->Type->RegisterType('PointerToCorporation', 'PointerOneToOne', array('Table' => 'Corporation', 'Id' => 'Id', 'Name' => 'Name'));
22 $this->Type->RegisterType('PointerToAddress', 'PointerOneToOne', array('Table' => 'Address', 'Id' => 'Id', 'Name' => 'CONCAT(Street, ", ", City)'));
23 $this->Type->RegisterType('PointerToControlCard', 'PointerOneToOne', array('Table' => 'ControlCard', 'Id' => 'Id', 'Name' => 'Name'));
24 $this->Type->RegisterType('PointerToLiftEventCode', 'PointerOneToOne', array('Table' => 'LiftEventCode', 'Id' => 'Id', 'Name' => 'Name'));
25*/
26
27 //$this->AddModule('Log');
28 //$this->AddModule('UserList');
29
30 //if(isset($_SERVER['REMOTE_ADDR'])) $this->Modules['UserList']->Check();
31 // else $this->Modules['UserList']->CurrentUser = new User(0);
32
33 //Header('Content-type: application/xhtml+xml');
34 }
35}
Note: See TracBrowser for help on using the repository browser.