mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 08:58:10 +00:00
add remove()
This commit is contained in:
parent
00ed4c5743
commit
19793e41b9
|
@ -260,6 +260,17 @@ class SeedDMS_Core_Transmittal {
|
|||
return SeedDMS_Core_TransmittalItem::getInstance($itemID, $this->_dms);
|
||||
} /* }}} */
|
||||
|
||||
function remove() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "DELETE FROM tblTransmittals WHERE id = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user