Ignore:
Timestamp:
04/08/10 10:42:50 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Merged 2356:2442 /sandbox/workflow/branches/609 em /sandbox/workflow/trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/trunk/inc/class.run_activity.inc.php

    r2372 r2466  
    168168                var $agents = Array(); 
    169169 
    170                 /* CELEPAR */ 
    171170                /** 
    172171                 * @var object $smarty holds a Smarty instance 
     
    194193         */ 
    195194                var $isChildInstance = false; 
    196  
     195                /** 
     196                 * @var object Stores a 'workflow_smarty' object 
     197         * @access private 
     198         */ 
    197199                private $workflowSmarty = null; 
    198                 /* CELEPAR */ 
     200 
    199201                /** 
    200202                 * Constructor 
     
    212214                        $this->runtime                  = &Factory::newInstance('workflow_wfruntime'); 
    213215                        $this->runtime->setDebug(_DEBUG); 
    214                         //$this->base_activity  = Factory::getInstance('workflow_baseactivity'); 
    215                         //$this->process                = Factory::getInstance('workflow_process'); 
    216216                        $this->GUI                              = &Factory::getInstance('workflow_gui'); 
    217217                        $this->categories               = &Factory::getInstance('categories'); 
    218218 
    219219                        $this->workflowSmarty   = &Factory::getInstance('workflow_smarty', false); 
     220 
    220221                        // TODO: open a new connection to the database under a different username to allow privilege handling on tables 
    221                         /* CELEPAR */ 
    222222                        unset($this->db); 
    223223                } 
     
    335335                        $wf =& $GLOBALS['workflow']; 
    336336 
    337                         /* CELEPAR */ 
    338337                        /* path to the local functions developed by Celepar */ 
    339338                        $functions = PHPGW_SERVER_ROOT . SEP . 'workflow' . SEP . 'inc' . SEP . 'local' . SEP . 'functions' . SEP . 'local.functions.php'; 
     
    341340                        /* activate local functions */ 
    342341                        require_once($functions); 
    343                         /* CELEPAR */ 
    344342 
    345343                        //get configuration options with default values if no init was done before 
     
    401399                                $this->download_mode = get_var('download_mode', array('POST','GET'), false); 
    402400 
    403                                 /* #celepar# smarty code*/ 
    404  
    405401                                $smarty = Factory::getInstance('process_smarty'); 
    406402 
     
    423419                                $smarty->assign('wf_back_link',$GLOBALS['workflow']['wf_back_link']); 
    424420                                $smarty->assign('wf_activity_url',$GLOBALS['workflow']['wf_activity_url']); 
    425                                  
     421 
    426422                                /* register the prefilter smarty plugin wf_default_template */ 
    427423                                $smarty->load_filter('pre', 'wf_default_template'); 
     
    444440                        $security             =& Factory::newInstance('SecurityUtils');              //input sanitizer class 
    445441                        $env['request']       =& $security->process($_REQUEST);    //sanitizes input data from client 
    446                         //$env['factory']       =& new ProcessFactory();             //instantiation controller class 
    447442                        $env['factory']       =& Factory::getInstance('ProcessWrapperFactory');  //instantiation controller class 
    448443                        $env['natural']           =& wf_create_object('wf_natural');   //data access object instance for mainframe 
     
    450445 
    451446                        $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                         */ 
    457454                        $_engineProcessCodeDirectory = GALAXIA_PROCESSES . SEP . $this->process->getNormalizedName(). SEP . 'code'; 
    458455                        $_engineCompilerDirectory = GALAXIA_LIBRARY . SEP . 'compiler'; 
     
    480477 
    481478                        /** 
    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. 
    484480                         * From now, the factory frontend (static) will forward 
    485481                         * the messages for the process factory instead of Workflow 
    486482                         * factory. 
    487                          * XXX 
    488483                        */ 
    489484                        Security::enable(); 
     
    688683                                unset($GLOBALS['workflow']['wf_instance_url']); 
    689684 
    690                         /* CELEPAR */ 
    691685                        /* activate local functions */ 
    692686                        require_once(PHPGW_SERVER_ROOT . SEP . 'workflow' . SEP . 'inc' . SEP . 'local' . SEP . 'functions' . SEP . 'local.functions.php'); 
    693                         /* CELEPAR */ 
    694687 
    695688                        //get configuration options with default values if no init was done before 
     
    716709                        $security             =& Factory::newInstance('SecurityUtils'); //input sanitizer class 
    717710                        $env['request']       =& $security->process($_REQUEST); //sanitizes input data from client 
    718                         //$env['factory']       =& new ProcessFactory();                           //instantiation controller class 
    719711                        $env['factory']       =& Factory::newInstance('ProcessWrapperFactory');  //instantiation controller class 
    720712                        $env['natural']           =& wf_create_object('wf_natural');   //data access object instance for mainframe 
     
    731723 
    732724                        /** 
    733                          * XXX 
    734725                         * here we are going to use our new Security static class. 
    735726                         * From now, the factory frontend (static) will forward 
     
    737728                         * factory. Note that this is the same comment as the previous 
    738729                         * function... boooring.. =} 
    739                          * XXX 
    740                         */ 
     730                         */ 
    741731                        Security::enable(); 
    742732 
Note: See TracChangeset for help on using the changeset viewer.