summaryrefslogtreecommitdiff
path: root/src/web/_model/bucket.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-09-18 14:14:53 -0400
committerFreya Murphy <freya@freyacat.org>2024-09-18 14:48:54 -0400
commit1f9024763d9224c4cd9a181bac27e6b9f12ad672 (patch)
tree00f827470dad9aa2692483acbdef9502c1a464d3 /src/web/_model/bucket.php
parentfix rss (diff)
downloadwebsite-1f9024763d9224c4cd9a181bac27e6b9f12ad672.tar.gz
website-1f9024763d9224c4cd9a181bac27e6b9f12ad672.tar.bz2
website-1f9024763d9224c4cd9a181bac27e6b9f12ad672.zip
refactor
Diffstat (limited to 'src/web/_model/bucket.php')
-rw-r--r--src/web/_model/bucket.php19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/web/_model/bucket.php b/src/web/_model/bucket.php
index f38bebe..374836e 100644
--- a/src/web/_model/bucket.php
+++ b/src/web/_model/bucket.php
@@ -1,24 +1,19 @@
<?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();
+ public function get_data(): ?array
+ {
+ $data = parent::get_base_data();
- if (array_key_exists('name', $_GET)) {
+ if (array_key_exists('name', $_GET))
$data['name'] = $_GET['name'];
- } else {
+ else
return NULL;
- }
- if (array_key_exists('lightmode', $_GET)) {
+ if (array_key_exists('lightmode', $_GET))
$data['lightmode'] = $_GET['lightmode'];
- } else {
+ else
$data['lightmode'] = 'false';
- }
return $data;
}