Changeset 2222
- Timestamp:
- 03/11/10 14:10:57 (14 years ago)
- Location:
- sandbox/workflow/branches/609
- Files:
-
- 7 added
- 5 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/609/inc/common.inc.php
r2206 r2222 1 1 <?php 2 /**************************************************************************\ 3 * eGroupWare * 4 * http://www.egroupware.org * 5 * -------------------------------------------- * 6 * This program is free software; you can redistribute it and/or modify it * 7 * under the terms of the GNU General Public License as published by the * 8 * Free Software Foundation; either version 2 of the License, or (at your * 9 * option) any later version. * 10 \**************************************************************************/ 11 12 13 /** 14 * Server base path. This constant must be defined by expresso itself. 15 * Anyway, there are cases that we access Workflow directly; therefore 16 * it must be defined somewhere... 17 * @name PHPGW_SERVER_ROOT 18 */ 19 if (!defined('PHPGW_SERVER_ROOT')) 20 define('PHPGW_SERVER_ROOT', $HTTP_SERVER_VARS['DOCUMENT_ROOT']); 21 22 /** 23 * Workflow base path. 24 * @name WF_SERVER_ROOT 25 */ 26 define('WF_SERVER_ROOT', PHPGW_SERVER_ROOT.'/workflow/'); 27 28 /** 29 * Workflow include path. 30 * @name WF_INC_ROOT 31 */ 32 define('WF_INC_ROOT', WF_SERVER_ROOT.'/inc/'); 33 34 /** 35 * Workflow lib base dir. 36 * @name WF_LIB_ROOT 37 */ 38 define('WF_LIB_ROOT', WF_SERVER_ROOT.'/lib/'); 39 40 2 41 if (file_exists(PHPGW_SERVER_ROOT . '/header.session.inc.php')) { 3 42 require_once PHPGW_SERVER_ROOT . '/header.session.inc.php'; 4 43 } 5 44 6 /* garante que durante a execução de funções que modificam strings, os 7 * caracteres acentuados sejam tratados corretamente (e.g. strtoupper) 8 */ 45 46 /* assure that the correct encondig will be used (e.g string functions) */ 9 47 setlocale(LC_CTYPE, 'pt_BR', 'pt_BR.iso-8859-1', 'pt_BR.utf-8'); 10 48 … … 14 52 15 53 16 /* defining constants */ 17 define('WF_SERVER_ROOT', PHPGW_SERVER_ROOT.'/workflow/'); 18 define('WF_INC_ROOT', WF_SERVER_ROOT.'/inc/'); 19 define('WF_LIB_ROOT', WF_SERVER_ROOT.'/lib/'); 54 /* including common classes */ 55 require_once WF_LIB_ROOT . 'security/Security.php'; 56 //require_once WF_LIB_ROOT . 'factory/Factory.php'; 57 require_once WF_LIB_ROOT . 'factory/BaseFactory.php'; 58 require_once WF_LIB_ROOT . 'factory/WorkflowFactory.php'; 59 require_once WF_LIB_ROOT . 'factory/ProcessFactory.php'; 20 60 21 61 22 /* including common classes */ 23 require_once WF_LIB_ROOT . 'Security.php'; 24 require_once WF_LIB_ROOT . 'Factory.php'; 25 require_once WF_LIB_ROOT . 'BaseFactory.php'; 26 require_once WF_LIB_ROOT . 'WorkflowFactory.php'; 27 require_once WF_LIB_ROOT . 'ProcessFactory.php'; 62 /* TODO - here we will still using that old and ugly factory */ 63 /* in a near future we should do things right.. */ 64 require_once WF_INC_ROOT . 'class.factory.inc.php'; 65 $GLOBALS['workflow']['factory'] = new Factory(); 66 $GLOBALS['workflow']['workflowObjects'] = $GLOBALS['workflow']['factory']->newInstance('WorkflowObjects'); 28 67 29 30 /* FIXME!! */ 31 $GLOBALS['workflow']['workflowObjects'] = Factory::getInstance('WorkflowObjects', 'asd', 123); 68 //$GLOBALS['workflow']['workflowObjects'] = Factory::getInstance('WorkflowObjects', 'asd', 123); 32 69 ?>
Note: See TracChangeset
for help on using the changeset viewer.