/** * Get educational qualifications * * @return array the qualifications */ public function get_educations() { return Education::where('employee_id', '=', $this->id)->get(); }
/** * Delete a work experience * * @return void */ public function employee_education_delete() { $this->verify_nonce('wp-erp-hr-nonce'); // @TODO: check permission $id = isset($_POST['id']) ? intval($_POST['id']) : 0; if ($id) { Education::find($id)->delete(); } $this->send_success(); }