Changeset 2372 for sandbox/workflow/trunk/inc/engine/src/API/Instance.php
- Timestamp:
- 03/29/10 14:46:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/trunk/inc/engine/src/API/Instance.php
r795 r2372 1 1 <?php 2 2 require_once (GALAXIA_LIBRARY.SEP.'src'.SEP.'common'.SEP.'Base.php'); 3 require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'common' . SEP . 'WfSecurity.php');4 3 require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ActivityManager.php'); 5 4 … … 141 140 142 141 var $activityID = null; 143 function Instance( $db)142 function Instance() 144 143 { 145 144 $this->child_name = 'Instance'; 146 parent::Base( $db);145 parent::Base(); 147 146 } 148 147 … … 1171 1170 1172 1171 //lock rows and ensure access is granted 1173 if (!(isset($this->security))) $this->security = & new WfSecurity($this->db);1172 if (!(isset($this->security))) $this->security = &Factory::getInstance('WfSecurity', $this->db); 1174 1173 if (!($this->security->checkUserAction($activityId,$this->instanceId,'complete'))) 1175 1174 { … … 1551 1550 { 1552 1551 //we check rights for this user on the next activity 1553 if (!(isset($this->security))) $this->security = & new WfSecurity($this->db);1552 if (!(isset($this->security))) $this->security = &Factory::getInstance('WfSecurity'); 1554 1553 if ($this->security->checkUserAccess($the_next_user,$activityId)) 1555 1554 { … … 1560 1559 { 1561 1560 // then check to see if there is a default user 1562 $activity_manager = & new ActivityManager($this->db);1561 $activity_manager = &Factory::newInstance('ActivityManager'); 1563 1562 //get_default_user will give us '*' if there is no default_user or if the default user has no role 1564 1563 //mapped anymore
Note: See TracChangeset
for help on using the changeset viewer.