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_monitors.inc.php

    r2233 r2264  
    13971397                /* prepare the environment to load some configuration values from other module */ 
    13981398                $GLOBALS['phpgw']->db =& Factory::getInstance('WorkflowObjects')->getDBExpresso(); 
    1399                 $GLOBALS['phpgw']->common = CreateObject('phpgwapi.common'); 
    1400                 $GLOBALS['phpgw']->session = CreateObject('phpgwapi.sessions'); 
     1399                $GLOBALS['phpgw']->common = Factory::getInstance('common'); 
     1400                $GLOBALS['phpgw']->session = Factory::getInstance('sessions'); 
    14011401                function lang($a){return $a;}; 
    14021402 
    14031403                /* get the required configuration */ 
    1404                 $BOEmailAdmin = Factory::newForeignInstance('emailadmin', 'bo'); 
     1404                $BOEmailAdmin = Factory::getInstance('bo') 
    14051405                $profileList = $BOEmailAdmin->getProfileList(); 
    14061406                $profile = $BOEmailAdmin->getProfile($profileList[0]['profileID']); 
Note: See TracChangeset for help on using the changeset viewer.