12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- class Noticeslog_model extends CI_Model
- {
- private $collection_name = 'notices_log';
- public function __construct()
- {
- parent::__construct();
- }
- private $model = array(
- 'log_id' => "",
- "type" => "",
- "mobile" => "",
- "recipient" => "",
- "subject" => "",
- "content" => "",
- "status" => "",
- "create_time" => ""
- );
- public function get_model()
- {
- return $this->model;
- }
- public function save_notices_log($notices_log)
- {
- return $this->mongo_db->insert($this->collection_name, $notices_log);
- }
- public function delete_notices_log($log_id)
- {
- return $this->mongo_db->where("log_id", $log_id)->delete($this->collection_name);
- }
- }
|