Add table to doc util script

- Remove db parameter from several places
- Add constructors for document types
This commit is contained in:
2024-06-01 23:17:29 -04:00
parent 610ab67475
commit b88ad1f268
26 changed files with 306 additions and 262 deletions

View File

@@ -5,16 +5,16 @@
* Displays a list of unread or bookmarked items for the current user
*/
use FeedReaderCentral\Data;
use BitBadger\Documents\SQLite\Configuration;
use FeedReaderCentral\Feed;
use FeedReaderCentral\ItemList;
use FeedReaderCentral\Security;
include '../start.php';
$db = Data::getConnection();
Security::verifyUser($db);
Security::verifyUser();
$db = Configuration::dbConn();
if (key_exists('refresh', $_GET)) {
$refreshResult = Feed::refreshAll($db);
if (key_exists('ok', $refreshResult)) {