Changeset 556 for trunk/Common/AppModule.php
- Timestamp:
- Jul 15, 2013, 11:23:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/AppModule.php
r548 r556 48 48 { 49 49 var $Modules; 50 var $System; 50 51 51 function __construct( )52 function __construct($System) 52 53 { 53 $this->Modules = array(); 54 $this->Modules = array(); 55 $this->System = &$System; 54 56 } 55 57 … … 99 101 return(''); 100 102 } 101 103 104 function LoadModulesFromDir($Directory) 105 { 106 $List = scandir($Directory); 107 foreach($List as $Item) 108 { 109 if(is_dir($Directory.'/'.$Item) and ($Item != '.') and ($Item != '..')) 110 { 111 include_once($Directory.'/'.$Item.'/'.$Item.'.php'); 112 $ModuleName = 'Module'.$Item; 113 $this->RegisterModule(new $ModuleName($this->System)); 114 } 115 } 116 } 102 117 }
Note:
See TracChangeset
for help on using the changeset viewer.