Ignore:
Timestamp:
03/15/10 16:00:11 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Modificando chamadas CreateObject? para utilizarem a nova factory.

File:
1 edited

Legend:

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

    r2249 r2253  
    1010        \**************************************************************************/ 
    1111 
     12        require_once(dirname(__FILE__) . SEP . 'common.inc.php');                                /* including common deifinitions */ 
    1213        require_once(dirname(__FILE__) . SEP . 'class.WorkflowUtils.inc.php'  ); /* superclass source code       */ 
    1314        require_once(dirname(__FILE__) . SEP . 'class.basecontroller.inc.php' ); /* module controller            */ 
    1415        require_once(dirname(__FILE__) . SEP . 'class.basemodel.inc.php'      ); /* module logic                 */ 
    15         //require_once(dirname(__FILE__) . SEP . 'class.process_factory.inc.php'); /* module process factory class */ 
    1616        require_once(dirname(__FILE__) . SEP . 'class.utils.security.php'     ); /* sanitizes input data         */ 
    1717 
     
    206206                { 
    207207                        parent::WorkflowUtils(); 
    208                         $this->runtime          = CreateObject('workflow.workflow_wfruntime'); 
     208                        $this->runtime          = Factory::getInstance('workflow_wfruntime'); 
    209209                        $this->runtime->setDebug(_DEBUG); 
    210                         //$this->base_activity  = CreateObject('workflow.workflow_baseactivity'); 
    211                         //$this->process                = CreateObject('workflow.workflow_process'); 
    212                         $this->GUI              = CreateObject('workflow.workflow_gui'); 
     210                        //$this->base_activity  = Factory::getInstance('workflow_baseactivity'); 
     211                        //$this->process                = Factory::getInstance('workflow_process'); 
     212                        $this->GUI              = Factory::getInstance('workflow_gui'); 
    213213                        $this->categories       = CreateObject('phpgwapi.categories'); 
    214214 
    215                         $this->workflowSmarty = CreateObject('workflow.workflow_smarty', false); 
     215                        $this->workflowSmarty = Factory::getInstance('workflow_smarty', false); 
    216216                        // TODO: open a new connection to the database under a different username to allow privilege handling on tables 
    217217                        /* CELEPAR */ 
     
    386386                                        return false; 
    387387                                } 
    388                                 $smarty = CreateObject('workflow.process_smarty'); 
     388                                $smarty = Factory::getInstance('process_smarty'); 
    389389                        } 
    390390 
     
    399399                                /* #celepar# smarty code*/ 
    400400 
    401                                 $smarty = CreateObject('workflow.process_smarty'); 
     401                                $smarty = Factory::getInstance('process_smarty'); 
    402402 
    403403                                $smarty->template_dir  = GALAXIA_PROCESSES.SEP.$this->process->getNormalizedName().SEP.'code'.SEP.'templates'; 
Note: See TracChangeset for help on using the changeset viewer.