function _Group::get_db_group_id

5.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 198

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;
}