[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - Workflow Agent's SO-layer (storage-object) * 4 * http://www.egroupware.org * 5 * (c) 2005 by Regis leroy <regis.leroy@glconseil.com> * 6 * -------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \**************************************************************************/ 12 13 /* $Id: class.so_agent_mail_smtp.inc.php 19860 2005-11-18 14:41:20Z regis_glc $ */ 14 15 require_once(dirname(__FILE__) . SEP . 'class.so_agent.inc.php'); 16 17 /** 18 * Class to store/read all agents data 19 * 20 * Creation and deletion of agents records are done by the workflow engine, not 21 * by this class and her childs. 22 * 23 * @package workflow 24 * @author regis.leroy@glconseil.com 25 * @license GPL 26 */ 27 28 class so_agent_mail_smtp extends so_agent 29 { 30 // Constructor of the so_agent class 31 function so_agent_mail_smtp() 32 { 33 parent::so_agent(); 34 $this->agent_table = $this->wf_table.'mail_smtp'; 35 } 36 37 /** 38 * @abstract read all agent datas from the database 39 * @param $agent_id int id of the entry to read 40 * @return array/boolean array with column => value pairs or false if entry not found 41 */ 42 function read($agent_id) 43 { 44 //perform the query 45 $this->db->select($this->agent_table,'*',array('wf_agent_id'=>$agent_id),__LINE__,__FILE__, 'workflow'); 46 47 while (($row = $this->db->row(true))) 48 { 49 return $row; 50 } 51 52 return false; 53 } 54 55 /** 56 * @abstract save all agent datas to the database 57 * @param $agent_id int id of the entry to save 58 * @param $datas is an array containing columns => value pairs which will be saved for this agent 59 * @return true if everything was ok, false else 60 */ 61 function save($agent_id, &$datas) 62 { 63 $this->db->update($this->agent_table,$datas,array('wf_agent_id'=>$agent_id),__LINE__,__FILE__, 'workflow'); 64 return false; 65 } 66 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |