Changeset 779 for trunk/Packages/Common
- Timestamp:
- Jan 6, 2016, 11:01:30 PM (9 years ago)
- Location:
- trunk/Packages/Common
- Files:
-
- 1 added
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/AppModule.php
r778 r779 190 190 var $System; 191 191 var $FileName; 192 var $ModulesDir; 192 193 var $OnLoadModules; 193 194 … … 197 198 $this->System = &$System; 198 199 $this->FileName = 'Config/Modules.php'; 200 $this->ModulesDir = dirname(__FILE__).'/../../Modules'; 199 201 } 200 202 … … 364 366 if(method_exists($this->OnLoadModules[0], $this->OnLoadModules[1])) 365 367 $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 1 1 <?php 2 3 class System 4 { 5 /* @var Database */ 6 var $Database; 7 8 function __construct() 9 { 10 $this->Database = new Database(); 11 } 12 } 2 13 3 14 class Base 4 15 { 5 /** @var Database */ 16 /** @var Application */ 17 var $System; 18 /* @var Database */ 6 19 var $Database; 7 /** @var System */8 var $System;9 20 10 function __construct( $System)21 function __construct(Application $System) 11 22 { 12 23 $this->System = &$System; -
trunk/Packages/Common/Common.php
r746 r779 9 9 include_once(dirname(__FILE__).'/UTF8.php'); 10 10 include_once(dirname(__FILE__).'/VarDumper.php'); 11 11 include_once(dirname(__FILE__).'/Base.php'); 12 include_once(dirname(__FILE__).'/Application.php'); 13 include_once(dirname(__FILE__).'/AppModule.php'); 12 14 13 15 class PackageCommon extends Package
Note:
See TracChangeset
for help on using the changeset viewer.