|
@@ 186-196 (lines=11) @@
|
| 183 |
|
return $success; |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
public function deleteTrackerByID(int $userID, int $chapterID) { |
| 187 |
|
//Series are not fully deleted, they are just marked as inactive as to hide them from the user. |
| 188 |
|
//This is to allow user history to function properly. |
| 189 |
|
|
| 190 |
|
$success = $this->db->set(['active' => 'N', 'last_updated' => NULL]) |
| 191 |
|
->where('user_id', $userID) |
| 192 |
|
->where('id', $chapterID) |
| 193 |
|
->update('tracker_chapters'); |
| 194 |
|
|
| 195 |
|
return (bool) $success; |
| 196 |
|
} |
| 197 |
|
private function updateTitleById(int $id, string $latestChapter) { |
| 198 |
|
//FIXME: Really not too happy with how we're doing history stuff here, it just feels messy. |
| 199 |
|
$query = $this->db->select('latest_chapter AS current_chapter') |
|
@@ 394-401 (lines=8) @@
|
| 391 |
|
|
| 392 |
|
return $status; |
| 393 |
|
} |
| 394 |
|
public function setCategoryTrackerByID(int $userID, int $chapterID, string $category) : bool { |
| 395 |
|
$success = $this->db->set(['category' => $category, 'active' => 'Y', 'last_updated' => NULL]) |
| 396 |
|
->where('user_id', $userID) |
| 397 |
|
->where('id', $chapterID) |
| 398 |
|
->update('tracker_chapters'); |
| 399 |
|
|
| 400 |
|
return (bool) $success; |
| 401 |
|
} |
| 402 |
|
|
| 403 |
|
|
| 404 |
|
public function updateTagsByID(int $userID, int $chapterID, string $tag_string) : bool { |