function _DegreePlan::get_title

4.x _DegreePlan.php _DegreePlan::get_title($bool_include_track = false)
5.x _DegreePlan.php _DegreePlan::get_title($bool_include_track = false)

File

classes/_DegreePlan.php, line 756

Class

_DegreePlan

Code

function get_title($bool_include_track = false) 
 {
  // This will return the title of this degree, possibly
  // including the track's title as well.

  $rtn = $this->title;
  if ($bool_include_track == true) 
   {
    if ($this->track_title != "") 
     {
      $rtn .= " with " . $this->track_title . "";
    }
  }

  return $rtn;

}