Changeset 2206
- Timestamp:
- 03/10/10 15:49:45 (14 years ago)
- Location:
- sandbox/workflow/branches/609
- Files:
-
- 6 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/609/inc/common.inc.php
r1484 r2206 1 1 <?php 2 if (file_exists( dirname(__FILE__) . '/../../header.session.inc.php')) {3 require_once dirname(__FILE__) . '/../../header.session.inc.php';2 if (file_exists(PHPGW_SERVER_ROOT . '/header.session.inc.php')) { 3 require_once PHPGW_SERVER_ROOT . '/header.session.inc.php'; 4 4 } 5 5 … … 9 9 setlocale(LC_CTYPE, 'pt_BR', 'pt_BR.iso-8859-1', 'pt_BR.utf-8'); 10 10 11 11 12 /* define o umask para a criação de arquivos por parte do Workflow */ 12 13 umask(007); 13 14 14 require_once dirname(__FILE__) . '/class.factory.inc.php';15 15 16 /** 17 * Objeto que implementa uma Factory 18 * @global object $GLOBALS['workflow']['factory'] 19 * @name $factory 20 */ 21 $GLOBALS['workflow']['factory'] = new Factory(); 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/'); 22 20 23 /** 24 * Objeto que cria objetos voltados exclusivamente para o módulo Workflow 25 * @global object $GLOBALS['workflow']['workflowObjects'] 26 * @name $workflowObjects 27 */ 28 $GLOBALS['workflow']['workflowObjects'] = $GLOBALS['workflow']['factory']->newInstance('WorkflowObjects'); 21 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'; 28 29 30 /* FIXME!! */ 31 $GLOBALS['workflow']['workflowObjects'] = Factory::getInstance('WorkflowObjects', 'asd', 123); 29 32 ?>
Note: See TracChangeset
for help on using the changeset viewer.