Example #1
0
 /**
  * Get educational qualifications
  *
  * @return array the qualifications
  */
 public function get_educations()
 {
     return Education::where('employee_id', '=', $this->id)->get();
 }
Example #2
0
 /**
  * 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();
 }