Ignore:
Timestamp:
08/07/09 16:06:07 (15 years ago)
Author:
gbisotto
Message:

Ticket #609 - Modificada a classe Factory e ProcessFactory? para automatizaro acesso ao objetos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/2.0/inc/class.ui_agent_mail_smtp.inc.php

    r795 r1293  
    1111require_once(dirname(__FILE__) . SEP . 'class.ui_agent.inc.php'); 
    1212/** 
    13  * Mail-SMTP Agent : interface layer.  
     13 * Mail-SMTP Agent : interface layer. 
    1414 * This class connects the workflow agents calls to the mail_smtp agent business layer 
    15  *  
     15 * 
    1616 * @package Workflow 
    1717 * @license http://www.gnu.org/copyleft/gpl.html GPL 
    1818 * @author regis.leroy@glconseil.com 
    19  */              
     19 */ 
    2020class ui_agent_mail_smtp extends ui_agent 
    2121{ 
     
    2424         * @access public 
    2525         * @return object 
    26          */      
     26         */ 
    2727        function ui_agent_mail_smtp() 
    2828        { 
     
    3636         * @param string $template_block_name 
    3737         * @access public 
    38          * @return void   
     38         * @return void 
    3939         */ 
    4040        function showAdminActivityOptions ($template_block_name) 
     
    7171                        } 
    7272                        if ($option_conf['type'] == 'select') 
    73                         {        
     73                        { 
    7474                                $this->t->set_var(array( 
    7575                                        'ag_config_name_s'      => "wf_agent[".$this->agent_type."][".$option_name."]", 
     
    9393                $this->t->parse($template_block_name, $admin_name); 
    9494        } 
    95          
     95 
    9696        /** 
    9797         * Function called by the running object (run_activity) after the activity_pre code 
     
    108108                //load agent data from database 
    109109                $this->bo_agent->init(); 
    110                  
     110 
    111111                //this will send an email only if the configuration says to do so 
    112112                if (!($this->bo_agent->send_start())) 
     
    123123                return $ok; 
    124124        } 
    125          
     125 
    126126        /** 
    127127         * Function called by the running object (run_activity) after the activity_pre code 
     
    136136                return true; 
    137137        } 
    138          
     138 
    139139        /** 
    140140         * Function called by the running object (run_activity) after the user code 
     
    160160                return $ok; 
    161161        } 
    162          
     162 
    163163        /** 
    164164         * Function called by the running object (run_activity) after the user code 
     
    170170         * This function can call two types of mail sending 
    171171         * * sending email on POST queries (usefull for interactive forms), retrieving POSTed values 
    172          * * sending email at each reach of the end of the code (usefull for automatic activities which  
     172         * * sending email at each reach of the end of the code (usefull for automatic activities which 
    173173         * completes only after execution of user code (sending after completion is not possible). And we 
    174174         * musn't retrieve POSTed values in this case because it can concerns previous non-automatic activities 
     
    190190                                //erase agent data with the POSTed values 
    191191                                $this->bo_agent->set($this->agent_values); 
    192                                  
     192 
    193193                                //this will send an email only if the configuration says to do so 
    194194                                if (!($this->bo_agent->send_post())) 
     
    224224                        } 
    225225                } 
    226                  
     226 
    227227        } 
    228228?> 
Note: See TracChangeset for help on using the changeset viewer.