summaryrefslogtreecommitdiff
path: root/src/web/_model/bucket.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-05-24 09:05:42 -0400
committerFreya Murphy <freya@freyacat.org>2024-05-24 09:05:42 -0400
commitc5f39ea2cd7cf02246705ea8872d3b350526165c (patch)
tree2694f9fdc5d83b529a01f2997c1d89c271c86592 /src/web/_model/bucket.php
downloadwebsite-c5f39ea2cd7cf02246705ea8872d3b350526165c.tar.gz
website-c5f39ea2cd7cf02246705ea8872d3b350526165c.tar.bz2
website-c5f39ea2cd7cf02246705ea8872d3b350526165c.zip
initial
Diffstat (limited to 'src/web/_model/bucket.php')
-rw-r--r--src/web/_model/bucket.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/web/_model/bucket.php b/src/web/_model/bucket.php
new file mode 100644
index 0000000..f38bebe
--- /dev/null
+++ b/src/web/_model/bucket.php
@@ -0,0 +1,26 @@
+<?php /* Copyright (c) 2024 Freya Murphy */
+class Bucket_model extends Model {
+
+ function __construct($load) {
+ parent::__construct($load);
+ }
+
+ public function get_data(): ?array {
+ $data = parent::get_data();
+
+ if (array_key_exists('name', $_GET)) {
+ $data['name'] = $_GET['name'];
+ } else {
+ return NULL;
+ }
+
+ if (array_key_exists('lightmode', $_GET)) {
+ $data['lightmode'] = $_GET['lightmode'];
+ } else {
+ $data['lightmode'] = 'false';
+ }
+
+ return $data;
+ }
+}
+?>