Changeset 3167 for branches/2.2/workflow/inc/class.WorkflowUtils.inc.php
- Timestamp:
- 08/17/10 16:17:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/inc/class.WorkflowUtils.inc.php
r795 r3167 1 1 <?php 2 require_once 'common.inc.php'; 3 2 4 //set here the global DEBUG level which is actually 0 (nothing) or 1 (all) 3 5 if (!defined('_DEBUG')) define('_DEBUG', 0); … … 102 104 $this->start = (int)get_var('start', 'any', 0); 103 105 $this->search_str = get_var('find', 'any', ''); 104 $this->nextmatchs = CreateObject('phpgwapi.nextmatchs');106 $this->nextmatchs = Factory::getInstance('nextmatchs'); 105 107 } 106 108 107 109 /** 108 110 * Fill the process bar 109 * 111 * 110 112 * @param array $proc_info 111 113 * @access public … … 116 118 //echo "proc_info: <pre>";print_r($proc_info);echo "</pre>"; 117 119 $this->t->set_file('proc_bar_tpl', 'proc_bar.tpl'); 118 $templateServer = & $GLOBALS['workflow']['factory']->getInstance('TemplateServer');120 $templateServer = &Factory::getInstance('TemplateServer'); 119 121 120 122 if ($proc_info['wf_is_valid'] == 'y') … … 170 172 /** 171 173 * Select activity representation icon 172 * 174 * 173 175 * @var string $type type of activity 174 176 * @var bool $interactive interactive? … … 207 209 $ic="no-activity.gif"; 208 210 } 209 return '<img src="'. $GLOBALS['workflow']['factory']->getInstance('TemplateServer')->generateImageLink($ic) .'" alt="'. lang($type) .'" title="'. lang($type) .'" />';210 } 211 211 return '<img src="'. Factory::getInstance('TemplateServer')->generateImageLink($ic) .'" alt="'. lang($type) .'" title="'. lang($type) .'" />'; 212 } 213 212 214 /** 213 215 * Translate template file 214 * @param string $template_name template name 216 * @param string $template_name template name 215 217 * @return void 216 218 * @access public … … 359 361 function export() 360 362 { 361 $this->process_manager = CreateObject('workflow.workflow_processmanager');363 $this->process_manager = Factory::getInstance('workflow_processmanager'); 362 364 363 365 // retrieve process info … … 387 389 { 388 390 $file = "css/$css_name" . (($print_mode !== false) ? '_print' : '') . '.css'; 389 return $GLOBALS['workflow']['factory']->getInstance('TemplateServer')->getWebFile($file);390 } 391 391 return Factory::getInstance('TemplateServer')->getWebFile($file); 392 } 393 392 394 /** 393 395 * Return a given duration in human readable form, usefull for workitems duration 394 396 * @param int $to given duration 395 397 * @return string given duration in human readable form 396 * @access public 398 * @access public 397 399 */ 398 400 function time_diff($to) {
Note: See TracChangeset
for help on using the changeset viewer.