Ignore:
Timestamp:
03/19/10 17:22:08 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Migrando instanciação das classes da engine para a factory.

File:
1 edited

Legend:

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

    r2292 r2311  
    1010\**************************************************************************/ 
    1111 
    12 require_once('class.so_userinterface.inc.php'); 
    1312require_once('class.bo_ajaxinterface.inc.php'); 
    1413 
    15 require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'GUI' . SEP . 'GUI.php'); 
    16 require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ActivityManager.php'); 
    1714/** 
    1815 * @package Workflow 
     
    4340        { 
    4441                parent::bo_ajaxinterface(); 
    45                 $this->so = new so_userinterface(); 
    46                 $GLOBALS['ajax']->gui = new GUI(Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID); 
     42                $this->so = &Factory::getInstance('so_userinterface'); 
     43                $GLOBALS['ajax']->gui = &Factory::newInstance('GUI'); 
    4744        } 
    4845 
     
    120117                $result = array(); 
    121118 
    122                 $process = new Process(Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID); 
     119                $process = &Factory::newInstance('Process'); 
    123120                $process->getProcess($pid); 
    124121                $result['wf_procname'] = $process->name; 
     
    126123                $result['wf_description'] = $process->description; 
    127124 
    128                 $activ_manager = new ActivityManager(Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID); 
     125                $activ_manager = &Factory::newInstance('ActivityManager'); 
    129126                $result['wf_activities'] = $activ_manager->get_process_activities($pid); 
    130127 
     
    494491                } 
    495492 
    496                 $instance = new Instance(Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID); 
     493                $instance = &Factory::newInstance('Instance'); 
    497494                $instance->getInstance($instanceID); 
    498495 
    499                 $process = new Process(Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID); 
     496                $process = &Factory::newInstance('Process'); 
    500497                $process->getProcess($instance->pId); 
    501498 
Note: See TracChangeset for help on using the changeset viewer.