public function deleteByIds(array $ids) { if (!count($ids)) { return false; } $where = $this->getAdapter()->quoteInto('id IN(?)', $ids); if ($result = parent::delete($where)) { Axis::message()->addSuccess(Axis::translate('admin')->__('Profile was deleted successfully')); } return $result; }
/** * * @param array $where * @return int The number of rows deleted. */ public function delete($where) { $where = $this->getAdapter()->quoteInto('id IN(?)', $where); return parent::delete($where); }