Changeset 779 for trunk/Packages/Common


Ignore:
Timestamp:
Jan 6, 2016, 11:01:30 PM (9 years ago)
Author:
chronos
Message:
  • Moved: Application, Base and AppModule to Common Package.
  • Modified: Main application class renamed to Core.
Location:
trunk/Packages/Common
Files:
1 added
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/AppModule.php

    r778 r779  
    190190  var $System;
    191191  var $FileName;
     192  var $ModulesDir;
    192193  var $OnLoadModules;
    193194
     
    197198    $this->System = &$System;
    198199    $this->FileName = 'Config/Modules.php';
     200    $this->ModulesDir = dirname(__FILE__).'/../../Modules';
    199201  }
    200202
     
    364366    if(method_exists($this->OnLoadModules[0], $this->OnLoadModules[1]))
    365367      $this->OnLoadModules();
    366     else $this->LoadModulesFromDir(dirname(__FILE__).'/../Modules');
    367   }
    368 }
     368    else $this->LoadModulesFromDir($this->ModulesDir);
     369  }
     370}
  • trunk/Packages/Common/Base.php

    r778 r779  
    11<?php
     2
     3class System
     4{
     5  /* @var Database */
     6  var $Database;
     7
     8  function __construct()
     9  {
     10    $this->Database = new Database();
     11  }
     12}
    213
    314class Base
    415{
    5   /** @var Database */
     16  /** @var Application */
     17  var $System;
     18  /* @var Database */
    619  var $Database;
    7   /** @var System */
    8   var $System;
    920
    10   function __construct($System)
     21  function __construct(Application $System)
    1122  {
    1223    $this->System = &$System;
  • trunk/Packages/Common/Common.php

    r746 r779  
    99include_once(dirname(__FILE__).'/UTF8.php');
    1010include_once(dirname(__FILE__).'/VarDumper.php');
    11 
     11include_once(dirname(__FILE__).'/Base.php');
     12include_once(dirname(__FILE__).'/Application.php');
     13include_once(dirname(__FILE__).'/AppModule.php');
    1214
    1315class PackageCommon extends Package
Note: See TracChangeset for help on using the changeset viewer.