Changeset 2466 for sandbox/workflow/trunk/inc/class.run_activity.inc.php
- Timestamp:
- 04/08/10 10:42:50 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/trunk/inc/class.run_activity.inc.php
r2372 r2466 168 168 var $agents = Array(); 169 169 170 /* CELEPAR */171 170 /** 172 171 * @var object $smarty holds a Smarty instance … … 194 193 */ 195 194 var $isChildInstance = false; 196 195 /** 196 * @var object Stores a 'workflow_smarty' object 197 * @access private 198 */ 197 199 private $workflowSmarty = null; 198 /* CELEPAR */ 200 199 201 /** 200 202 * Constructor … … 212 214 $this->runtime = &Factory::newInstance('workflow_wfruntime'); 213 215 $this->runtime->setDebug(_DEBUG); 214 //$this->base_activity = Factory::getInstance('workflow_baseactivity');215 //$this->process = Factory::getInstance('workflow_process');216 216 $this->GUI = &Factory::getInstance('workflow_gui'); 217 217 $this->categories = &Factory::getInstance('categories'); 218 218 219 219 $this->workflowSmarty = &Factory::getInstance('workflow_smarty', false); 220 220 221 // TODO: open a new connection to the database under a different username to allow privilege handling on tables 221 /* CELEPAR */222 222 unset($this->db); 223 223 } … … 335 335 $wf =& $GLOBALS['workflow']; 336 336 337 /* CELEPAR */338 337 /* path to the local functions developed by Celepar */ 339 338 $functions = PHPGW_SERVER_ROOT . SEP . 'workflow' . SEP . 'inc' . SEP . 'local' . SEP . 'functions' . SEP . 'local.functions.php'; … … 341 340 /* activate local functions */ 342 341 require_once($functions); 343 /* CELEPAR */344 342 345 343 //get configuration options with default values if no init was done before … … 401 399 $this->download_mode = get_var('download_mode', array('POST','GET'), false); 402 400 403 /* #celepar# smarty code*/404 405 401 $smarty = Factory::getInstance('process_smarty'); 406 402 … … 423 419 $smarty->assign('wf_back_link',$GLOBALS['workflow']['wf_back_link']); 424 420 $smarty->assign('wf_activity_url',$GLOBALS['workflow']['wf_activity_url']); 425 421 426 422 /* register the prefilter smarty plugin wf_default_template */ 427 423 $smarty->load_filter('pre', 'wf_default_template'); … … 444 440 $security =& Factory::newInstance('SecurityUtils'); //input sanitizer class 445 441 $env['request'] =& $security->process($_REQUEST); //sanitizes input data from client 446 //$env['factory'] =& new ProcessFactory(); //instantiation controller class447 442 $env['factory'] =& Factory::getInstance('ProcessWrapperFactory'); //instantiation controller class 448 443 $env['natural'] =& wf_create_object('wf_natural'); //data access object instance for mainframe … … 450 445 451 446 $GLOBALS['workflow_env'] = &$env; 452 //echo "<br><br><br><br><br>Including $source <br>In request: <pre>";print_r($_REQUEST);echo "</pre>"; 453 //[__leave_activity] is setted if needed in the xxx_pre code or by the user in his code 454 // HERE the user code is 'executed'. Note that we do not use include_once or require_once because 455 //it could the same code several times with automatic activities looping in the graph and it still 456 //need to be executed 447 448 /** 449 * [__leave_activity] is setted if needed in the xxx_pre code or by the user in his code 450 * HERE the user code is 'executed'. Note that we do not use include_once or require_once because 451 * it could the same code several times with automatic activities looping in the graph and it still 452 * need to be executed 453 */ 457 454 $_engineProcessCodeDirectory = GALAXIA_PROCESSES . SEP . $this->process->getNormalizedName(). SEP . 'code'; 458 455 $_engineCompilerDirectory = GALAXIA_LIBRARY . SEP . 'compiler'; … … 480 477 481 478 /** 482 * XXX 483 * here we are going to use our new Security static class. 479 * Here we are going to use our new Security static class. 484 480 * From now, the factory frontend (static) will forward 485 481 * the messages for the process factory instead of Workflow 486 482 * factory. 487 * XXX488 483 */ 489 484 Security::enable(); … … 688 683 unset($GLOBALS['workflow']['wf_instance_url']); 689 684 690 /* CELEPAR */691 685 /* activate local functions */ 692 686 require_once(PHPGW_SERVER_ROOT . SEP . 'workflow' . SEP . 'inc' . SEP . 'local' . SEP . 'functions' . SEP . 'local.functions.php'); 693 /* CELEPAR */694 687 695 688 //get configuration options with default values if no init was done before … … 716 709 $security =& Factory::newInstance('SecurityUtils'); //input sanitizer class 717 710 $env['request'] =& $security->process($_REQUEST); //sanitizes input data from client 718 //$env['factory'] =& new ProcessFactory(); //instantiation controller class719 711 $env['factory'] =& Factory::newInstance('ProcessWrapperFactory'); //instantiation controller class 720 712 $env['natural'] =& wf_create_object('wf_natural'); //data access object instance for mainframe … … 731 723 732 724 /** 733 * XXX734 725 * here we are going to use our new Security static class. 735 726 * From now, the factory frontend (static) will forward … … 737 728 * factory. Note that this is the same comment as the previous 738 729 * function... boooring.. =} 739 * XXX 740 */ 730 */ 741 731 Security::enable(); 742 732
Note: See TracChangeset
for help on using the changeset viewer.