fetch_data(); } protected function fetch_data(){ $this->scan_request_priorities = array(); $query = "select id_scan_request_priority from scan_request_priorities order by scan_request_priority_weight, scan_request_priority_label asc"; $result = pmb_mysql_query($query); if(pmb_mysql_num_rows($result)){ while($row = pmb_mysql_fetch_object($result)){ $this->scan_request_priorities[] = new scan_request_priority($row->id_scan_request_priority); } } } public function get_scan_request_priorities(){ return $this->scan_request_priorities; } public function get_selector_options($selected = 0){ global $charset; global $deflt_scan_request_priorities; $options = ""; foreach ($this->scan_request_priorities as $scan_request_priority){ $options.= " "; } return $options; } }