aboutsummaryrefslogtreecommitdiff
path: root/config/bookmarks.php
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-06-14 22:52:00 +0100
committerFrankie B <git@diskfloppy.me>2023-06-14 22:52:00 +0100
commit20e394e9f27aab0cb522f84f3d636b279ecb863e (patch)
tree12f2bc93f285bd58b036cae0b1d705fba2c40384 /config/bookmarks.php
parent3a0306ac79f9cc836ba321f672f84ac66631a456 (diff)
Move classes to models folder
Diffstat (limited to 'config/bookmarks.php')
-rw-r--r--config/bookmarks.php53
1 files changed, 2 insertions, 51 deletions
diff --git a/config/bookmarks.php b/config/bookmarks.php
index 88e2cd9..3138d69 100644
--- a/config/bookmarks.php
+++ b/config/bookmarks.php
@@ -1,55 +1,6 @@
<?php
-class Bookmark {
- /**
- * @var string The name of the bookmark.
- */
- public $name;
-
- /**
- * @var string The URL of the bookmark.
- */
- public $url;
-
- /**
- * @var string The description of the bookmark.
- */
- public $description;
-
- /**
- * Bookmark constructor.
- * @param string $name The name of the bookmark.
- * @param string $url The URL of the bookmark.
- * @param string $description The description of the bookmark.
- */
- public function __construct($name, $url, $description) {
- $this->name = $name;
- $this->url = $url;
- $this->description = $description;
- }
-}
-
-class BookmarkCategory {
- /**
- * @var string The name of the bookmark category.
- */
- public $name;
-
- /**
- * @var array An array of Bookmark objects.
- */
- public $bookmarks;
-
- /**
- * BookmarkCategory constructor.
- * @param string $name The name of the bookmark category.
- * @param array $bookmarks An array of Bookmark objects.
- */
- public function __construct($name, $bookmarks = array()) {
- $this->name = $name;
- $this->bookmarks = $bookmarks;
- }
-}
-
+include 'app/Models/Bookmark.php';
+include 'app/Models/BookmarkCategory.php';
return [
new BookmarkCategory("Friends' Websites", [