- Timestamp:
- 04/14/10 16:08:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/993/inc/class.run_activity.inc.php
r2492 r2533 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 … … 405 403 $this->download_mode = get_var('download_mode', array('POST','GET'), false); 406 404 407 /* #celepar# smarty code*/408 409 405 $smarty = Factory::getInstance('process_smarty'); 410 406 … … 427 423 $smarty->assign('wf_back_link',$GLOBALS['workflow']['wf_back_link']); 428 424 $smarty->assign('wf_activity_url',$GLOBALS['workflow']['wf_activity_url']); 429 425 430 426 /* register the prefilter smarty plugin wf_default_template */ 431 427 $smarty->load_filter('pre', 'wf_default_template'); … … 448 444 $security =& Factory::newInstance('SecurityUtils'); //input sanitizer class 449 445 $env['request'] =& $security->process($_REQUEST); //sanitizes input data from client 450 //$env['factory'] =& new ProcessFactory(); //instantiation controller class451 446 $env['factory'] =& Factory::getInstance('ProcessWrapperFactory'); //instantiation controller class 452 447 $env['natural'] =& wf_create_object('wf_natural'); //data access object instance for mainframe … … 454 449 455 450 $GLOBALS['workflow_env'] = &$env; 456 //echo "<br><br><br><br><br>Including $source <br>In request: <pre>";print_r($_REQUEST);echo "</pre>"; 457 //[__leave_activity] is setted if needed in the xxx_pre code or by the user in his code 458 // HERE the user code is 'executed'. Note that we do not use include_once or require_once because 459 //it could the same code several times with automatic activities looping in the graph and it still 460 //need to be executed 451 452 /** 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 457 */ 461 458 $_engineProcessCodeDirectory = GALAXIA_PROCESSES . SEP . $this->process->getNormalizedName(). SEP . 'code'; 462 459 $_engineCompilerDirectory = GALAXIA_LIBRARY . SEP . 'compiler'; … … 484 481 485 482 /** 486 * XXX 487 * here we are going to use our new Security static class. 483 * Here we are going to use our new Security static class. 488 484 * From now, the factory frontend (static) will forward 489 485 * the messages for the process factory instead of Workflow 490 486 * factory. 491 * XXX492 487 */ 493 488 Security::enable(); … … 692 687 unset($GLOBALS['workflow']['wf_instance_url']); 693 688 694 /* CELEPAR */695 689 /* activate local functions */ 696 690 require_once(PHPGW_SERVER_ROOT . SEP . 'workflow' . SEP . 'inc' . SEP . 'local' . SEP . 'functions' . SEP . 'local.functions.php'); 697 /* CELEPAR */698 691 699 692 //get configuration options with default values if no init was done before … … 720 713 $security =& Factory::newInstance('SecurityUtils'); //input sanitizer class 721 714 $env['request'] =& $security->process($_REQUEST); //sanitizes input data from client 722 //$env['factory'] =& new ProcessFactory(); //instantiation controller class723 715 $env['factory'] =& Factory::newInstance('ProcessWrapperFactory'); //instantiation controller class 724 716 $env['natural'] =& wf_create_object('wf_natural'); //data access object instance for mainframe … … 735 727 736 728 /** 737 * XXX738 729 * here we are going to use our new Security static class. 739 730 * From now, the factory frontend (static) will forward … … 741 732 * factory. Note that this is the same comment as the previous 742 733 * function... boooring.. =} 743 * XXX 744 */ 734 */ 745 735 Security::enable(); 746 736
Note: See TracChangeset
for help on using the changeset viewer.