Ignore:
Timestamp:
04/19/10 16:35:19 (14 years ago)
Author:
rufino
Message:

Ticket #1015 - Merged 2372:2466 /sandbox/workflow/trunk em /sandbox/workflow/branches/1015

Location:
sandbox/workflow/branches/1015/inc/local/classes
Files:
7 edited

Legend:

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

    r2372 r2588  
    282282                /* build the SQL query */ 
    283283                $query = "SELECT wf_activity_id, wf_name, wf_normalized_name, wf_type, wf_description FROM egw_wf_activities WHERE (wf_activity_id = ?) AND (wf_p_id = ?)"; 
    284                 $db = &$GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID; 
     284                $db = &Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID; 
    285285                $resultSet = $db->query($query, array($activityID, $processID)); 
    286286 
     
    310310                /* build the SQL query */ 
    311311                $query = "SELECT wf_activity_id, wf_name, wf_normalized_name, wf_type, wf_description FROM egw_wf_activities WHERE (wf_name = ?) AND (wf_p_id = ?)"; 
    312                 $db = &$GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID; 
     312                $db = &Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID; 
    313313                $resultSet = $db->query($query, array($activityName, $processID)); 
    314314 
  • sandbox/workflow/branches/1015/inc/local/classes/class.wf_instance.php

    r2372 r2588  
    9292        { 
    9393                /* load the DB */ 
    94                 $this->db = &$GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID; 
     94                $this->db = &Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID; 
    9595 
    9696                /* load the process ID from the runtime */ 
  • sandbox/workflow/branches/1015/inc/local/classes/class.wf_ldap.php

    r2372 r2588  
    4444                $this->group_context = $tmpLDAP->getGroupContext(); 
    4545 
    46                 $this->ds = &$GLOBALS['workflow']['workflowObjects']->getLDAP(); 
     46                $this->ds = &Factory::getInstance('WorkflowObjects')->getLDAP(); 
    4747 
    4848                $this->cachedLDAP = &Factory::getInstance('wf_cached_ldap'); 
  • sandbox/workflow/branches/1015/inc/local/classes/class.wf_location.php

    r2160 r2588  
    3636        function initialize() 
    3737        { 
    38                 $this->db = &$GLOBALS['workflow']['workflowObjects']->getDBExpresso()->Link_ID; 
     38                $this->db = &Factory::getInstance('WorkflowObjects')->getDBExpresso()->Link_ID; 
    3939                $this->db->setFetchMode(ADODB_FETCH_ASSOC); 
    4040                $this->cityInfo = array(); 
  • sandbox/workflow/branches/1015/inc/local/classes/class.wf_orgchart.php

    r2371 r2588  
    2424        function wf_orgchart() 
    2525        { 
    26                 $this->db = &$GLOBALS['workflow']['workflowObjects']->getDBWorkflow()->Link_ID; 
     26                $this->db = &Factory::getInstance('WorkflowObjects')->getDBWorkflow()->Link_ID; 
    2727                $this->db->setFetchMode(ADODB_FETCH_ASSOC); 
    2828        } 
  • sandbox/workflow/branches/1015/inc/local/classes/class.wf_role.php

    r2372 r2588  
    5757                        $this->processID = (int) $GLOBALS['workflow']['job']['processID']; 
    5858 
    59                 $this->db = &$GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID; 
     59                $this->db = &Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID; 
    6060                $this->roleManager = Factory::getInstance('workflow_rolemanager'); 
    6161                $this->activityManager = Factory::getInstance('workflow_activitymanager'); 
  • sandbox/workflow/branches/1015/inc/local/classes/class.wf_workitem.php

    r795 r2588  
    2929        public function wf_workitem() 
    3030        { 
    31                 $this->db = &$GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID; 
     31                $this->db = &Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID; 
    3232                $this->processID = (int) $GLOBALS['workflow']['wf_runtime']->activity->getProcessId(); 
    3333        } 
Note: See TracChangeset for help on using the changeset viewer.