Cloudlog/application/models/Sota.php
Peter Goodhall f5f8243fc2 Revert "Merge branch 'station_logbooks' into master"
This reverts commit 246cec2d66, reversing
changes made to 57f370aa1e.
2021-11-14 11:28:50 +00:00

23 行
无行尾
439 B
PHP

<?php
class Sota extends CI_Model {
function __construct()
{
parent::__construct();
}
function get_all() {
$CI =& get_instance();
$CI->load->model('Stations');
$station_id = $CI->Stations->find_active();
$this->db->where("station_id", $station_id);
$this->db->order_by("COL_SOTA_REF", "ASC");
$this->db->where('COL_SOTA_REF !=', '');
return $this->db->get($this->config->item('table_name'));
}
}
?>