- Added delete function

- Added a way to have alternate functions handle the parsing of the status in return_html
  Its some what limited, the function can ONLY handle 1 parameter and it needs to be the first
  Plus, it needs to be defined globally
This commit is contained in:
jengo 2001-10-17 02:33:05 +00:00
parent af432ae688
commit 466ef523fa

View File

@ -46,6 +46,12 @@
$this->db = $GLOBALS['phpgw']->db; $this->db = $GLOBALS['phpgw']->db;
} }
function delete($record_id)
{
$this->db->query("delete from phpgw_history_log where history_record_id='$record_id' and "
. "history_appname='" . $this->appname . "'",__LINE__,__FILE__);
}
function add($status,$record_id,$new_value) function add($status,$record_id,$new_value)
{ {
$this->db->query("insert into phpgw_history_log (history_record_id," $this->db->query("insert into phpgw_history_log (history_record_id,"