Move files, complete PHP migration

The application works the same way as the F# version
This commit is contained in:
2024-06-23 16:35:55 -04:00
parent 9421bb2035
commit 20ad50928a
37 changed files with 354 additions and 301 deletions

View File

@@ -1,15 +1,17 @@
<?php declare(strict_types=1);
use MyPrayerJournal\{Layout, Table, UI};
use BitBadger\PDODocument\RemoveFields;
use MyPrayerJournal\Table;
use MyPrayerJournal\UI\{Component, Layout};
require '../../../start.php';
require '../../start.php';
$req = validate_request($_GET['id'], ['GET'], false);
$req = validate_request($_GET['id'], ['PATCH'], false);
RemoveFields::byId(Table::REQUEST, $req->id, ['snoozedUntil']);
$req->snoozedUntil = null;
// TODO: message
Layout::bareHead();
UI::requestItem($req);
Component::requestItem($req);
Layout::bareFoot();