Changeset 2591 for trunk/workflow/inc/engine/src/GUI
- Timestamp:
- 04/19/10 18:18:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/engine/src/GUI/GUI.php
r795 r2591 32 32 * @access public 33 33 */ 34 function GUI( &$db)34 function GUI() 35 35 { 36 36 $this->child_name = 'GUI'; 37 parent::Base($db); 38 require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'common'.SEP.'WfSecurity.php'); 39 $this->wf_security =& new WfSecurity($this->db); 37 parent::Base(); 38 $this->wf_security = &Factory::getInstance('WfSecurity'); 40 39 } 41 40 … … 703 702 if (!(isset($this->pm))) 704 703 { 705 require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'ProcessManager'.SEP.'ProcessManager.php'); 706 $this->pm =& new ProcessManager($this->db); 704 $this->pm = &Factory::newInstance('ProcessManager'); 707 705 } 708 706 $this->process_cache[$pId]['view'] = $this->pm->get_process_view_activity($pId); … … 871 869 { 872 870 //the security object said everything was fine 873 $instance = new Instance($this->db);871 $instance = &Factory::newInstance('Instance'); 874 872 $instance->getInstance($instanceId); 875 873 if (!empty($instance->instanceId)) … … 975 973 { 976 974 //the security object said everything was fine 977 $instance = & new Instance($this->db);975 $instance = &Factory::newInstance('Instance'); 978 976 $instance->getInstance($instanceId); 979 977 // we force the execution of the activity … … 1012 1010 { 1013 1011 //the security object said everything was fine 1014 $instance = & new Instance($this->db);1012 $instance = &Factory::newInstance('Instance'); 1015 1013 $instance->getInstance($instanceId); 1016 1014 // we force the continuation of the flow
Note: See TracChangeset
for help on using the changeset viewer.