Ignore:
Timestamp:
03/18/10 08:32:36 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Substituindo instanciações diretas (new) pela nova factory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/609/inc/local/classes/class.wf_instance.php

    r2253 r2292  
    456456                if ($userID !== '*') 
    457457                { 
    458                         require_once dirname(__FILE__) . '/class.wf_role.php'; 
    459                         require_once dirname(__FILE__) . '/class.wf_engine.php'; 
    460  
    461                         $wfRole = new wf_role(); 
    462                         $engine = new wf_engine(); 
     458                        $wfRole = Factory::getInstance('wf_role'); 
     459                        $engine = Factory::getInstance('wf_engine'); 
    463460                        /* get information about the activity */ 
    464461                        if (($activityInfo = $engine->getActivityInformationByID($activityID)) === false) 
     
    529526 
    530527                /* try to get the role id */ 
    531                 require_once dirname(__FILE__) . '/class.wf_role.php'; 
    532                 $wfRole = new wf_role(); 
     528                $wfRole = Factory::getInstance('wf_role'); 
    533529                if (($roleID = $wfRole->getRoleIdByName($roleName)) === false) 
    534530                        return false; 
Note: See TracChangeset for help on using the changeset viewer.