phpDocumentor

OrderStatusPaidReader

Class OrderStatusPaidReader

Table of Contents

AFTERBUY_CONFIGURATION_PAID  = 'order_status_paid'
AFTERBUY_CONFIGURATION_STORAGE_NAMESPACE  = 'modules/gambio/afterbuy'
AFTERBUY_CONFIGURATION_UNPAID  = 'order_status_not_paid'
CONFIGURATION_SEPARATOR  = ','
$connection  : Connection
$paidStatusCache  : array<string|int, mixed>
$storage  : ConfigurationStorageRepository
$unknownStatusCache  : array<string|int, mixed>
$unpaidStatusCache  : array<string|int, mixed>
__construct()  : mixed
OrderStatusPaidReader constructor.
getPaidOrderStatus()  : array<string|int, mixed>
Returns an array of order status representing that the order is paid.
getUnknownOrderStatus()  : array<string|int, mixed>
Returns an array of order status representing that the paid status is unknown.
getUnpaidOrderStatus()  : array<string|int, mixed>
Returns an array of order status representing that the order is unpaid.
getOrderStatusTableData()  : array<string|int, mixed>
Fetches all order status from the related table, grouped by id (to filter language specific entries).
throwOrderPaidStatusNotFoundException()  : void
Throws an `OrderStatusPaidNotFound` exception if the configuration values are not available. This can be the case when the module was installed for the first time, but no configurations where entered.

Constants

AFTERBUY_CONFIGURATION_STORAGE_NAMESPACE

private mixed AFTERBUY_CONFIGURATION_STORAGE_NAMESPACE = 'modules/gambio/afterbuy'

AFTERBUY_CONFIGURATION_UNPAID

private mixed AFTERBUY_CONFIGURATION_UNPAID = 'order_status_not_paid'

Properties

Methods

getUnpaidOrderStatus()

Returns an array of order status representing that the order is unpaid.

public getUnpaidOrderStatus() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOrderStatusTableData()

Fetches all order status from the related table, grouped by id (to filter language specific entries).

private getOrderStatusTableData() : array<string|int, mixed>

The return array only contains the order status id as value.

Tags
throws
OrderPaidStatusNotFoundException

Is thrown when no order status data was found.

throws
OrderStatusDataCorruptedException

Is thrown when database query fails.

Return values
array<string|int, mixed>

throwOrderPaidStatusNotFoundException()

Throws an `OrderStatusPaidNotFound` exception if the configuration values are not available. This can be the case when the module was installed for the first time, but no configurations where entered.

private throwOrderPaidStatusNotFoundException(string $config) : void
Parameters
$config : string
Tags
throws
OrderPaidStatusNotFoundException
Return values
void

Search results