- Timestamp:
- 03/29/10 14:46:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/trunk/inc/class.ui_adminactivities.inc.php
r1710 r2372 2 2 3 3 require_once dirname(__FILE__) . SEP . 'class.WorkflowUtils.inc.php'; 4 require_once dirname(__FILE__) . SEP . 'class.fsutils.inc.php'; /* toolkit for filesystem handling */5 4 require_once 'engine' . SEP . 'config.egw.inc.php'; 6 5 /** … … 73 72 parent::WorkflowUtils(); 74 73 75 $this->workflow_acl = CreateObject('workflow.workflow_acl');74 $this->workflow_acl = Factory::getInstance('workflow_acl'); 76 75 $denyAccess = true; 77 76 if ($this->workflow_acl->checkWorkflowAdmin($GLOBALS['phpgw_info']['user']['account_id'])) … … 106 105 } 107 106 108 $this->process_manager = CreateObject('workflow.workflow_processmanager');109 $this->activity_manager = CreateObject('workflow.workflow_activitymanager');110 $this->role_manager = CreateObject('workflow.workflow_rolemanager');111 $this->fs = new FsUtils(); /* gets instance */107 $this->process_manager = Factory::getInstance('workflow_processmanager'); 108 $this->activity_manager = Factory::getInstance('workflow_activitymanager'); 109 $this->role_manager = Factory::getInstance('workflow_rolemanager'); 110 $this->fs = &Factory::newInstance('FsUtils'); /* gets instance */ 112 111 113 112 } … … 374 373 // fill proc_bar 375 374 $this->t->set_var('proc_bar', $this->fill_proc_bar($proc_info)); 376 375 377 376 //collect some messages from used objects 378 377 $this->message[] = $this->activity_manager->get_error(false, _DEBUG); … … 380 379 $this->message[] = $this->role_manager->get_error(false, _DEBUG); 381 380 382 $templateServer = & $GLOBALS['workflow']['factory']->getInstance('TemplateServer');381 $templateServer = &Factory::getInstance('TemplateServer'); 383 382 384 383 // fill the general variables of the template … … 732 731 $this->translate_template('block_process_activities_header'); 733 732 $this->t->parse('process_activities_header', 'block_process_activities_header', True); 734 $templateServer = & $GLOBALS['workflow']['factory']->getInstance('TemplateServer');733 $templateServer = &Factory::getInstance('TemplateServer'); 735 734 foreach ($process_activities_data as $activity) 736 735 { … … 792 791 'trans_href_from' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=workflow.ui_adminactivities.form&where2='. $where2 .'&sort_mode2='. $sort_mode2 .'&p_id='. $this->wf_p_id .'&find='. $find .'&where='. $where .'&sort_mode='. $this->sort_mode .'&activity_id='. $transition['wf_act_from_id']), 793 792 'trans_actFromName' => $transition['wf_act_from_name'], 794 'trans_arrow' => $GLOBALS['workflow']['factory']->getInstance('TemplateServer')->generateImageLink('next.gif'),793 'trans_arrow' => Factory::getInstance('TemplateServer')->generateImageLink('next.gif'), 795 794 'trans_href_to' => $GLOBALS['phpgw']->link('/index.php', 'menuaction=workflow.ui_adminactivities.form&where2='. $where2 .'&sort_mode2='. $sort_mode2 .'&p_id='. $this->wf_p_id .'&find='. $find .'&where='. $where .'&sort_mode='. $this->sort_mode .'&activity_id='. $transition['wf_act_to_id']), 796 795 'trans_actToName' => $transition['wf_act_to_name'], … … 1036 1035 $image_name = $proc_info['wf_normalized_name'] . SEP . 'graph' . SEP . $proc_info['wf_normalized_name'] . '.png'; 1037 1036 $image = GALAXIA_PROCESSES . SEP . $image_name; 1038 if ( $GLOBALS['workflow']['factory']->getInstance('BrowserInfo')->isOpera())1037 if (Factory::getInstance('BrowserInfo')->isOpera()) 1039 1038 $maximumDimension = 1000000; 1040 1039 else … … 1069 1068 } 1070 1069 } 1071 1070 1072 1071 /** 1073 1072 * Dislays the activity agents config rows … … 1090 1089 } 1091 1090 $this->translate_template('admin_agents'); 1092 1091 $this->t->parse('agents_config_rows', 'admin_agents'); 1093 1092 } 1094 1093 }
Note: See TracChangeset
for help on using the changeset viewer.