@@ 178-192 (lines=15) @@ | ||
175 | return $update; |
|
176 | } |
|
177 | ||
178 | public function update_hash($schedule_id, $hash) |
|
179 | { |
|
180 | $schedule['hash'] = $hash; |
|
181 | ||
182 | $update = $this->db->update( |
|
183 | $this->scheduler_table, |
|
184 | $schedule, |
|
185 | array( 'id' => $schedule_id ), |
|
186 | array( |
|
187 | '%s', |
|
188 | '%s' |
|
189 | ) |
|
190 | ); |
|
191 | return $update; |
|
192 | } |
|
193 | ||
194 | public function update_last_backup($schedule_id, $last_backup) |
|
195 | { |
|
@@ 194-208 (lines=15) @@ | ||
191 | return $update; |
|
192 | } |
|
193 | ||
194 | public function update_last_backup($schedule_id, $last_backup) |
|
195 | { |
|
196 | $schedule['last_backup'] = $last_backup; |
|
197 | ||
198 | $update = $this->db->update( |
|
199 | $this->scheduler_table, |
|
200 | $schedule, |
|
201 | array( 'id' => $schedule_id ), |
|
202 | array( |
|
203 | '%s', |
|
204 | '%s' |
|
205 | ) |
|
206 | ); |
|
207 | return $update; |
|
208 | } |
|
209 | ||
210 | private function __xcloner_scheduler_callback($id, $schedule) |
|
211 | { |