Changeset 2960
- Timestamp:
- 06/18/10 17:26:16 (14 years ago)
- Location:
- trunk/workflow/inc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/engine/src/API/BaseActivity.php
r2591 r2960 88 88 function setDb(&$db) 89 89 { 90 wf_warn_deprecated_method(); 90 91 $this->db =& $db; 91 92 } … … 554 555 function checkUserRole($user,$rolename) 555 556 { 557 wf_warn_deprecated_method(); 556 558 $this->error[] = 'use of an old deprecated function checkUserRole, return always false'; 557 559 return false; -
trunk/workflow/inc/engine/src/ProcessMonitor/ProcessMonitor.php
r2591 r2960 62 62 */ 63 63 function update_instance_status($iid,$status) { 64 wf_warn_deprecated_method(); 64 65 return; 65 66 $query = "update `".GALAXIA_TABLE_PREFIX."instances` set `wf_status`=? where `wf_instance_id`=?"; … … 72 73 */ 73 74 function update_instance_activity_status($iid,$activityId,$status) { 75 wf_warn_deprecated_method(); 74 76 return; 75 77 $query = "update `".GALAXIA_TABLE_PREFIX."instance_activities` set `wf_status`=? where `wf_instance_id`=? and `wf_activity_id`=?"; -
trunk/workflow/inc/local/classes/class.wf_engine.php
r2838 r2960 90 90 function continueInstance($activityID, $instanceID) 91 91 { 92 wf_warn_deprecated_method('wf_instance', 'continueInstance'); 92 93 $WFInstance = &Factory::getInstance('wf_instance'); 93 94 return $WFInstance->continueInstance($activityID, $instanceID); … … 103 104 function abortInstance($instanceID) 104 105 { 106 wf_warn_deprecated_method('wf_instance', 'abort'); 105 107 $WFInstance = &Factory::getInstance('wf_instance'); 106 108 return $WFInstance->abort($instanceID); … … 117 119 function setInstanceName($instanceID, $name) 118 120 { 121 wf_warn_deprecated_method('wf_instance', 'setName'); 119 122 $WFInstance = &Factory::getInstance('wf_instance'); 120 123 return $WFInstance->setName($instanceID, $name); … … 131 134 function setInstancePriority($instanceID, $priority) 132 135 { 136 wf_warn_deprecated_method('wf_instance', 'setPriority'); 133 137 $WFInstance = &Factory::getInstance('wf_instance'); 134 138 return $WFInstance->setPriority($instanceID, $priority); … … 145 149 function getIdleInstances($numberOfDays, $activities = null) 146 150 { 151 wf_warn_deprecated_method('wf_instance', 'getIdle'); 147 152 $WFInstance = &Factory::getInstance('wf_instance'); 148 153 return $WFInstance->getIdle($numberOfDays, $activities); … … 158 163 function getInstances($activities = null) 159 164 { 165 wf_warn_deprecated_method('wf_instance', 'getIdle'); 160 166 return $this->getIdleInstances(0, $activities); 161 167 } … … 170 176 function getInstancesByName($name) 171 177 { 178 wf_warn_deprecated_method('wf_instance', 'getByName'); 172 179 $WFInstance = &Factory::getInstance('wf_instance'); 173 180 $preOutput = $WFInstance->getByName($name); … … 191 198 function getChildInstances($instanceID = null, $activityID = null) 192 199 { 200 wf_warn_deprecated_method('wf_instance', 'getChildren'); 193 201 $WFInstance = &Factory::getInstance('wf_instance'); 194 202 $preOutput = $WFInstance->getChildren($instanceID); … … 210 218 function getInstanceProperties($instanceID) 211 219 { 220 wf_warn_deprecated_method('wf_instance', 'getProperties'); 212 221 $WFInstance = &Factory::getInstance('wf_instance'); 213 222 return $WFInstance->getProperties($instanceID); … … 223 232 function getChildInstanceProperties($instanceID) 224 233 { 234 wf_warn_deprecated_method('wf_instance', 'getProperties'); 225 235 $WFInstance = &Factory::getInstance('wf_instance'); 226 236 return $WFInstance->getProperties($instanceID); … … 337 347 function getUserInstances($users, $activities = null, $status = null) 338 348 { 349 wf_warn_deprecated_method('wf_instance', 'getByUser'); 339 350 $WFInstance = &Factory::getInstance('wf_instance'); 340 351 return $WFInstance->getByUser($users, $activities, $status); … … 350 361 function setInstanceProperty($instanceID, $nameProperty, $value) 351 362 { 363 wf_warn_deprecated_method('wf_instance', 'setProperty'); 352 364 $WFInstance = &Factory::getInstance('wf_instance'); 353 365 return $WFInstance->setProperty($instanceID, $nameProperty, $value); … … 366 378 function checkUserAccessToInstance($userID, $instanceID, $activityID, $writeAccess = true) 367 379 { 380 wf_warn_deprecated_method('wf_instance', 'checkUserAccess'); 368 381 $WFInstance = &Factory::getInstance('wf_instance'); 369 382 return $WFInstance->checkUserAccess($userID, $instanceID, $activityID, $writeAccess); -
trunk/workflow/inc/local/functions/function.wf_create_object.php
r795 r2960 12 12 function wf_create_object($class_name) 13 13 { 14 wf_warn_deprecated_method('Factory', 'getInstance'); 14 15 $obj = null; 15 16 $file_name = PHPGW_SERVER_ROOT.SEP.'workflow'.SEP.'inc'.SEP.'local'.SEP.'classes'.SEP.'class.'.$class_name.'.php';
Note: See TracChangeset
for help on using the changeset viewer.