Changeset 2960


Ignore:
Timestamp:
06/18/10 17:26:16 (14 years ago)
Author:
asaikawa
Message:

Ticket #446 - Inserida chamada da funcao wf_warn_deprecated_method nos metodos depreciados

Location:
trunk/workflow/inc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/engine/src/API/BaseActivity.php

    r2591 r2960  
    8888  function setDb(&$db) 
    8989  { 
     90        wf_warn_deprecated_method(); 
    9091    $this->db =& $db; 
    9192  } 
     
    554555  function checkUserRole($user,$rolename)  
    555556  { 
     557        wf_warn_deprecated_method(); 
    556558    $this->error[] = 'use of an old deprecated function checkUserRole, return always false'; 
    557559    return false; 
  • trunk/workflow/inc/engine/src/ProcessMonitor/ProcessMonitor.php

    r2591 r2960  
    6262   */ 
    6363  function update_instance_status($iid,$status) { 
     64        wf_warn_deprecated_method(); 
    6465    return; 
    6566    $query = "update `".GALAXIA_TABLE_PREFIX."instances` set `wf_status`=? where `wf_instance_id`=?"; 
     
    7273   */ 
    7374  function update_instance_activity_status($iid,$activityId,$status) { 
     75        wf_warn_deprecated_method(); 
    7476    return; 
    7577    $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  
    9090        function continueInstance($activityID, $instanceID) 
    9191        { 
     92                wf_warn_deprecated_method('wf_instance', 'continueInstance'); 
    9293                $WFInstance = &Factory::getInstance('wf_instance'); 
    9394                return $WFInstance->continueInstance($activityID, $instanceID); 
     
    103104        function abortInstance($instanceID) 
    104105        { 
     106                wf_warn_deprecated_method('wf_instance', 'abort'); 
    105107                $WFInstance = &Factory::getInstance('wf_instance'); 
    106108                return $WFInstance->abort($instanceID); 
     
    117119        function setInstanceName($instanceID, $name) 
    118120        { 
     121                wf_warn_deprecated_method('wf_instance', 'setName'); 
    119122                $WFInstance = &Factory::getInstance('wf_instance'); 
    120123                return $WFInstance->setName($instanceID, $name); 
     
    131134        function setInstancePriority($instanceID, $priority) 
    132135        { 
     136                wf_warn_deprecated_method('wf_instance', 'setPriority'); 
    133137                $WFInstance = &Factory::getInstance('wf_instance'); 
    134138                return $WFInstance->setPriority($instanceID, $priority); 
     
    145149        function getIdleInstances($numberOfDays, $activities = null) 
    146150        { 
     151                wf_warn_deprecated_method('wf_instance', 'getIdle'); 
    147152                $WFInstance = &Factory::getInstance('wf_instance'); 
    148153                return $WFInstance->getIdle($numberOfDays, $activities); 
     
    158163        function getInstances($activities = null) 
    159164        { 
     165                wf_warn_deprecated_method('wf_instance', 'getIdle'); 
    160166                return $this->getIdleInstances(0, $activities); 
    161167        } 
     
    170176        function getInstancesByName($name) 
    171177        { 
     178                wf_warn_deprecated_method('wf_instance', 'getByName'); 
    172179                $WFInstance = &Factory::getInstance('wf_instance'); 
    173180                $preOutput = $WFInstance->getByName($name); 
     
    191198        function getChildInstances($instanceID = null, $activityID = null) 
    192199        { 
     200                wf_warn_deprecated_method('wf_instance', 'getChildren'); 
    193201                $WFInstance = &Factory::getInstance('wf_instance'); 
    194202                $preOutput = $WFInstance->getChildren($instanceID); 
     
    210218        function getInstanceProperties($instanceID) 
    211219        { 
     220                wf_warn_deprecated_method('wf_instance', 'getProperties'); 
    212221                $WFInstance = &Factory::getInstance('wf_instance'); 
    213222                return $WFInstance->getProperties($instanceID); 
     
    223232        function getChildInstanceProperties($instanceID) 
    224233        { 
     234                wf_warn_deprecated_method('wf_instance', 'getProperties'); 
    225235                $WFInstance = &Factory::getInstance('wf_instance'); 
    226236                return $WFInstance->getProperties($instanceID); 
     
    337347        function getUserInstances($users, $activities = null, $status = null) 
    338348        { 
     349                wf_warn_deprecated_method('wf_instance', 'getByUser'); 
    339350                $WFInstance = &Factory::getInstance('wf_instance'); 
    340351                return $WFInstance->getByUser($users, $activities, $status); 
     
    350361        function setInstanceProperty($instanceID, $nameProperty, $value) 
    351362        { 
     363                wf_warn_deprecated_method('wf_instance', 'setProperty'); 
    352364                $WFInstance = &Factory::getInstance('wf_instance'); 
    353365                return $WFInstance->setProperty($instanceID, $nameProperty, $value); 
     
    366378        function checkUserAccessToInstance($userID, $instanceID, $activityID, $writeAccess = true) 
    367379        { 
     380                wf_warn_deprecated_method('wf_instance', 'checkUserAccess'); 
    368381                $WFInstance = &Factory::getInstance('wf_instance'); 
    369382                return $WFInstance->checkUserAccess($userID, $instanceID, $activityID, $writeAccess); 
  • trunk/workflow/inc/local/functions/function.wf_create_object.php

    r795 r2960  
    1212function wf_create_object($class_name) 
    1313{ 
     14        wf_warn_deprecated_method('Factory', 'getInstance'); 
    1415        $obj = null; 
    1516        $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.