Changeset 2323 for sandbox/workflow


Ignore:
Timestamp:
03/22/10 16:49:23 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Removendo 'require_once's desnecessários.

Location:
sandbox/workflow/branches/609
Files:
21 edited

Legend:

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

    r2311 r2323  
    1111 
    1212require_once 'class.bo_ajaxinterface.inc.php'; 
    13 require_once 'nano/JSON.php'; 
    1413 
    1514/** 
  • sandbox/workflow/branches/609/inc/class.bo_adminsource.inc.php

    r2311 r2323  
    1111 
    1212require_once('class.bo_ajaxinterface.inc.php'); 
    13  
    14 require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'API' . SEP . 'Process.php'); 
    1513 
    1614/** 
  • sandbox/workflow/branches/609/inc/class.bo_ajaxinterface.inc.php

    r2311 r2323  
    3636 
    3737require_once(PHPGW_SERVER_ROOT . SEP . 'workflow' . SEP . 'inc' . SEP . 'common.inc.php'); 
    38 require_once(PHPGW_API_INC . SEP . 'class.db.inc.php'); 
    3938require_once(PHPGW_SERVER_ROOT . SEP . 'workflow' . SEP . 'inc' . SEP . 'engine' . SEP . 'class.ajax_config.inc.php'); 
    4039require_once(PHPGW_SERVER_ROOT . SEP . 'workflow' . SEP . 'inc' . SEP . 'engine' . SEP . 'config.ajax.inc.php'); 
  • sandbox/workflow/branches/609/inc/class.bo_editor.inc.php

    r2311 r2323  
    1111 
    1212require_once('class.bo_ajaxinterface.inc.php'); 
    13 require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ProcessManager.php'); 
    1413/** 
    1514 * @package Workflow 
  • sandbox/workflow/branches/609/inc/class.bo_monitors.inc.php

    r2311 r2323  
    1111 
    1212require_once('class.bo_ajaxinterface.inc.php'); 
    13  
    14 require_once('class.workflow_acl.inc.php'); /* can we remove this? */ 
    15 require_once('class.bo_adminaccess.inc.php'); 
    16 require_once('class.powergraphic.inc.php'); 
    1713 
    1814/** 
     
    13941390 
    13951391                /* get the required configuration */ 
    1396                 $BOEmailAdmin = Factory::getInstance('bo') 
     1392                $BOEmailAdmin = Factory::getInstance('bo'); 
    13971393                $profileList = $BOEmailAdmin->getProfileList(); 
    13981394                $profile = $BOEmailAdmin->getProfile($profileList[0]['profileID']); 
     1395 
     1396                /** 
     1397                 * XXX - XXX 
     1398                 * It's weird.. There are two almost identical PHPMailer classes. 
     1399                 * The class registered in our factory is under 'EGW_INC_ROOT'. 
     1400                 * The class used here has the same name and it's under another 
     1401                 * directory. For now, let's just include it in the old-fashion 
     1402                 * way, but if someone, someday try to use both classes in the 
     1403                 * same access, it could cause us troubles. 
     1404                 */ 
    13991405 
    14001406                /* configure the PHPMailer class to send the e-mails */ 
  • sandbox/workflow/branches/609/inc/class.bo_orgchart.inc.php

    r2311 r2323  
    4646        { 
    4747                parent::bo_ajaxinterface(); 
    48                 $this->so = &Factory:::getInstance('so_orgchart'); 
     48                $this->so = &Factory::getInstance('so_orgchart'); 
    4949        } 
    5050 
  • sandbox/workflow/branches/609/inc/class.bo_utils.inc.php

    r2311 r2323  
    1111 
    1212require_once 'class.bo_ajaxinterface.inc.php'; 
    13 require_once GALAXIA_LIBRARY . SEP . 'src' . SEP . 'GUI' . SEP . 'GUI.php'; 
    14 require_once GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ActivityManager.php'; 
    1513 
    1614/** 
  • sandbox/workflow/branches/609/inc/class.powergraphic.inc.php

    r2311 r2323  
    139139 
    140140 
    141  
     141require_once 'common.inc.php'; 
    142142 
    143143$PowerGraphic = &Factory::newInstance('powergraphic'); 
  • sandbox/workflow/branches/609/inc/class.so_adminjobs.inc.php

    r2311 r2323  
    1010\**************************************************************************/ 
    1111 
    12 require_once GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ProcessManager.php'; 
    13 require_once GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ActivityManager.php'; 
    1412 
    1513/** 
  • sandbox/workflow/branches/609/inc/class.so_orgchart.inc.php

    r2233 r2323  
    10911091                $this->_checkAccess($organizationID, false, true); 
    10921092 
     1093                /** 
     1094                 * This is so wrong.. We should always use the factory to 
     1095                 * instantiate stuff. Besides, module class should not 
     1096                 * use process classes; the correct is to do the inverse. 
     1097                 */ 
    10931098                require_once dirname(__FILE__) . '/local/classes/class.wf_orgchart.php'; 
    10941099                $orgchart = new wf_orgchart(); 
     
    15121517 
    15131518                /* we must query ldap to get full user names. In workflow db we just store uids */ 
    1514                 $cachedLDAP = Factory::newInstance('CachedLDAP'); 
    1515  
    1516                 $cachedLDAP->getEntryByID(); 
     1519                $cachedLDAP = Factory::getInstance('CachedLDAP'); 
    15171520 
    15181521                $output = $result->GetArray(-1); 
  • sandbox/workflow/branches/609/inc/class.so_userinterface.inc.php

    r2311 r2323  
    593593        function getEmployeeInfo($employeeID, $organizationID) 
    594594        { 
    595                 require_once dirname(__FILE__) . '/class.so_orgchart.inc.php'; 
    596  
    597595                $SOOrgchart = &Factory::getInstance('so_orgchart'); 
    598596                $SOOrgchart->setExternalCalls(true); 
     
    613611        function getAreaInfo($areaID, $organizationID) 
    614612        { 
    615                 require_once dirname(__FILE__) . '/class.so_orgchart.inc.php'; 
    616  
    617613                $SOOrgchart = &Factory::getInstance('so_orgchart'); 
    618614                $SOOrgchart->setExternalCalls(true); 
  • sandbox/workflow/branches/609/inc/class.ui_orgchart.inc.php

    r2311 r2323  
    11<?php 
    22 
    3         /**************************************************************************\ 
     3/**************************************************************************\ 
    44* eGroupWare                                                 * 
    55* http://www.egroupware.org                                                * 
     
    1212 
    1313require_once(dirname(__FILE__) . SEP . 'class.ui_ajaxinterface.inc.php'); 
    14 require_once(dirname(__FILE__) . SEP . 'class.workflow_acl.inc.php'); 
     14 
    1515/** 
    1616 * @package Workflow 
  • sandbox/workflow/branches/609/inc/class.workflow_activitymanager.inc.php

    r2233 r2323  
    55 
    66        require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ActivityManager.php'); 
    7         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'GraphViz.php'); 
    8         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ProcessManager.php'); 
    9         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'common' . SEP . 'WfSecurity.php'); 
    107        /** 
    118         * @package Workflow 
  • sandbox/workflow/branches/609/inc/class.workflow_gui.inc.php

    r2233 r2323  
    55 
    66        require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'GUI' . SEP . 'GUI.php'); 
    7         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'API' . SEP . 'Process.php'); 
    8         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'API' . SEP . 'Instance.php'); 
    9         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'common' . SEP . 'WfSecurity.php'); 
     7 
    108        /** 
    119         * @package Workflow 
  • sandbox/workflow/branches/609/inc/class.workflow_instance.inc.php

    r2233 r2323  
    66 
    77        require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'API' . SEP . 'Instance.php'); 
    8         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'common' . SEP . 'WfSecurity.php'); 
    9         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ActivityManager.php'); 
    108        /** 
    119         * @package Workflow 
  • sandbox/workflow/branches/609/inc/class.workflow_processmanager.inc.php

    r2311 r2323  
    55 
    66        require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ProcessManager.php'); 
    7         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'RoleManager.php'); 
    8         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ActivityManager.php'); 
    9         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'API' . SEP . 'Process.php'); 
     7 
    108        /** 
    119         * @package Workflow 
  • sandbox/workflow/branches/609/inc/class.workflow_smarty.inc.php

    r1227 r2323  
    1111 
    1212require_once 'smarty/Smarty.class.php'; 
    13 //require_once 'class.ui_ajaxinterface.inc.php'; 
    1413 
    1514/** 
  • sandbox/workflow/branches/609/inc/engine/src/ProcessManager/ProcessManager.php

    r2311 r2323  
    7070                parent::BaseManager(); 
    7171                $this->child_name = 'ProcessManager'; 
    72                 require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'ProcessManager'.SEP.'ActivityManager.php'); 
    73                 require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'ProcessManager'.SEP.'JobManager.php'); 
    7472                // $this->activity_manager is not set here to avoid objects loading object A loading object B loading object A, etc 
    7573                //$this->role_manager will only be loaded when needed as well 
  • sandbox/workflow/branches/609/inc/engine/src/common/WfSecurity.php

    r2311 r2323  
    2727    $this->child_name = 'WfSecurity'; 
    2828    parent::Base(); 
    29  
    30         /* I'm not really sure if we can strip it out. */ 
    31  
    32     //require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'Instance.php'); 
    33     //require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'Process.php'); 
    34     //require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'BaseActivity.php'); 
    3529  } 
    3630 
  • sandbox/workflow/branches/609/inc/hook_sidebox_menu.inc.php

    r2253 r2323  
    1414 */ 
    1515 
     16require_once 'common.inc.php'; 
    1617require_once 'engine/config.egw.inc.php'; 
    1718 
  • sandbox/workflow/branches/609/index.php

    r2311 r2323  
    2121                        require_once dirname(__FILE__) . '/inc/nano/JSON.php'; 
    2222                        require_once dirname(__FILE__) . '/inc/nano/NanoJsonConverter.class.php'; 
    23                         require_once dirname(__FILE__) . '/inc/nano/NanoController.class.php'; 
    2423                        $nanoController = &Factory::newInstance('NanoController'); 
    2524                        $nanoController->throwErrorOnAllVirtualRequests('__NANOAJAX_SESSION_EXPIRED__'); 
Note: See TracChangeset for help on using the changeset viewer.