- Timestamp:
- 03/12/10 10:59:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/609/inc/class.JobScheduler.inc.php
r795 r2233 57 57 { 58 58 $this->currentDate = new DateTime(date('Y-n-j G:i:00')); 59 $this->db = & $GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID;60 $this->jobManager = & $GLOBALS['workflow']['factory']->getInstance('WorkflowJobManager');59 $this->db = &Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID; 60 $this->jobManager = &Factory::getInstance('WorkflowJobManager'); 61 61 } 62 62 … … 171 171 $previousDir = getcwd(); 172 172 chdir(GALAXIA_LIBRARY . '/../'); 173 $output = $GLOBALS['workflow']['factory']->newInstance('Thread', 'class.JobRunner.inc.php "' . $parameters . '"');173 $output = Factory::newInstance('Thread', 'class.JobRunner.inc.php "' . $parameters . '"'); 174 174 chdir($previousDir); 175 175 return $output; … … 192 192 { 193 193 require_once 'common.inc.php'; 194 $GLOBALS['workflow']['factory']->getInstance('WorkflowMacro')->prepareEnvironment();194 Factory::getInstance('WorkflowMacro')->prepareEnvironment(); 195 195 196 196 $job = new JobScheduler();
Note: See TracChangeset
for help on using the changeset viewer.