Skip to content

Commit 29ffa2b

Browse files
committed
Update base model
1 parent 0909fa5 commit 29ffa2b

File tree

1 file changed

+33
-11
lines changed

1 file changed

+33
-11
lines changed

hungng/HungNG_Custom_Based_model.php

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,38 @@
1919
*/
2020
class HungNG_Custom_Based_model extends CI_Model
2121
{
22-
public $db;
23-
public $tableName;
24-
public $primary_key;
25-
public $is_not;
26-
public $or_higher;
27-
public $is_higher;
28-
public $or_smaller;
29-
public $is_smaller;
30-
public $start_time;
31-
public $end_time;
22+
/** @var \CI_DB_query_builder $db */
23+
protected $db;
24+
25+
/** @var string $tableName */
26+
protected $tableName;
27+
28+
/** @var string $primary_key */
29+
protected $primary_key;
30+
31+
/** @var string $is_not $is_not */
32+
protected $is_not;
33+
34+
/** @var string $or_higher */
35+
protected $or_higher;
36+
37+
/** @var string $is_higher */
38+
protected $is_higher;
39+
40+
/** @var string $or_smaller */
41+
protected $or_smaller;
42+
43+
/** @var string $is_smaller */
44+
protected $is_smaller;
45+
46+
/** @var string $start_time */
47+
protected $start_time;
48+
49+
/** @var string $end_time */
50+
protected $end_time;
51+
52+
/** @var array $field */
53+
protected $field = array();
3254

3355
/**
3456
* HungNG_Custom_Based_model constructor.
@@ -39,7 +61,7 @@ class HungNG_Custom_Based_model extends CI_Model
3961
public function __construct()
4062
{
4163
parent::__construct();
42-
$this->db = '';
64+
$this->db = $this->load->database('default', true, true);
4365
$this->tableName = '';
4466
$this->primary_key = 'id';
4567
$this->is_not = ' !=';

0 commit comments

Comments
 (0)