* Abstract API
*
* Abstract class that is used as an API base for most common database interaction
- * schemes. Creates a simple structure that holds data and can update, remove, and
+ * schemes. Creates a simple structure that holds data and can update, delete, and
* insert.
*
* Life-cycle of a new object:
/**
* Deletes a record
*
- * @param bool Run pre_remove()?
- * @param bool Run post_remove()?
+ * @param bool Run pre_delete()?
+ * @param bool Run post_delete()?
*/
- public function remove($doPre = true, $doPost = true)
+ public function delete($doPre = true, $doPost = true)
{
if (!$this->condition)
{
$this->fetch();
- $this->_runActionMethod('pre_remove', $doPre);
+ $this->_runActionMethod('pre_delete', $doPre);
BSApp::$db->query("DELETE FROM {$this->prefix}{$this->table} WHERE {$this->condition}");
- $this->_runActionMethod('post_remove', $doPost);
+ $this->_runActionMethod('post_delete', $doPost);
}
/**
3.1.2
===================
- Fixed: BSDb::query() would not generate a Result object for explain, show, and describe queries
+- Change: Change BSApi::remove() to be ::delete() again
3.1.1
===================