OrderStatusReader
in package
implements
OrderStatusReaderInterface
Class OrderStatusReader
Tags
Interfaces, Classes and Traits
- OrderStatusReaderInterface
- Interface OrderStatusReaderInterface
Table of Contents
- $id : string
- $queryBuilder : CI_DB_query_builder
- $table : string
- __construct() : mixed
- OrderStatusReader constructor.
- getAllOrderStatus() : array<string|int, mixed>
- Alias of getAllOrderStatuses()
- getAllOrderStatuses() : array<string|int, mixed>
- Returns the data of all order status resources in the storage.
- getOrderStatusById() : array<string|int, mixed>
- Returns the data of the expected order status entity by the given order status id.
Properties
$id
protected
string
$id
= 'orders_status_id'
$queryBuilder
protected
CI_DB_query_builder
$queryBuilder
$table
protected
string
$table
= 'orders_status'
Methods
__construct()
OrderStatusReader constructor.
public
__construct(CI_DB_query_builder $queryBuilder) : mixed
Parameters
- $queryBuilder : CI_DB_query_builder
-
Active record instance for data access.
Return values
mixed —getAllOrderStatus()
Alias of getAllOrderStatuses()
public
getAllOrderStatus() : array<string|int, mixed>
Return values
array<string|int, mixed> —getAllOrderStatuses()
Returns the data of all order status resources in the storage.
public
getAllOrderStatuses() : array<string|int, mixed>
Return values
array<string|int, mixed> —Data of all order status entities.
getOrderStatusById()
Returns the data of the expected order status entity by the given order status id.
public
getOrderStatusById(IntType $orderStatusId) : array<string|int, mixed>
Parameters
- $orderStatusId : IntType
-
Id of expected order status entity
Return values
array<string|int, mixed> —Data of order status entity or empty array, if no data was found.