2012-11-01 01:50:11 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Sota extends CI_Model {
|
|
|
|
|
|
|
|
function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
}
|
|
|
|
|
|
|
|
function get_all() {
|
2019-09-24 23:05:45 +00:00
|
|
|
$CI =& get_instance();
|
|
|
|
$CI->load->model('Stations');
|
|
|
|
$station_id = $CI->Stations->find_active();
|
|
|
|
|
|
|
|
$this->db->where("station_id", $station_id);
|
2019-06-13 17:40:02 +00:00
|
|
|
$this->db->order_by("COL_SOTA_REF", "ASC");
|
|
|
|
$this->db->where('COL_SOTA_REF !=', '');
|
2012-11-01 01:50:11 +00:00
|
|
|
|
|
|
|
return $this->db->get($this->config->item('table_name'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|