Ignore:
Timestamp:
08/17/10 16:17:12 (14 years ago)
Author:
viani
Message:

Ticket #1135 - Merged r1990:3166 from /trunk/workflow into /branches/2.2/workflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/workflow/inc/class.WorkflowUtils.inc.php

    r795 r3167  
    11<?php 
     2        require_once 'common.inc.php'; 
     3 
    24        //set here the global DEBUG level which is actually 0 (nothing) or 1 (all) 
    35        if (!defined('_DEBUG')) define('_DEBUG', 0); 
     
    102104                        $this->start            = (int)get_var('start', 'any', 0); 
    103105                        $this->search_str       = get_var('find', 'any', ''); 
    104                         $this->nextmatchs       = CreateObject('phpgwapi.nextmatchs'); 
     106                        $this->nextmatchs       = Factory::getInstance('nextmatchs'); 
    105107                } 
    106108 
    107109                /** 
    108110                 * Fill the process bar 
    109                  *  
     111                 * 
    110112                 * @param array $proc_info 
    111113                 * @access public 
     
    116118                        //echo "proc_info: <pre>";print_r($proc_info);echo "</pre>"; 
    117119                        $this->t->set_file('proc_bar_tpl', 'proc_bar.tpl'); 
    118                         $templateServer = &$GLOBALS['workflow']['factory']->getInstance('TemplateServer'); 
     120                        $templateServer = &Factory::getInstance('TemplateServer'); 
    119121 
    120122                        if ($proc_info['wf_is_valid'] == 'y') 
     
    170172                /** 
    171173                 * Select activity representation icon 
    172                  *   
     174                 * 
    173175                 * @var string $type type of activity 
    174176                 * @var bool   $interactive interactive? 
     
    207209                                        $ic="no-activity.gif"; 
    208210                        } 
    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 
    212214                /** 
    213215                 * Translate template file 
    214                  * @param string $template_name template name  
     216                 * @param string $template_name template name 
    215217                 * @return void 
    216218                 * @access public 
     
    359361                function export() 
    360362                { 
    361                         $this->process_manager  = CreateObject('workflow.workflow_processmanager'); 
     363                        $this->process_manager  = Factory::getInstance('workflow_processmanager'); 
    362364 
    363365                        // retrieve process info 
     
    387389                { 
    388390                        $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 
    392394                /** 
    393395                 * Return a given duration in human readable form, usefull for workitems duration 
    394396                 * @param int $to given duration 
    395397                 * @return string given duration in human readable form 
    396                  * @access public  
     398                 * @access public 
    397399                 */ 
    398400                function time_diff($to) { 
Note: See TracChangeset for help on using the changeset viewer.