Ignore:
Timestamp:
03/19/10 17:22:08 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Migrando instanciação das classes da engine para a factory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/609/inc/engine/src/common/WfSecurity.php

    r795 r2311  
    2323   * @access public 
    2424   */ 
    25   function WfSecurity(&$db)  
     25  function WfSecurity()  
    2626  { 
    2727    $this->child_name = 'WfSecurity'; 
    28     parent::Base($db); 
    29     require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'Instance.php'); 
    30     require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'Process.php'); 
    31     require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'BaseActivity.php'); 
     28    parent::Base(); 
     29 
     30        /* I'm not really sure if we can strip it out. */ 
     31 
     32    //require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'Instance.php'); 
     33    //require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'Process.php'); 
     34    //require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'BaseActivity.php'); 
    3235  } 
    3336 
     
    5861      ); 
    5962      //check theses values for this process and store the result for this object life duration 
    60       $myProcess = new Process($this->db); 
     63      $myProcess = &Factory::newInstance('Process'); 
    6164      $myProcess->getProcess($pId); 
    6265      $this->processesConfig[$pId] = $myProcess->getConfigValues($arrayConf); 
     
    577580      if (!(isset($this->pm))) 
    578581      { 
    579         require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'ProcessManager'.SEP.'ProcessManager.php'); 
    580         $this->pm = new ProcessManager($this->db); 
     582        $this->pm = &Factory::newInstance('ProcessManager'); 
    581583      } 
    582584      //$this->error[] = 'DEBUG: checking to see if there is no view activities on process :'.$pId.':'.$this->pm->get_process_view_activity($pId); 
Note: See TracChangeset for help on using the changeset viewer.