|
@@ 272-282 (lines=11) @@
|
| 269 |
|
return $success; |
| 270 |
|
} |
| 271 |
|
|
| 272 |
|
public function deleteTrackerByID(int $userID, int $chapterID) { |
| 273 |
|
//Series are not fully deleted, they are just marked as inactive as to hide them from the user. |
| 274 |
|
//This is to allow user history to function properly. |
| 275 |
|
|
| 276 |
|
$success = $this->db->set(['active' => 'N', 'last_updated' => NULL]) |
| 277 |
|
->where('user_id', $userID) |
| 278 |
|
->where('id', $chapterID) |
| 279 |
|
->update('tracker_chapters'); |
| 280 |
|
|
| 281 |
|
return (bool) $success; |
| 282 |
|
} |
| 283 |
|
private function updateTitleById(int $id, string $latestChapter) { |
| 284 |
|
//FIXME: Really not too happy with how we're doing history stuff here, it just feels messy. |
| 285 |
|
$query = $this->db->select('latest_chapter AS current_chapter') |
|
@@ 527-534 (lines=8) @@
|
| 524 |
|
|
| 525 |
|
return $status; |
| 526 |
|
} |
| 527 |
|
public function setCategoryTrackerByID(int $userID, int $chapterID, string $category) : bool { |
| 528 |
|
$success = $this->db->set(['category' => $category, 'active' => 'Y', 'last_updated' => NULL]) |
| 529 |
|
->where('user_id', $userID) |
| 530 |
|
->where('id', $chapterID) |
| 531 |
|
->update('tracker_chapters'); |
| 532 |
|
|
| 533 |
|
return (bool) $success; |
| 534 |
|
} |
| 535 |
|
|
| 536 |
|
public function updateTagsByID(int $userID, int $chapterID, string $tag_string) : bool { |
| 537 |
|
$success = FALSE; |