projects
/
infodrom.org
/
service.infodrom.org
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add delete methods
[infodrom.org/service.infodrom.org]
/
class
/
databasetable.class.php
diff --git
a/class/databasetable.class.php
b/class/databasetable.class.php
index
d640bfd
..
d4eb7c0
100644
(file)
--- a/
class/databasetable.class.php
+++ b/
class/databasetable.class.php
@@
-76,6
+76,11
@@
abstract class DatabaseTable {
return false;
}
+ public function delete($id=false)
+ {
+ $this->db->delete($this->table, $this->idcolumn, $id === false ? $this->id : $id);
+ }
+
}
?>
\ No newline at end of file