Ejemplo n.º 1
0
 /**
  * Summary of removeCourseSection
  * Remove a course section from this advising form
  * 
  * @param Course_section_model $courseSection The course section to remove from this advising form
  */
 public function removeCourseSection($courseSection)
 {
     if ($this->advisingFormID != null && $courseSection->getCourseSectionID() != null) {
         $this->db->where('AdvisingFormID', $this->advisingFormID);
         $this->db->where('CourseSectionID', $courseSection->getCourseSectionID());
         $this->db->delete('AdvisingFormCourseSections');
         return $this->db->affected_rows() > 0;
     }
     return false;
 }