Ignore:
Timestamp:
03/29/10 14:46:01 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Merged 2197:2356 /sandbox/workflow/branches/609/ em /sandbox/workflow/trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/trunk/inc/engine/src/GUI/GUI.php

    r795 r2372  
    3232   * @access public 
    3333   */ 
    34   function GUI(&$db)  
     34  function GUI() 
    3535  { 
    3636    $this->child_name = 'GUI'; 
    37     parent::Base($db); 
    38     require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'common'.SEP.'WfSecurity.php'); 
    39     $this->wf_security =& new WfSecurity($this->db);  
     37    parent::Base(); 
     38    $this->wf_security = &Factory::getInstance('WfSecurity'); 
    4039  } 
    4140 
     
    703702      if (!(isset($this->pm))) 
    704703      { 
    705         require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'ProcessManager'.SEP.'ProcessManager.php'); 
    706         $this->pm =& new ProcessManager($this->db); 
     704        $this->pm = &Factory::newInstance('ProcessManager'); 
    707705      } 
    708706      $this->process_cache[$pId]['view'] = $this->pm->get_process_view_activity($pId); 
     
    871869    { 
    872870      //the security object said everything was fine 
    873       $instance = new Instance($this->db); 
     871      $instance = &Factory::newInstance('Instance'); 
    874872      $instance->getInstance($instanceId); 
    875873      if (!empty($instance->instanceId))  
     
    975973    { 
    976974      //the security object said everything was fine 
    977       $instance =& new Instance($this->db); 
     975      $instance = &Factory::newInstance('Instance'); 
    978976      $instance->getInstance($instanceId); 
    979977      // we force the execution of the activity 
     
    10121010    { 
    10131011      //the security object said everything was fine 
    1014       $instance =& new Instance($this->db); 
     1012      $instance = &Factory::newInstance('Instance'); 
    10151013      $instance->getInstance($instanceId); 
    10161014      // we force the continuation of the flow 
Note: See TracChangeset for help on using the changeset viewer.