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.

Location:
sandbox/workflow/branches/609/inc/local/classes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/609/inc/local/classes/class.wf_engine.php

    r2292 r2311  
    191191        function getChildInstances($instanceID = null, $activityID = null) 
    192192        { 
    193                 $WFInstance = Factory::getInstance('wf_instance'); 
     193                $WFInstance = &Factory::getInstance('wf_instance'); 
    194194                $preOutput = $WFInstance->getChildren($instanceID, $activityID); 
    195195                $output = array(); 
  • sandbox/workflow/branches/609/inc/local/classes/class.wf_instance.php

    r2292 r2311  
    423423 
    424424                /* load the required instance (for the required user) */ 
    425                 require_once GALAXIA_LIBRARY . SEP . 'src' . SEP . 'GUI' . SEP . 'GUI.php'; 
    426                 $GUI = new GUI($GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID); 
     425                $GUI = &Factory::newInstance('GUI'); 
    427426                $userInstance = $GUI->gui_list_user_instances($userID, 0, -1, '', '', "(ga.wf_is_interactive = 'y') AND (gia.wf_activity_id = {$activityID}) AND (gia.wf_instance_id = {$instanceID})", false, $this->processID, true, false, true, false, false, false); 
    428427                $userInstance = $userInstance['data']; 
  • sandbox/workflow/branches/609/inc/local/classes/class.wf_ldap.php

    r2249 r2311  
    11<?php 
    2 require_once PHPGW_SERVER_ROOT . SEP . 'workflow' . SEP . 'inc' . SEP . 'local' . SEP . 'classes' . SEP . 'class.wf_cached_ldap.php'; 
    32 
    43/** 
     
    4746                $this->ds = &$GLOBALS['workflow']['workflowObjects']->getLDAP(); 
    4847 
    49                 $this->cachedLDAP = new wf_cached_ldap(); 
     48                $this->cachedLDAP = &Factory::getInstance('wf_cached_ldap'); 
    5049                $this->cachedLDAP->setOperationMode($this->cachedLDAP->OPERATION_MODE_LDAP); 
    5150        } 
Note: See TracChangeset for help on using the changeset viewer.