function Group::get_db_group_id

6.x Group.php Group::get_db_group_id()

We expect the group_id to be our db_group_id + _ + degree_id, to ensure that groups are unique to a degree. Let's return just the database group_id portion (the number which we can look up in the db groups table with.)

4 calls to Group::get_db_group_id()

File

classes/Group.php, line 199

Class

Group

Code

function get_db_group_id() {
  // We expect our group_id to actually be the db_group_id + _ + degree_id.
  $temp = explode("_", $this->group_id);
  $db_group_id = trim($temp [0]);

  return $db_group_id;
}