summaryrefslogtreecommitdiff
path: root/includes/functions_category.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-06-05 11:18:10 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-06-05 11:18:10 -0600
commit24efe49bc2b545e3a3e46d7d6f2bd1166163e52b (patch)
treec1852447d06c062052def6fc89be2e2dece17c78 /includes/functions_category.php
parent45acfc48b3dd80b945a1501edea9ad4faa700c0f (diff)
Move object related functions into their classes.
Some of the pages are still broken from this commit, but I plan to either rewrite or ignore them.
Diffstat (limited to 'includes/functions_category.php')
-rw-r--r--includes/functions_category.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/includes/functions_category.php b/includes/functions_category.php
deleted file mode 100644
index 808708c..0000000
--- a/includes/functions_category.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-function get_all_categories(): array
-{
- $sql = "SELECT cat_id FROM categories ORDER BY cat_id;";
- $result = Database::get()->query($sql);
-
- $categories = array();
-
- foreach ($result as $row) {
- $category = new Category();
- $category->get_from_database($row['cat_id']);
- array_push($categories, $category);
- }
-
- return $categories;
-} \ No newline at end of file