function Course::set_has_been_displayed

6.x Course.php Course::set_has_been_displayed($degree_id = 0, $val = TRUE)
7.x Course.php Course::set_has_been_displayed($degree_id = 0, $val = TRUE)

Counterpart to get_has_been_displayed.

See also

get_has_been_displayed()

File

classes/Course.php, line 474

Class

Course

Code

function set_has_been_displayed($degree_id = 0, $val = TRUE) {

  // If degree_id is zero, then use the course's currently req_by_degree_id.
  if ($degree_id == 0) {
    $degree_id = $this->req_by_degree_id;
  }

  //$this->bool_has_been_displayed_by_degree_array[$degree_id] = $val;
  $this->set_details_by_degree($degree_id, "bool_has_been_displayed", $val);
}