Ignore:
Timestamp:
03/19/10 17:22:08 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Migrando instanciação das classes da engine para a factory.

File:
1 edited

Legend:

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

    r2233 r2311  
    11<?php 
    2 require_once($_SESSION['phpgw_info']['workflow']['phpgw_api_inc'] . '/class.config.inc.php'); 
    32 
    43/** 
     
    6160                $oldDB = $GLOBALS['phpgw']->db; 
    6261                $GLOBALS['phpgw']->db = $GLOBALS['ajax']->db; 
    63                 $config = new config('workflow'); 
     62                $config = &Factory::getInstance('config', 'workflow'); 
    6463                $configValues = $config->read_repository(); 
    6564                $submasksString = $configValues['intranet_subnetworks']; 
     
    596595                require_once dirname(__FILE__) . '/class.so_orgchart.inc.php'; 
    597596 
    598                 $SOOrgchart = new so_orgchart(); 
     597                $SOOrgchart = &Factory::getInstance('so_orgchart'); 
    599598                $SOOrgchart->setExternalCalls(true); 
    600599                $output = $SOOrgchart->getEmployeeInfo($employeeID, $organizationID); 
     
    616615                require_once dirname(__FILE__) . '/class.so_orgchart.inc.php'; 
    617616 
    618                 $SOOrgchart = new so_orgchart(); 
     617                $SOOrgchart = &Factory::getInstance('so_orgchart'); 
    619618                $SOOrgchart->setExternalCalls(true); 
    620619                $output = $SOOrgchart->getAreaInfo($areaID, $organizationID); 
Note: See TracChangeset for help on using the changeset viewer.