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

Ticket #609 - Corrigindo o uso da factory em vários arquivos.

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

Legend:

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

    r2311 r2338  
    6868                Factory::getInstance('WorkflowSecurity')->enableSecurityPolicy(); 
    6969 
     70                /** 
     71                 * Since all jobs must run in process mode, e. g. it's user code, 
     72                 * we must enable the security. 
     73                 */ 
     74                Security::enable(); 
     75 
    7076                if (!file_exists($this->parameters['file'])) 
    7177                        $this->fail('Arquivo contendo o código do Job não foi encontrado'); 
  • sandbox/workflow/branches/609/inc/class.WorkflowUtils.inc.php

    r2264 r2338  
    11<?php 
     2        require_once 'common.inc.php'; 
     3 
    24        //set here the global DEBUG level which is actually 0 (nothing) or 1 (all) 
    35        if (!defined('_DEBUG')) define('_DEBUG', 0); 
  • sandbox/workflow/branches/609/inc/class.bo_monitors.inc.php

    r2323 r2338  
    1111 
    1212require_once('class.bo_ajaxinterface.inc.php'); 
     13 
     14 
     15/** 
     16 * DO NOT remove this line. Ever. Somehow, monitors interface will stop working.. 
     17 */ 
     18require_once(PHPGW_API_INC . SEP . 'common_functions.inc.php'); 
     19 
    1320 
    1421/** 
  • sandbox/workflow/branches/609/inc/class.ui_adminprocesses.inc.php

    r2253 r2338  
    11<?php 
     2require_once 'common.inc.php'; 
    23require_once(dirname(__FILE__) . SEP . 'class.bo_workflow_forms.inc.php'); 
    34require_once('engine' . SEP . 'config.egw.inc.php'); 
  • sandbox/workflow/branches/609/inc/class.workflow_processmanager.inc.php

    r2323 r2338  
    3333                { 
    3434                        parent::ProcessManager(); 
    35                         $this->workflow_acl = Factory::getInstace('workflow_acl'); 
     35                        $this->workflow_acl = Factory::getInstance('workflow_acl'); 
    3636 
    3737                        /* allow regular users to see the process graph */ 
  • sandbox/workflow/branches/609/inc/common.inc.php

    r2233 r2338  
    1010\**************************************************************************/ 
    1111 
    12  
    1312/** 
    1413 * Server base path. This constant is somewhat simililar to 
    1514 * 'PHPGW_SERVER_ROOT'. Nevertheless, there are cases that we 
    1615 * access Workflow directly and it must be defined somewhere. 
     16 * Recently discovered, when we are runnnig jobs HTTP_SERVER_VARS 
     17 * exported by apache are not available. 
     18 * Therefore, we are using this workaround here, setting 
     19 * EGW_SERVER_ROOT based on the location of this file. This constant 
     20 * should be updated properly every time we move this file. 
    1721 * @name EGW_SERVER_ROOT 
    1822 */ 
    19 define('EGW_SERVER_ROOT', $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']); 
     23define('EGW_SERVER_ROOT', dirname(dirname(dirname(__FILE__)))); 
     24//define('EGW_SERVER_ROOT', $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']); 
    2025 
    2126/** 
  • sandbox/workflow/branches/609/inc/hook_home.inc.php

    r2264 r2338  
    11<?php 
     2require_once 'common.inc.php'; 
     3 
    24$GLOBALS['phpgw_info']['flags']['currentapp'] = "workflow"; 
    35if (!isset($_SESSION['phpgw_info']['workflow']['server'])) 
  • sandbox/workflow/branches/609/lib/factory/WorkflowFactory.php

    r2337 r2338  
    8080                $this->registerFileInfo('workflow_instance', 'class.workflow_instance.inc.php', 'inc'); 
    8181 
     82                $this->registerFileInfo('bo_monitors', 'class.bo_monitors.inc.php', 'inc'); 
     83                $this->registerFileInfo('bo_adminaccess', 'class.bo_adminaccess.inc.php', 'inc'); 
    8284                $this->registerFileInfo('bo_userinterface', 'class.bo_userinterface.inc.php', 'inc'); 
    8385                $this->registerFileInfo('bo_participants', 'class.bo_participants.inc.php', 'inc'); 
Note: See TracChangeset for help on using the changeset viewer.