function DegreePlan::get_title

7.x DegreePlan.php DegreePlan::get_title($bool_include_track = false)
6.x DegreePlan.php DegreePlan::get_title($bool_include_track = false)

File

classes/DegreePlan.php, line 766

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;

}