Ignore:
Timestamp:
03/16/10 14:48:39 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Substituindo todas as chamadas à CreateObject? no módulo pela nova factory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/609/inc/class.bo_agent_mail_smtp.inc.php

    r2253 r2264  
    110110                parent::bo_agent(); 
    111111                $this->so_agent = Factory::getInstance('so_agent_mail_smtp'); 
    112                 $this->bo_emailadmin = CreateObject('emailadmin.bo'); 
     112                $this->bo_emailadmin = Factory::getInstance('bo'); 
    113113                //the showProcessConfigurationFields is not done here, quite harder to build 
    114114                $this->ProcessConfigurationFieldsdefault = array( 
     
    312312        function init() 
    313313        { 
    314                 $this->mail = CreateObject('phpgwapi.phpmailer'); 
     314                $this->mail = Factory::getInstance('phpmailer'); 
    315315                //set the $this->conf 
    316316                $this->getProcessConfigurationFields($this->activity->getProcessId()); 
     
    674674                                        if (!is_object($this->account)) 
    675675                                        { 
    676                                                 $this->account = CreateObject('phpgwapi.accounts'); 
     676                                                $this->account = Factory::getInstance('accounts'); 
    677677                                        } 
    678678                                        $ask_user = $this->instance->getOwner(); 
     
    687687                                        if (!is_object($this->account)) 
    688688                                        { 
    689                                                 $this->account = CreateObject('phpgwapi.accounts'); 
     689                                                $this->account = Factory::getInstance('accounts'); 
    690690                                        } 
    691691                                        $my_subset = array('wf_activity_name' => $this->activity->getName()); 
     
    718718                                                        if (!is_object($this->account)) 
    719719                                                        { 
    720                                                                 $this->account = CreateObject('phpgwapi.accounts'); 
     720                                                                $this->account = Factory::getInstance('accounts'); 
    721721                                                        } 
    722722                                                        $ask_user = $this->account->name2id($second_part); 
     
    735735                                                        if (!is_object($this->account)) 
    736736                                                        { 
    737                                                                 $this->account = CreateObject('phpgwapi.accounts'); 
     737                                                                $this->account = Factory::getInstance('accounts'); 
    738738                                                        } 
    739739                                                        $my_subset = array('wf_role_name' => $second_part); 
Note: See TracChangeset for help on using the changeset viewer.