Ignore:
Timestamp:
03/29/10 14:46:01 (14 years ago)
Author:
pedroerp
Message:

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

File:
1 edited

Legend:

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

    r1710 r2372  
    22 
    33require_once dirname(__FILE__) . SEP . 'class.WorkflowUtils.inc.php'; 
    4 require_once dirname(__FILE__) . SEP . 'class.fsutils.inc.php'; /* toolkit for filesystem handling */ 
    54require_once 'engine' . SEP . 'config.egw.inc.php'; 
    65/** 
     
    7372                parent::WorkflowUtils(); 
    7473 
    75                 $this->workflow_acl = CreateObject('workflow.workflow_acl'); 
     74                $this->workflow_acl = Factory::getInstance('workflow_acl'); 
    7675                $denyAccess = true; 
    7776                if ($this->workflow_acl->checkWorkflowAdmin($GLOBALS['phpgw_info']['user']['account_id'])) 
     
    106105                } 
    107106 
    108                 $this->process_manager  = CreateObject('workflow.workflow_processmanager'); 
    109                 $this->activity_manager = CreateObject('workflow.workflow_activitymanager'); 
    110                 $this->role_manager     = CreateObject('workflow.workflow_rolemanager'); 
    111                 $this->fs = new FsUtils(); /* gets instance */ 
     107                $this->process_manager  = Factory::getInstance('workflow_processmanager'); 
     108                $this->activity_manager = Factory::getInstance('workflow_activitymanager'); 
     109                $this->role_manager     = Factory::getInstance('workflow_rolemanager'); 
     110                $this->fs = &Factory::newInstance('FsUtils'); /* gets instance */ 
    112111 
    113112        } 
     
    374373                // fill proc_bar 
    375374                $this->t->set_var('proc_bar', $this->fill_proc_bar($proc_info)); 
    376                  
     375 
    377376                //collect some messages from used objects 
    378377                $this->message[] = $this->activity_manager->get_error(false, _DEBUG); 
     
    380379                $this->message[] = $this->role_manager->get_error(false, _DEBUG); 
    381380 
    382                 $templateServer = &$GLOBALS['workflow']['factory']->getInstance('TemplateServer'); 
     381                $templateServer = &Factory::getInstance('TemplateServer'); 
    383382 
    384383                // fill the general variables of the template 
     
    732731                        $this->translate_template('block_process_activities_header'); 
    733732                        $this->t->parse('process_activities_header', 'block_process_activities_header', True); 
    734                         $templateServer = &$GLOBALS['workflow']['factory']->getInstance('TemplateServer'); 
     733                        $templateServer = &Factory::getInstance('TemplateServer'); 
    735734                        foreach ($process_activities_data as $activity) 
    736735                        { 
     
    792791                                'trans_href_from'       => $GLOBALS['phpgw']->link('/index.php', 'menuaction=workflow.ui_adminactivities.form&where2='. $where2 .'&sort_mode2='. $sort_mode2 .'&p_id='. $this->wf_p_id .'&find='. $find .'&where='. $where .'&sort_mode='. $this->sort_mode .'&activity_id='. $transition['wf_act_from_id']), 
    793792                                'trans_actFromName'     => $transition['wf_act_from_name'], 
    794                                 'trans_arrow'           => $GLOBALS['workflow']['factory']->getInstance('TemplateServer')->generateImageLink('next.gif'), 
     793                                'trans_arrow'           => Factory::getInstance('TemplateServer')->generateImageLink('next.gif'), 
    795794                                'trans_href_to'         => $GLOBALS['phpgw']->link('/index.php', 'menuaction=workflow.ui_adminactivities.form&where2='. $where2 .'&sort_mode2='. $sort_mode2 .'&p_id='. $this->wf_p_id .'&find='. $find .'&where='. $where .'&sort_mode='. $this->sort_mode .'&activity_id='. $transition['wf_act_to_id']), 
    796795                                'trans_actToName'       => $transition['wf_act_to_name'], 
     
    10361035                $image_name = $proc_info['wf_normalized_name'] . SEP . 'graph' . SEP . $proc_info['wf_normalized_name'] . '.png'; 
    10371036                $image = GALAXIA_PROCESSES . SEP . $image_name; 
    1038                 if ($GLOBALS['workflow']['factory']->getInstance('BrowserInfo')->isOpera()) 
     1037                if (Factory::getInstance('BrowserInfo')->isOpera()) 
    10391038                        $maximumDimension = 1000000; 
    10401039                else 
     
    10691068                } 
    10701069        } 
    1071          
     1070 
    10721071        /** 
    10731072         * Dislays the activity agents config rows 
     
    10901089                        } 
    10911090                        $this->translate_template('admin_agents'); 
    1092                                                                                                 $this->t->parse('agents_config_rows', 'admin_agents'); 
     1091                        $this->t->parse('agents_config_rows', 'admin_agents'); 
    10931092                } 
    10941093        } 
Note: See TracChangeset for help on using the changeset viewer.