True, 'flagMessages' => True ); */ var $filter_table = 'egw_felamimail_displayfilter'; // only reference to table-prefix function sofilter() { $this->accountid = $GLOBALS['egw_info']['user']['account_id']; $this->db = clone($GLOBALS['egw']->db); } function saveFilter($_filterArray) { $this->db->insert($this->filter_table,array( 'fmail_filter_data' => serialize($_filterArray) ),array( 'fmail_filter_accountid' => $this->accountid ),__LINE__,__FILE__,'felamimail'); unset($this->sessionData['filter'][$_filterID]); } function restoreFilter() { $this->db->select($this->filter_table,'fmail_filter_data',array( 'fmail_filter_accountid' => $this->accountid ),__LINE__,__FILE__,False,False,'felamimail'); if ($this->db->next_record()) { $filter = unserialize($this->db->f('fmail_filter_data')); return $filter; } } } ?>