| @@ 27-35 (lines=9) @@ | ||
| 24 | return $query->result_array(); |
|
| 25 | } |
|
| 26 | ||
| 27 | public function auto_update_ok($service_id, $service_status) {
|
|
| 28 | ||
| 29 | $data = array( |
|
| 30 | 'auto_status' => $service_status, |
|
| 31 | ); |
|
| 32 | ||
| 33 | $this->db->where('id', $service_id);
|
|
| 34 | return $this->db->update('status', $data);
|
|
| 35 | } |
|
| 36 | ||
| 37 | public function auto_update_bad($service_id, $service_status) {
|
|
| 38 | ||
| @@ 37-45 (lines=9) @@ | ||
| 34 | return $this->db->update('status', $data);
|
|
| 35 | } |
|
| 36 | ||
| 37 | public function auto_update_bad($service_id, $service_status) {
|
|
| 38 | ||
| 39 | $data = array( |
|
| 40 | 'auto_status' => $service_status, |
|
| 41 | ); |
|
| 42 | ||
| 43 | $this->db->where('id', $service_id);
|
|
| 44 | return $this->db->update('status', $data);
|
|
| 45 | } |
|
| 46 | ||
| 47 | public function auto_update_timestamp($service_id) {
|
|
| 48 | ||