| | |
| | | } |
| | | |
| | | use Exception; |
| | | use JVBase\inc\managers\ErrorHelper; |
| | | use JVBase\Instance; |
| | | use JVBase\managers\AdminPages; |
| | | use JVBase\managers\Errors; |
| | |
| | | |
| | | class Queue |
| | | { |
| | | use Instance; |
| | | use Instance, ErrorHelper; |
| | | private Storage $storage; |
| | | private Processor $processor; |
| | | private TypeRegistry $registry; |
| | |
| | | ]; |
| | | |
| | | } catch (Exception $e) { |
| | | Errors::getInstance()->log('queue', $e->getMessage(), $data, 'high'); |
| | | $this->logError($e->getMessage(), 'add', $data); |
| | | |
| | | return new WP_Error('queue_failed', $e->getMessage()); |
| | | } |
| | | } |
| | |
| | | /** |
| | | * Get a specific value from an operation - backwards compatibility |
| | | */ |
| | | public function getOperationValue(string $id, string $column, bool $decodeJson = true): \static|string|int|array|null |
| | | public function getOperationValue(string $id, string $column, bool $decodeJson = true): static|string|int|array|null |
| | | { |
| | | $op = $this->get($id); |
| | | if (!$op) { |