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/API/Instance.php

    r795 r2372  
    11<?php 
    22require_once (GALAXIA_LIBRARY.SEP.'src'.SEP.'common'.SEP.'Base.php'); 
    3 require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'common' . SEP . 'WfSecurity.php'); 
    43require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ActivityManager.php'); 
    54 
     
    141140 
    142141  var $activityID = null; 
    143   function Instance($db)  
     142  function Instance()  
    144143  { 
    145144    $this->child_name = 'Instance'; 
    146     parent::Base($db); 
     145    parent::Base(); 
    147146  } 
    148147 
     
    11711170     
    11721171    //lock rows and ensure access is granted 
    1173     if (!(isset($this->security))) $this->security =& new WfSecurity($this->db);  
     1172    if (!(isset($this->security))) $this->security = &Factory::getInstance('WfSecurity', $this->db); 
    11741173    if (!($this->security->checkUserAction($activityId,$this->instanceId,'complete'))) 
    11751174    { 
     
    15511550    { 
    15521551      //we check rights for this user on the next activity 
    1553       if (!(isset($this->security))) $this->security =& new WfSecurity($this->db);  
     1552      if (!(isset($this->security))) $this->security = &Factory::getInstance('WfSecurity'); 
    15541553      if ($this->security->checkUserAccess($the_next_user,$activityId)) 
    15551554      { 
     
    15601559    { 
    15611560      // then check to see if there is a default user 
    1562       $activity_manager =& new ActivityManager($this->db); 
     1561      $activity_manager = &Factory::newInstance('ActivityManager'); 
    15631562      //get_default_user will give us '*' if there is no default_user or if the default user has no role 
    15641563      //mapped anymore 
Note: See TracChangeset for help on using the changeset viewer.