Changeset 3167 for branches/2.2/workflow/inc/class.bo_adminaccess.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.bo_adminaccess.inc.php
r795 r3167 11 11 12 12 require_once('class.bo_ajaxinterface.inc.php'); 13 require_once('class.so_adminaccess.inc.php');14 require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ProcessManager.php');15 13 require_once(PHPGW_API_INC . SEP . 'common_functions.inc.php'); 16 require_once(PHPGW_API_INC . SEP . 'class.acl.inc.php');17 14 18 15 /** … … 43 40 parent::bo_ajaxinterface(); 44 41 45 if (! $GLOBALS['workflow']['factory']->getInstance('workflow_acl')->checkWorkflowAdmin($_SESSION['phpgw_info']['workflow']['account_id']))42 if (!Factory::getInstance('workflow_acl')->checkWorkflowAdmin($_SESSION['phpgw_info']['workflow']['account_id'])) 46 43 exit(serialize(array('error' => 'Você não tem permissão para executar esta operação.'))); 47 44 48 $this->so = new so_adminaccess($GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID);45 $this->so = &Factory::getInstance('so_adminaccess', Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID); 49 46 } 50 47 … … 57 54 function get_all_processes() 58 55 { 59 $proc_mng = new ProcessManager($GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID);56 $proc_mng = &Factory::newInstance('ProcessManager'); 60 57 $proc_list = $proc_mng->list_processes(0,-1,'wf_name__ASC'); 61 58 … … 315 312 { 316 313 $GLOBALS['phpgw']->db = $GLOBALS['ajax']->db; 317 $acl = new ACL();314 $acl = &Factory::getInstance('acl'); 318 315 $output = $this->so->getUserNames($acl->get_ids_for_location('admin_workflow', 1, 'workflow')); 319 316 unset($GLOBALS['phpgw']->db); … … 332 329 $ids = explode('.', str_replace('g', '', str_replace('u', '', $params['user_ids']))); 333 330 $GLOBALS['phpgw']->db = $GLOBALS['ajax']->db; 334 $acl = new ACL();331 $acl = &Factory::getInstance('acl'); 335 332 foreach ($ids as $id) 336 333 $acl->add_repository('workflow', 'admin_workflow', $id, 1); … … 350 347 { 351 348 $GLOBALS['phpgw']->db = $GLOBALS['ajax']->db; 352 $acl = new ACL();349 $acl = &Factory::getInstance('acl'); 353 350 $acl->delete_repository('workflow', 'admin_workflow', (int) $params['admin_id']); 354 351 unset($GLOBALS['phpgw']->db);
Note: See TracChangeset
for help on using the changeset viewer.