From 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Aug 2026 22:57:22 +0000
Subject: [PATCH] =It's been a minute. I went through the Routes and associated Managers and ensured they played together well. Reworked the Cache.php, and I think I caught all the references. Moving away from JVBase() root class, to individuall classes that are Instanced. Double checked for the ABSPATH check in every file, and added index.php to every directory that didn't already have it. Also still working on the MenuBlock to work with WooCommerce for now for Northeh
---
inc/managers/VerifyEntryManager.php | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/inc/managers/VerifyEntryManager.php b/inc/managers/VerifyEntryManager.php
index 01fb039..ac742dc 100644
--- a/inc/managers/VerifyEntryManager.php
+++ b/inc/managers/VerifyEntryManager.php
@@ -5,13 +5,20 @@
exit;
}
+use JVBase\Instance;
use JVBase\registrar\Registrar;
use JVBase\managers\CustomTable;
+use JVBase\rest\Rest;
+use JVBase\rest\routes\ApprovalRoutes;
+
class VerifyEntryManager {
+ use Instance;
protected CustomTable $table;
protected int $max = 3;
- public function __construct()
+ protected Rest $route;
+ private function __construct()
{
+ $this->route = ApprovalRoutes::getInstance();
$this->defineTables();
}
@@ -113,7 +120,7 @@
]);
if ($request && !empty($owners)) {
- JVB()->notification()->notify($owners,'entry_requested',$userID, [
+ NotificationManager::getInstance()->notify($owners,'entry_requested',$userID, [
'target_id' => $termID,
'target_type' => $taxonomy
]);
@@ -143,9 +150,9 @@
wp_set_object_terms($request['content_id'], $termID, jvbCheckBase($request['taxonomy']));
}
- JVB()->notification()?->notify($request['user_id'],$approve ? 'entry_approved' : 'entry_denied',$userID);
+ NotificationManager::getInstance()?->notify($request['user_id'],$approve ? 'entry_approved' : 'entry_denied',$userID);
//TODO: What if there are multiple managers, and one approved the request? Do we just delete the notification?
- JVB()->notification()?->unnotify($owners, 'entry_requested', $request['user_id'], [
+ NotificationManager::getInstance()?->unnotify($owners, 'entry_requested', $request['user_id'], [
'target_id' => $termID,
'target_type' => $request['taxonomy']
]);
--
Gitblit v1.10.0