File tree Expand file tree Collapse file tree 1 file changed +33
-11
lines changed Expand file tree Collapse file tree 1 file changed +33
-11
lines changed Original file line number Diff line number Diff line change 19
19
*/
20
20
class HungNG_Custom_Based_model extends CI_Model
21
21
{
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 ();
32
54
33
55
/**
34
56
* HungNG_Custom_Based_model constructor.
@@ -39,7 +61,7 @@ class HungNG_Custom_Based_model extends CI_Model
39
61
public function __construct ()
40
62
{
41
63
parent ::__construct ();
42
- $ this ->db = '' ;
64
+ $ this ->db = $ this -> load -> database ( ' default ' , true , true ) ;
43
65
$ this ->tableName = '' ;
44
66
$ this ->primary_key = 'id ' ;
45
67
$ this ->is_not = ' != ' ;
You can’t perform that action at this time.
0 commit comments