/** * Delete single row with id $id. * @param $id * @return int */ public function DeleteSingle($id) { $this->params = array('where' => array('conditions' => 'id=?', 'arguments' => $id)); $result = 0; if ($this->_validate_delete()) { $this->_before_delete(); $result = $this->table->Delete($id); $this->_on_delete(); } return $result; }