- Timestamp:
- 03/12/10 10:59:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/609/inc/class.bo_userinterface.inc.php
r2085 r2233 43 43 function bo_userinterface() 44 44 { 45 parent::bo_ajaxinterface(); 45 parent::bo_ajaxinterface(); 46 46 $this->so = new so_userinterface(); 47 $GLOBALS['ajax']->gui = new GUI( $GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID);47 $GLOBALS['ajax']->gui = new GUI(Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID); 48 48 } 49 49 … … 68 68 $webserver_url = $_SESSION['phpgw_info']['workflow']['server']['webserver_url']; 69 69 70 $templateServer = &$GLOBALS['workflow']['factory']->getInstance('TemplateServer');70 $templateServer =& Factory::getInstance('TemplateServer'); 71 71 foreach ($result['data'] as $line) 72 72 { … … 78 78 $iconweb = $webserver_url . '/workflow/redirect.php?pid=' . $line['wf_p_id'] . '&file=/icon.png'; 79 79 else 80 $iconweb = $templateServer->generateImageLink(' navbar.png');80 $iconweb = $templateServer->generateImageLink('default_process.png'); 81 81 $procname_ver = $line['wf_normalized_name']; 82 82 if (!isset($recset[$procname_ver])) … … 120 120 $pid = $params['pid']; 121 121 $result = array(); 122 123 $process = new Process( $GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID);122 123 $process = new Process(Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID); 124 124 $process->getProcess($pid); 125 125 $result['wf_procname'] = $process->name; 126 126 $result['wf_version'] = $process->version; 127 127 $result['wf_description'] = $process->description; 128 129 $activ_manager = new ActivityManager( $GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID);128 129 $activ_manager = new ActivityManager(Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID); 130 130 $result['wf_activities'] = $activ_manager->get_process_activities($pid); 131 132 $this->disconnect_all(); 133 134 return $result; 131 132 $this->disconnect_all(); 133 134 return $result; 135 135 } 136 136 … … 263 263 else 264 264 if ($row['wf_user'] != '') 265 $row['wf_user_fullname'] = $GLOBALS['workflow']['factory']->getInstance('WorkflowLDAP')->getName($row['wf_user']);265 $row['wf_user_fullname'] = Factory::getInstance('WorkflowLDAP')->getName($row['wf_user']); 266 266 267 267 /* unset unneeded information */ … … 495 495 } 496 496 497 $instance = new Instance( $GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID);497 $instance = new Instance(Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID); 498 498 $instance->getInstance($instanceID); 499 499 500 $process = new Process( $GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID);500 $process = new Process(Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID); 501 501 $process->getProcess($instance->pId); 502 502 … … 508 508 'wf_instance_id' => $instance->instanceId, 509 509 'wf_priority' => $instance->priority, 510 'wf_owner' => $GLOBALS['workflow']['factory']->getInstance('WorkflowLDAP')->getName($instance->owner),510 'wf_owner' => Factory::getInstance('WorkflowLDAP')->getName($instance->owner), 511 511 'wf_next_activity' => $instance->nextActivity, 512 'wf_next_user' => $GLOBALS['workflow']['factory']->getInstance('WorkflowLDAP')->getName($instance->nextUser),512 'wf_next_user' => Factory::getInstance('WorkflowLDAP')->getName($instance->nextUser), 513 513 'wf_name' => $instance->name, 514 514 'wf_category' => $instance->category, … … 526 526 $result['wf_ended'] = ""; 527 527 528 $ldap = & $GLOBALS['workflow']['factory']->getInstance('WorkflowLDAP');528 $ldap = &Factory::getInstance('WorkflowLDAP'); 529 529 foreach ($instance->workitems as $line) 530 530 { … … 657 657 $cod_process = array(); 658 658 659 $ldap = & $GLOBALS['workflow']['factory']->getInstance('WorkflowLDAP');659 $ldap = &Factory::getInstance('WorkflowLDAP'); 660 660 $viewActivitiesID = array(); 661 661 foreach ($result['data'] as $row) … … 740 740 /** 741 741 * Aplicacoes externas do usuario 742 * @return array 742 * @return array 743 743 * @access public 744 744 */ … … 746 746 { 747 747 $webserver_url = $_SESSION['phpgw_info']['workflow']['server']['webserver_url']; 748 $templateServer = & $GLOBALS['workflow']['factory']->getInstance('TemplateServer');748 $templateServer = &Factory::getInstance('TemplateServer'); 749 749 750 750 /* load the sites that the user can access */
Note: See TracChangeset
for help on using the changeset viewer.