Changeset 95


Ignore:
Timestamp:
Dec 21, 2014, 10:46:18 AM (9 years ago)
Author:
chronos
Message:
  • Upraveno: Soubory různých logických částí systému odděleny do aplikačních modulů.
Location:
trunk
Files:
22 added
6 edited
42 moved

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore set to
      .buildpath
      .project
      .settings
  • trunk/www/Application/Application.php

    r93 r95  
    11<?php
    22
    3 include_once(dirname(__FILE__).'/../Application/Model/Log.php');
    4 include_once(dirname(__FILE__).'/../Application/Model/Permission.php');
    5 include_once(dirname(__FILE__).'/../Application/Model/User.php');
     3include_once(dirname(__FILE__).'/../Module/Log/Model.php');
     4include_once(dirname(__FILE__).'/../Module/Permission/Model.php');
     5include_once(dirname(__FILE__).'/../Module/User/Model.php');
    66include_once(dirname(__FILE__).'/../Base/System.php');
     7include_once(dirname(__FILE__).'/../Version.php');
    78
    89class Application extends System
     
    3031     else $this->Modules['User']->Data['Id'] = $this->Config['Web']['UserConsoleId'];
    3132    $this->Modules['Permission']->LoadForUser($this->Modules['User']->Data['Id']);
    32     //print_r($System->Modules['Permission']->Data);
    33 
    3433  }
    3534}
    36 
    37 $Application = new Application();
    38 $Application->Run();
  • trunk/www/Application/View/Page.php

    r93 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/View.php');
    4 include_once(dirname(__FILE__).'/News.php');
     4include_once(dirname(__FILE__).'/../../Module/News/View.php');
    55
    66class PageView extends View
  • trunk/www/Base/System.php

    r93 r95  
    55include_once(dirname(__FILE__).'/Table.php');
    66include_once(dirname(__FILE__).'/Error.php');
     7include_once(dirname(__FILE__).'/AppModule.php');
    78
    89$PrefixMultipliers = array
     
    117118    $this->Database = new Database($this->Config['Database']['Host'], $this->Config['Database']['User'], $this->Config['Database']['Password'], $this->Config['Database']['Database']);
    118119    $this->Database->Prefix = $this->Config['Database']['Prefix'];
    119     $this->Database->charset($this->Config['Database']['Charset']);   
     120    $this->Database->charset($this->Config['Database']['Charset']);
     121
     122    $this->ModuleManager = new AppModuleManager($this);
    120123  }
    121124 
     
    126129
    127130    $ControllerName = $Module.'Controller';
    128     $FileName = dirname(__FILE__).'/../Application/Controller/'.$Module.'.php';
     131    $FileName = dirname(__FILE__).'/../Module/'.$Module.'/Controller.php';
    129132    if(!file_exists($FileName))
    130133      echo('Soubor '.$FileName.' nenalezen.');
  • trunk/www/Include.php

    r93 r95  
    11<?php
    2 
    32
    43include('Base/Include.php');
  • trunk/www/Module/Client/Controller.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
    4 include_once(dirname(__FILE__).'/../View/Page.php');
    5 include_once(dirname(__FILE__).'/../View/Client.php');
     4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
     5include_once(dirname(__FILE__).'/View.php');
    66
    77class ClientController extends Controller
  • trunk/www/Module/Cluster/Controller.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
    4 include_once(dirname(__FILE__).'/../View/Page.php');
    5 include_once(dirname(__FILE__).'/../View/Cluster.php');
     4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
     5include_once(dirname(__FILE__).'/View.php');
    66
    77class ClusterController extends Controller
  • trunk/www/Module/Debug/Controller.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
    4 include_once(dirname(__FILE__).'/../View/Page.php');
    5 include_once(dirname(__FILE__).'/../View/Debug.php');
     4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
     5include_once(dirname(__FILE__).'/View.php');
    66
    77class DebugController extends Controller
  • trunk/www/Module/Emulator/Controller.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
    4 include_once(dirname(__FILE__).'/../View/Page.php');
    5 include_once(dirname(__FILE__).'/../View/Emulator.php');
     4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
     5include_once(dirname(__FILE__).'/View.php');
    66
    77class EmulatorController extends Controller
  • trunk/www/Module/HomePage/Controller.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
    4 include_once(dirname(__FILE__).'/../View/Page.php');
    5 include_once(dirname(__FILE__).'/../View/HomePage.php');
     4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
     5include_once(dirname(__FILE__).'/View.php');
    66
    77class HomePageController extends Controller
  • trunk/www/Module/HomePage/View.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/View.php');
    4 include_once(dirname(__FILE__).'/../Model/Platform.php');
     4include_once(dirname(__FILE__).'/../Platform/Model.php');
    55
    66class HomePageView extends View
  • trunk/www/Module/News/Controller.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
    4 include_once(dirname(__FILE__).'/../View/Page.php');
    5 include_once(dirname(__FILE__).'/../View/News.php');
     4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
     5include_once(dirname(__FILE__).'/View.php');
    66
    77class NewsController extends Controller
  • trunk/www/Module/Realm/Controller.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
    4 include_once(dirname(__FILE__).'/../View/Page.php');
    5 include_once(dirname(__FILE__).'/../View/Realm.php');
     4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
     5include_once(dirname(__FILE__).'/View.php');
    66
    77class RealmController extends Controller
  • trunk/www/Module/Server/Controller.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
    4 include_once(dirname(__FILE__).'/../View/Page.php');
    5 include_once(dirname(__FILE__).'/../View/Server.php');
     4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
     5include_once(dirname(__FILE__).'/View.php');
    66
    77class ServerController extends Controller
  • trunk/www/Module/Task/Controller.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
    4 include_once(dirname(__FILE__).'/../View/Page.php');
    5 include_once(dirname(__FILE__).'/../View/Task.php');
     4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
     5include_once(dirname(__FILE__).'/View.php');
    66
    77class TaskController extends Controller
  • trunk/www/Module/Update/Controller.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
    4 include_once(dirname(__FILE__).'/../View/Page.php');
    5 include_once(dirname(__FILE__).'/../View/Update.php');
     4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
     5include_once(dirname(__FILE__).'/View.php');
    66
    77class UpdateController extends Controller
  • trunk/www/Module/User/Controller.php

    r94 r95  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
    4 include_once(dirname(__FILE__).'/../View/Page.php');
    5 include_once(dirname(__FILE__).'/../View/User.php');
     4include_once(dirname(__FILE__).'/../../Application/View/Page.php');
     5include_once(dirname(__FILE__).'/View.php');
    66
    77class UserController extends Controller
  • trunk/www/Module/User/Model.php

    r94 r95  
    33include_once(dirname(__FILE__).'/../../Base/Model.php');
    44include_once(dirname(__FILE__).'/../../Base/Mail.php');
    5 include_once(dirname(__FILE__).'/Log.php');
     5include_once(dirname(__FILE__).'/../Log/Model.php');
    66
    77class User extends Model
  • trunk/www/index.php

    r93 r95  
    22
    33include_once(dirname(__FILE__).'/Application/Application.php');
     4
     5$Application = new Application();
     6$Application->Run();
Note: See TracChangeset for help on using the changeset viewer.