/** * Deletes the current record from the DB. */ public function delete() { if (!$this->id) { return false; } $this->beforeDelete(); $this->_zendDb->delete($this->tableName(), 'id = ' . $this->id); $this->_afterCommand('delete'); $this->afterDelete(); return true; }
/** * Enter description here ... * @param array $cid */ public function deleteIntro($cid) { $listid = implode("','", $cid); $result = $this->db->delete('intro', "id in ('" . $listid . "')"); }