@@ 88-96 (lines=9) @@ | ||
85 | * |
|
86 | * @return array |
|
87 | */ |
|
88 | public function getAll($user_id) |
|
89 | { |
|
90 | return $this->db |
|
91 | ->table(self::TABLE) |
|
92 | ->eq('user_id', $user_id) |
|
93 | ->desc('id') |
|
94 | ->columns('id', 'auth_type', 'ip', 'user_agent', 'date_creation') |
|
95 | ->findAll(); |
|
96 | } |
|
97 | } |
|
98 |
@@ 61-69 (lines=9) @@ | ||
58 | * |
|
59 | * @return array |
|
60 | */ |
|
61 | public function getAll($user_id) |
|
62 | { |
|
63 | return $this->db |
|
64 | ->table(self::TABLE) |
|
65 | ->eq('user_id', $user_id) |
|
66 | ->desc('date_creation') |
|
67 | ->columns('id', 'ip', 'user_agent', 'date_creation', 'expiration') |
|
68 | ->findAll(); |
|
69 | } |
|
70 | ||
71 | /** |
|
72 | * Create a new RememberMe session. |
@@ 112-121 (lines=10) @@ | ||
109 | * |
|
110 | * @return array |
|
111 | */ |
|
112 | private function getTasks($project_id) |
|
113 | { |
|
114 | return $this->db |
|
115 | ->table(TaskModel::TABLE) |
|
116 | ->columns('date_completed', 'date_creation', 'date_started') |
|
117 | ->eq('project_id', $project_id) |
|
118 | ->desc('id') |
|
119 | ->limit(1000) |
|
120 | ->findAll(); |
|
121 | } |
|
122 | } |
|
123 |
@@ 148-157 (lines=10) @@ | ||
145 | * |
|
146 | * @return array |
|
147 | */ |
|
148 | private function getTasks($project_id) |
|
149 | { |
|
150 | return $this->db |
|
151 | ->table(TaskModel::TABLE) |
|
152 | ->columns('id', 'date_completed', 'date_moved', 'column_id') |
|
153 | ->eq('project_id', $project_id) |
|
154 | ->desc('id') |
|
155 | ->limit(1000) |
|
156 | ->findAll(); |
|
157 | } |
|
158 | } |
|
159 |