- Timestamp:
- 03/12/10 10:59:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/609/inc/class.WorkflowUtils.inc.php
r795 r2233 107 107 /** 108 108 * Fill the process bar 109 * 109 * 110 110 * @param array $proc_info 111 111 * @access public … … 116 116 //echo "proc_info: <pre>";print_r($proc_info);echo "</pre>"; 117 117 $this->t->set_file('proc_bar_tpl', 'proc_bar.tpl'); 118 $templateServer = & $GLOBALS['workflow']['factory']->getInstance('TemplateServer');118 $templateServer = &Factory::getInstance('TemplateServer'); 119 119 120 120 if ($proc_info['wf_is_valid'] == 'y') … … 170 170 /** 171 171 * Select activity representation icon 172 * 172 * 173 173 * @var string $type type of activity 174 174 * @var bool $interactive interactive? … … 207 207 $ic="no-activity.gif"; 208 208 } 209 return '<img src="'. $GLOBALS['workflow']['factory']->getInstance('TemplateServer')->generateImageLink($ic) .'" alt="'. lang($type) .'" title="'. lang($type) .'" />';210 } 211 209 return '<img src="'. Factory::getInstance('TemplateServer')->generateImageLink($ic) .'" alt="'. lang($type) .'" title="'. lang($type) .'" />'; 210 } 211 212 212 /** 213 213 * Translate template file 214 * @param string $template_name template name 214 * @param string $template_name template name 215 215 * @return void 216 216 * @access public … … 387 387 { 388 388 $file = "css/$css_name" . (($print_mode !== false) ? '_print' : '') . '.css'; 389 return $GLOBALS['workflow']['factory']->getInstance('TemplateServer')->getWebFile($file);390 } 391 389 return Factory::getInstance('TemplateServer')->getWebFile($file); 390 } 391 392 392 /** 393 393 * Return a given duration in human readable form, usefull for workitems duration 394 394 * @param int $to given duration 395 395 * @return string given duration in human readable form 396 * @access public 396 * @access public 397 397 */ 398 398 function time_diff($to) {
Note: See TracChangeset
for help on using the changeset viewer.