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()


classes/_Group.php, line 198




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;