function _Group::get_db_group_id
Search API
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()
- _Group::equals in classes/
_Group.php - _Group::load_descriptive_data in classes/
_Group.php - _Group::load_group in classes/
_Group.php - _Group::replace_missing_course in classes/
_Group.php
File
- classes/
_Group.php, line 198
Class
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;
}