function delete_list($employee_ids) { $success = false; //Don't let employee delete their self if (in_array($this->get_logged_in_employee_info()->person_id, $employee_ids)) { return false; } //Run these queries as a transaction, we want to make sure we do all or nothing $this->db->trans_start(); $this->db->where_in('person_id', $employee_ids); //Delete permissions if ($this->db->delete('permissions')) { //delete from employee table $this->db->where_in('person_id', $employee_ids); if ($this->db->delete('employees')) { //delete from person table $success = parent::delete_list($employee_ids); } } $this->db->trans_complete(); return $success; }