Ignore:
Timestamp:
03/12/10 10:59:32 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Migração das classes do módulo workflow para a nova factory.

File:
1 edited

Legend:

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

    r795 r2233  
    107107                /** 
    108108                 * Fill the process bar 
    109                  *  
     109                 * 
    110110                 * @param array $proc_info 
    111111                 * @access public 
     
    116116                        //echo "proc_info: <pre>";print_r($proc_info);echo "</pre>"; 
    117117                        $this->t->set_file('proc_bar_tpl', 'proc_bar.tpl'); 
    118                         $templateServer = &$GLOBALS['workflow']['factory']->getInstance('TemplateServer'); 
     118                        $templateServer = &Factory::getInstance('TemplateServer'); 
    119119 
    120120                        if ($proc_info['wf_is_valid'] == 'y') 
     
    170170                /** 
    171171                 * Select activity representation icon 
    172                  *   
     172                 * 
    173173                 * @var string $type type of activity 
    174174                 * @var bool   $interactive interactive? 
     
    207207                                        $ic="no-activity.gif"; 
    208208                        } 
    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 
    212212                /** 
    213213                 * Translate template file 
    214                  * @param string $template_name template name  
     214                 * @param string $template_name template name 
    215215                 * @return void 
    216216                 * @access public 
     
    387387                { 
    388388                        $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 
    392392                /** 
    393393                 * Return a given duration in human readable form, usefull for workitems duration 
    394394                 * @param int $to given duration 
    395395                 * @return string given duration in human readable form 
    396                  * @access public  
     396                 * @access public 
    397397                 */ 
    398398                function time_diff($to) { 
Note: See TracChangeset for help on using the changeset viewer.