- Timestamp:
- 08/07/09 16:06:07 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/2.0/inc/class.ui_agent_mail_smtp.inc.php
r795 r1293 11 11 require_once(dirname(__FILE__) . SEP . 'class.ui_agent.inc.php'); 12 12 /** 13 * Mail-SMTP Agent : interface layer. 13 * Mail-SMTP Agent : interface layer. 14 14 * This class connects the workflow agents calls to the mail_smtp agent business layer 15 * 15 * 16 16 * @package Workflow 17 17 * @license http://www.gnu.org/copyleft/gpl.html GPL 18 18 * @author regis.leroy@glconseil.com 19 */ 19 */ 20 20 class ui_agent_mail_smtp extends ui_agent 21 21 { … … 24 24 * @access public 25 25 * @return object 26 */ 26 */ 27 27 function ui_agent_mail_smtp() 28 28 { … … 36 36 * @param string $template_block_name 37 37 * @access public 38 * @return void 38 * @return void 39 39 */ 40 40 function showAdminActivityOptions ($template_block_name) … … 71 71 } 72 72 if ($option_conf['type'] == 'select') 73 { 73 { 74 74 $this->t->set_var(array( 75 75 'ag_config_name_s' => "wf_agent[".$this->agent_type."][".$option_name."]", … … 93 93 $this->t->parse($template_block_name, $admin_name); 94 94 } 95 95 96 96 /** 97 97 * Function called by the running object (run_activity) after the activity_pre code … … 108 108 //load agent data from database 109 109 $this->bo_agent->init(); 110 110 111 111 //this will send an email only if the configuration says to do so 112 112 if (!($this->bo_agent->send_start())) … … 123 123 return $ok; 124 124 } 125 125 126 126 /** 127 127 * Function called by the running object (run_activity) after the activity_pre code … … 136 136 return true; 137 137 } 138 138 139 139 /** 140 140 * Function called by the running object (run_activity) after the user code … … 160 160 return $ok; 161 161 } 162 162 163 163 /** 164 164 * Function called by the running object (run_activity) after the user code … … 170 170 * This function can call two types of mail sending 171 171 * * 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 173 173 * completes only after execution of user code (sending after completion is not possible). And we 174 174 * musn't retrieve POSTed values in this case because it can concerns previous non-automatic activities … … 190 190 //erase agent data with the POSTed values 191 191 $this->bo_agent->set($this->agent_values); 192 192 193 193 //this will send an email only if the configuration says to do so 194 194 if (!($this->bo_agent->send_post())) … … 224 224 } 225 225 } 226 226 227 227 } 228 228 ?>
Note: See TracChangeset
for help on using the changeset viewer.