Cloudlog/application/models/Search.php

25 行
603 B
PHP

<?php
class Search extends CI_Model {
function callsign_iota($reference) {
$CI =& get_instance();
$CI->load->model('logbooks_model');
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
$this->db->where('COL_IOTA', $reference);
$this->db->where_in('station_id', $logbooks_locations_array);
$query = $this->db->get($this->config->item('table_name'));
return $query;
}
2019-09-05 06:42:11 +08:00
function get_table_columns() {
$query = $this->db->query('DESCRIBE '.$this->config->item('table_name'));
return $query;
}
}
?>