Changeset 3167 for branches/2.2/workflow/inc/class.ui_orgchart.inc.php
- Timestamp:
- 08/17/10 16:17:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/inc/class.ui_orgchart.inc.php
r795 r3167 1 1 <?php 2 2 3 3 /**************************************************************************\ 4 4 * eGroupWare * 5 5 * http://www.egroupware.org * … … 12 12 13 13 require_once(dirname(__FILE__) . SEP . 'class.ui_ajaxinterface.inc.php'); 14 require_once(dirname(__FILE__) . SEP . 'class.workflow_acl.inc.php'); 14 15 15 /** 16 16 * @package Workflow … … 47 47 function draw($tab_index = "") 48 48 { 49 $this->workflow_acl = CreateObject('workflow.workflow_acl');49 $this->workflow_acl = Factory::getInstance('workflow_acl'); 50 50 51 51 $isAdmin = $this->workflow_acl->checkWorkflowAdmin($GLOBALS['phpgw_info']['user']['account_id']); … … 63 63 64 64 $GLOBALS['phpgw_info']['flags'] = array('noheader' => false, 'nonavbar' => false, 'currentapp' => 'workflow'); 65 $smarty = CreateObject('workflow.workflow_smarty');65 $smarty = Factory::getInstance('workflow_smarty'); 66 66 67 67 $this->set_wf_session(); … … 104 104 die(); 105 105 106 require_once(dirname(__FILE__) . SEP . 'engine' . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'GraphViz.php'); 107 108 $config_values = CreateObject('phpgwapi.config','workflow'); 106 $config_values = Factory::getInstance('config', 'workflow'); 109 107 $config_values->read_repository(); 110 $conf_db = $config_values->config_data; 111 $db = CreateObject('phpgwapi.db');108 $conf_db = $config_values->config_data; 109 $db = Factory::getInstance('db'); 112 110 $db->connect( 113 111 $conf_db['database_name'], … … 122 120 $attributes['ranksep'] = '1.5 equally'; 123 121 $attributes['rankdir'] = 'LR'; 124 $graph = new Process_GraphViz(true, $attributes);122 $graph = &Factory::getInstance('Process_GraphViz', true, $attributes); 125 123 126 124 … … 153 151 return false; 154 152 155 $ldap = & $GLOBALS['workflow']['factory']->getInstance('WorkflowLDAP');153 $ldap = &Factory::getInstance('WorkflowLDAP'); 156 154 for ($i = 0; $i < count($output); $i++) 157 155 {
Note: See TracChangeset
for help on using the changeset viewer.