Changeset 2533 for sandbox/workflow/branches/993/inc/local/classes
- Timestamp:
- 04/14/10 16:08:15 (14 years ago)
- Location:
- sandbox/workflow/branches/993/inc/local/classes
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/993/inc/local/classes/class.wf_engine.php
r2372 r2533 282 282 /* build the SQL query */ 283 283 $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; 285 285 $resultSet = $db->query($query, array($activityID, $processID)); 286 286 … … 310 310 /* build the SQL query */ 311 311 $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; 313 313 $resultSet = $db->query($query, array($activityName, $processID)); 314 314 -
sandbox/workflow/branches/993/inc/local/classes/class.wf_instance.php
r2372 r2533 92 92 { 93 93 /* load the DB */ 94 $this->db = & $GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID;94 $this->db = &Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID; 95 95 96 96 /* load the process ID from the runtime */ -
sandbox/workflow/branches/993/inc/local/classes/class.wf_ldap.php
r2372 r2533 44 44 $this->group_context = $tmpLDAP->getGroupContext(); 45 45 46 $this->ds = & $GLOBALS['workflow']['workflowObjects']->getLDAP();46 $this->ds = &Factory::getInstance('WorkflowObjects')->getLDAP(); 47 47 48 48 $this->cachedLDAP = &Factory::getInstance('wf_cached_ldap'); -
sandbox/workflow/branches/993/inc/local/classes/class.wf_location.php
r2160 r2533 36 36 function initialize() 37 37 { 38 $this->db = & $GLOBALS['workflow']['workflowObjects']->getDBExpresso()->Link_ID;38 $this->db = &Factory::getInstance('WorkflowObjects')->getDBExpresso()->Link_ID; 39 39 $this->db->setFetchMode(ADODB_FETCH_ASSOC); 40 40 $this->cityInfo = array(); -
sandbox/workflow/branches/993/inc/local/classes/class.wf_orgchart.php
r2371 r2533 24 24 function wf_orgchart() 25 25 { 26 $this->db = & $GLOBALS['workflow']['workflowObjects']->getDBWorkflow()->Link_ID;26 $this->db = &Factory::getInstance('WorkflowObjects')->getDBWorkflow()->Link_ID; 27 27 $this->db->setFetchMode(ADODB_FETCH_ASSOC); 28 28 } -
sandbox/workflow/branches/993/inc/local/classes/class.wf_role.php
r2372 r2533 57 57 $this->processID = (int) $GLOBALS['workflow']['job']['processID']; 58 58 59 $this->db = & $GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID;59 $this->db = &Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID; 60 60 $this->roleManager = Factory::getInstance('workflow_rolemanager'); 61 61 $this->activityManager = Factory::getInstance('workflow_activitymanager'); -
sandbox/workflow/branches/993/inc/local/classes/class.wf_workitem.php
r795 r2533 29 29 public function wf_workitem() 30 30 { 31 $this->db = & $GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID;31 $this->db = &Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID; 32 32 $this->processID = (int) $GLOBALS['workflow']['wf_runtime']->activity->getProcessId(); 33 33 }
Note: See TracChangeset
for help on using the changeset viewer.