[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /***************************************************************************\ 3 * eGroupWare - FeLaMiMail * 4 * http://www.linux-at-work.de * 5 * http://www.phpgw.de * 6 * http://www.egroupware.org * 7 * Written by : Lars Kneschke [lkneschke@linux-at-work.de] * 8 * ------------------------------------------------- * 9 * This program is free software; you can redistribute it and/or modify it * 10 * under the terms of the GNU General Public License as published by the * 11 * Free Software Foundation; either version 2 of the License, or (at your * 12 * option) any later version. * 13 \***************************************************************************/ 14 /* $Id: class.sofilter.inc.php 19596 2005-11-04 18:37:37Z ralfbecker $ */ 15 16 class sofilter 17 { 18 /* 19 var $public_functions = array 20 ( 21 'getActiveFilter' => True, 22 'flagMessages' => True 23 ); 24 */ 25 var $filter_table = 'egw_felamimail_displayfilter'; // only reference to table-prefix 26 27 function sofilter() 28 { 29 $this->accountid = $GLOBALS['egw_info']['user']['account_id']; 30 $this->db = clone($GLOBALS['egw']->db); 31 } 32 33 function saveFilter($_filterArray) 34 { 35 $this->db->insert($this->filter_table,array( 36 'fmail_filter_data' => serialize($_filterArray) 37 ),array( 38 'fmail_filter_accountid' => $this->accountid 39 ),__LINE__,__FILE__,'felamimail'); 40 41 unset($this->sessionData['filter'][$_filterID]); 42 } 43 44 function restoreFilter() 45 { 46 $this->db->select($this->filter_table,'fmail_filter_data',array( 47 'fmail_filter_accountid' => $this->accountid 48 ),__LINE__,__FILE__,False,False,'felamimail'); 49 50 51 if ($this->db->next_record()) 52 { 53 $filter = unserialize($this->db->f('fmail_filter_data')); 54 return $filter; 55 } 56 } 57 } 58 ?>
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 |