Changeset 737 for trunk/Application
- Timestamp:
- Apr 14, 2015, 10:16:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/System.php
r730 r737 179 179 if($this->Setup->CheckState()) 180 180 { 181 $this->ModuleManager->Start(); 182 } 183 } 184 181 $this->ModuleManager->Start(); 182 } 183 } 184 185 185 function Run() 186 186 { … … 196 196 { 197 197 global $argv; 198 198 199 199 $this->RunCommon(); 200 if(count($argv) > 1) 200 if(count($argv) > 1) 201 201 { 202 202 if(array_key_exists($argv[1], $this->CommandLine)) … … 206 206 { 207 207 $Class = new $Command['Callback'][0]($this); 208 $Output = $Class->$Command['Callback'][1](); 208 $Output = $Class->$Command['Callback'][1](); 209 209 } else $Output = call_user_func($Command['Callback']); 210 210 echo($Output); 211 } else echo('Command "'.$argv[1].'" not supported.'."\n"); 211 } else echo('Command "'.$argv[1].'" not supported.'."\n"); 212 212 } else echo('No command was given as parameter'."\n"); 213 213 } 214 214 215 215 function RegisterCommandLine($Name, $Callback) 216 216 { 217 217 $this->CommandLine[$Name] = array('Name' => $Name, 'Callback' => $Callback); 218 218 } 219 219 220 220 function RegisterPageBar($Name) 221 221 {
Note:
See TracChangeset
for help on using the changeset viewer.