_GroupList::set_req_by_degree_id

5.x _GroupList.php _GroupList::set_req_by_degree_id($degree_id = 0)

Set all the courses and branches in this group to the specified degree_id.

File

classes/_GroupList.php, line 47

Class

_GroupList

Code

function set_req_by_degree_id($degree_id = 0) {

  // Loop through all the groups in this list...
  $this->reset_counter();
  while ($this->has_more()) {
    $g = $this->get_next();
    // Set req_by_degree_id on this group...
    $g->set_req_by_degree_id($degree_id);
  }

}