Ignore:
Timestamp:
04/14/10 16:08:15 (14 years ago)
Author:
pedroerp
Message:

Ticket #993 - Merged 2377:2466 /sandbox/workflow/trunk/ em /sandbox/workflow/branches/993

File:
1 edited

Legend:

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

    r2492 r2533  
    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 
     
    405403                                $this->download_mode = get_var('download_mode', array('POST','GET'), false); 
    406404 
    407                                 /* #celepar# smarty code*/ 
    408  
    409405                                $smarty = Factory::getInstance('process_smarty'); 
    410406 
     
    427423                                $smarty->assign('wf_back_link',$GLOBALS['workflow']['wf_back_link']); 
    428424                                $smarty->assign('wf_activity_url',$GLOBALS['workflow']['wf_activity_url']); 
    429                                  
     425 
    430426                                /* register the prefilter smarty plugin wf_default_template */ 
    431427                                $smarty->load_filter('pre', 'wf_default_template'); 
     
    448444                        $security             =& Factory::newInstance('SecurityUtils');              //input sanitizer class 
    449445                        $env['request']       =& $security->process($_REQUEST);    //sanitizes input data from client 
    450                         //$env['factory']       =& new ProcessFactory();             //instantiation controller class 
    451446                        $env['factory']       =& Factory::getInstance('ProcessWrapperFactory');  //instantiation controller class 
    452447                        $env['natural']           =& wf_create_object('wf_natural');   //data access object instance for mainframe 
     
    454449 
    455450                        $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                         */ 
    461458                        $_engineProcessCodeDirectory = GALAXIA_PROCESSES . SEP . $this->process->getNormalizedName(). SEP . 'code'; 
    462459                        $_engineCompilerDirectory = GALAXIA_LIBRARY . SEP . 'compiler'; 
     
    484481 
    485482                        /** 
    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. 
    488484                         * From now, the factory frontend (static) will forward 
    489485                         * the messages for the process factory instead of Workflow 
    490486                         * factory. 
    491                          * XXX 
    492487                        */ 
    493488                        Security::enable(); 
     
    692687                                unset($GLOBALS['workflow']['wf_instance_url']); 
    693688 
    694                         /* CELEPAR */ 
    695689                        /* activate local functions */ 
    696690                        require_once(PHPGW_SERVER_ROOT . SEP . 'workflow' . SEP . 'inc' . SEP . 'local' . SEP . 'functions' . SEP . 'local.functions.php'); 
    697                         /* CELEPAR */ 
    698691 
    699692                        //get configuration options with default values if no init was done before 
     
    720713                        $security             =& Factory::newInstance('SecurityUtils'); //input sanitizer class 
    721714                        $env['request']       =& $security->process($_REQUEST); //sanitizes input data from client 
    722                         //$env['factory']       =& new ProcessFactory();                           //instantiation controller class 
    723715                        $env['factory']       =& Factory::newInstance('ProcessWrapperFactory');  //instantiation controller class 
    724716                        $env['natural']           =& wf_create_object('wf_natural');   //data access object instance for mainframe 
     
    735727 
    736728                        /** 
    737                          * XXX 
    738729                         * here we are going to use our new Security static class. 
    739730                         * From now, the factory frontend (static) will forward 
     
    741732                         * factory. Note that this is the same comment as the previous 
    742733                         * function... boooring.. =} 
    743                          * XXX 
    744                         */ 
     734                         */ 
    745735                        Security::enable(); 
    746736 
Note: See TracChangeset for help on using the changeset viewer.