diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-06-05 11:18:10 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-06-05 11:18:10 -0600 |
commit | 24efe49bc2b545e3a3e46d7d6f2bd1166163e52b (patch) | |
tree | c1852447d06c062052def6fc89be2e2dece17c78 /includes/functions_category.php | |
parent | 45acfc48b3dd80b945a1501edea9ad4faa700c0f (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.php | 17 |
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 |