Files
cm-web-legacy/application/models/admin/comm/m_t_weather.php
2020-06-10 06:19:03 +09:00

50 lines
1.0 KiB
PHP
Executable File

<?
defined('BASEPATH') OR exit('No direct script access allowed');
class m_t_weather extends CI_Model{
// 생성자, 해당 모델이 생성될때 항상 실행되는 초기화작업
function __construct(){
parent::__construct();
$this->load->database();
$this->load->library('session');
}
#---------------------------------------------------------------------------
# PURPOSE : truncate
# CREATE : 2018-05-28
#---------------------------------------------------------------------------
function t_weather_tuncate(){
$row = $this->db->truncate('t_weather');
return $row;
}
#---------------------------------------------------------------------------
# PURPOSE : insert
# CREATE : 2018-05-28
#---------------------------------------------------------------------------
function t_weather_insert($req_data){
$row = $this->db->insert('t_weather', $req_data);
return $row;
}
}
?>