- Timestamp:
- 08/17/10 16:17:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/inc/class.bo_agent_mail_smtp.inc.php
r795 r3167 109 109 { 110 110 parent::bo_agent(); 111 $this->so_agent = CreateObject('workflow.so_agent_mail_smtp');112 $this->bo_emailadmin = CreateObject('emailadmin.bo');111 $this->so_agent = Factory::getInstance('so_agent_mail_smtp'); 112 $this->bo_emailadmin = Factory::getInstance('bo'); 113 113 //the showProcessConfigurationFields is not done here, quite harder to build 114 114 $this->ProcessConfigurationFieldsdefault = array( … … 312 312 function init() 313 313 { 314 $this->mail = CreateObject('phpgwapi.phpmailer');314 $this->mail = Factory::getInstance('phpmailer'); 315 315 //set the $this->conf 316 316 $this->getProcessConfigurationFields($this->activity->getProcessId()); … … 466 466 } 467 467 468 $process = CreateObject('workflow.workflow_process');468 $process = Factory::getInstance('workflow_process'); 469 469 $process->getProcess($this->process_id); 470 470 $this->process_name = $process->getName(); … … 637 637 if ($this->process_name=='') 638 638 { 639 $process = CreateObject('workflow.workflow_process');639 $process = Factory::getInstance('workflow_process'); 640 640 $process->getProcess($this->process_id); 641 641 $this->process_name = $process->getName(); … … 648 648 if ($this->process_version=='') 649 649 { 650 $process = CreateObject('workflow.workflow_process');650 $process = Factory::getInstance('workflow_process'); 651 651 $process->getProcess($this->process_id); 652 652 $this->process_name = $process->getName(); … … 674 674 if (!is_object($this->account)) 675 675 { 676 $this->account = CreateObject('phpgwapi.accounts');676 $this->account = Factory::getInstance('accounts'); 677 677 } 678 678 $ask_user = $this->instance->getOwner(); … … 683 683 if (!is_object($this->role_manager)) 684 684 { 685 $this->role_manager = CreateObject('workflow.workflow_rolemanager');685 $this->role_manager = Factory::getInstance('workflow_rolemanager'); 686 686 } 687 687 if (!is_object($this->account)) 688 688 { 689 $this->account = CreateObject('phpgwapi.accounts');689 $this->account = Factory::getInstance('accounts'); 690 690 } 691 691 $my_subset = array('wf_activity_name' => $this->activity->getName()); … … 718 718 if (!is_object($this->account)) 719 719 { 720 $this->account = CreateObject('phpgwapi.accounts');720 $this->account = Factory::getInstance('accounts'); 721 721 } 722 722 $ask_user = $this->account->name2id($second_part); … … 731 731 if (!is_object($this->role_manager)) 732 732 { 733 $this->role_manager = CreateObject('workflow.workflow_rolemanager');733 $this->role_manager = Factory::getInstance('workflow_rolemanager'); 734 734 } 735 735 if (!is_object($this->account)) 736 736 { 737 $this->account = CreateObject('phpgwapi.accounts');737 $this->account = Factory::getInstance('accounts'); 738 738 } 739 739 $my_subset = array('wf_role_name' => $second_part);
Note: See TracChangeset
for help on using the changeset viewer.