function Group::get_db_group_id
Search API
7.x Group.php | 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()
- 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 199
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;
}