function _DatabaseHandler::get_degree_plan

4.x _DatabaseHandler.php _DatabaseHandler::get_degree_plan($major_and_track_code, $catalog_year = "", $bool_minimal = false)
5.x _DatabaseHandler.php _DatabaseHandler::get_degree_plan($major_and_track_code, $catalog_year = "", $bool_minimal = false)
1 call to _DatabaseHandler::get_degree_plan()

File

classes/_DatabaseHandler.php, line 1216

Class

_DatabaseHandler

Code

function get_degree_plan($major_and_track_code, $catalog_year = "", $bool_minimal = false) 
 {
  // Returns a degreePlan object from the supplied information.

  // If catalog_year is blank, use whatever the current catalog year is, loaded from our settings table.
  if ($catalog_year == "") {
    $catalog_year = variable_get("current_catalog_year", "2006");
  }

  $degree_id = $this->get_degree_id($major_and_track_code, $catalog_year);
  $dp = new DegreePlan($degree_id, null, $bool_minimal);
  if ($dp->major_code == "") 
   {
    $dp->major_code = trim($major_and_track_code);
  }
  return $dp;
}