_Group::load_descriptive_data
5.x _Group.php | _Group::load_descriptive_data() |
4.x _Group.php | _Group::load_descriptive_data() |
1 call to _Group::load_descriptive_data()
- _Group::load_group in classes/
_Group.php
File
- classes/
_Group.php, line 318
Class
Code
function load_descriptive_data() {
if ($db == NULL) {
$this->db = get_global_database_handler();
}
$table_name = "groups";
if ($this->bool_use_draft) {
$table_name = "draft_$table_name";
}
// Load information about the group's title, icon, etc.
$res = $this->db->db_query("SELECT * FROM $table_name
WHERE group_id = '?' ", $this->group_id);
$cur = $this->db->db_fetch_array($res);
$this->title = trim($cur["title"]);
$this->icon_filename = trim($cur["icon_filename"]);
$this->group_name = trim($cur["group_name"]);
$this->data_entry_comment = trim($cur["data_entry_comment"]);
$this->priority = trim($cur["priority"]);
$this->definition = trim($cur["definition"]);
$this->db_delete_flag = trim($cur["delete_flag"]);
$this->catalog_year = trim($cur["catalog_year"]);
if ($this->group_id == -88) {
$this->title = "Add an Additional Course";
}
}