OrdersOverviewTooltips
in package
Class OrdersOverviewTooltips
This class generates the required HTML for the tooltips of each row in the orders overview table. In order to be faster do not use any services but fetch the data directly with DB queries.
Tags
Table of Contents
- $contentView : ContentView
- $db : CI_DB_query_builder
- __construct() : mixed
- OrdersOverviewTooltips constructor.
- getRowTooltips() : array<string|int, mixed>
- Get the row tooltip HTML for each displayed tooltip.
- _getCustomerAddresses() : string
- Get Customer Addresses Tooltip HTML
- _getCustomerMemos() : string
- Get Customer Memo Tooltip HTML
- _getInvoice() : mixed
- _getOrderItems() : string
- Get Order Items Tooltip HTML
- _getOrderStatusHistory() : string
- Get Order Status History Tooltip HTML
- _getOrderSumBlock() : string
- Get Order Sum Block Tooltip HTML
- _getOrderWithdrawals() : string
- Get order withdrawal IDs
- _getShippingCosts() : string
- Get Shipping Costs Tooltip HTML
- _getTrackingLinks() : string
- Get Tracking Links
- _render() : string
- Renders and returns a template file.
Properties
$contentView
protected
ContentView
$contentView
$db
protected
CI_DB_query_builder
$db
Methods
__construct()
OrdersOverviewTooltips constructor.
public
__construct() : mixed
Return values
mixed —getRowTooltips()
Get the row tooltip HTML for each displayed tooltip.
public
getRowTooltips(OrderListItem $orderListItem) : array<string|int, mixed>
Parameters
- $orderListItem : OrderListItem
-
Contains the order list item data.
Return values
array<string|int, mixed> —_getCustomerAddresses()
Get Customer Addresses Tooltip HTML
protected
_getCustomerAddresses(OrderListItem $orderListItem) : string
Parameters
- $orderListItem : OrderListItem
Return values
string —_getCustomerMemos()
Get Customer Memo Tooltip HTML
protected
_getCustomerMemos(OrderListItem $orderListItem) : string
Parameters
- $orderListItem : OrderListItem
Return values
string —_getInvoice()
protected
_getInvoice(OrderListItem $orderListItem) : mixed
Parameters
- $orderListItem : OrderListItem
Return values
mixed —_getOrderItems()
Get Order Items Tooltip HTML
protected
_getOrderItems(OrderListItem $orderListItem) : string
Parameters
- $orderListItem : OrderListItem
Return values
string —_getOrderStatusHistory()
Get Order Status History Tooltip HTML
protected
_getOrderStatusHistory(OrderListItem $orderListItem) : string
Parameters
- $orderListItem : OrderListItem
Return values
string —_getOrderSumBlock()
Get Order Sum Block Tooltip HTML
protected
_getOrderSumBlock(OrderListItem $orderListItem) : string
Parameters
- $orderListItem : OrderListItem
Return values
string —_getOrderWithdrawals()
Get order withdrawal IDs
protected
_getOrderWithdrawals(OrderListItem $orderListItem) : string
Parameters
- $orderListItem : OrderListItem
Return values
string —_getShippingCosts()
Get Shipping Costs Tooltip HTML
protected
_getShippingCosts(OrderListItem $orderListItem) : string
Parameters
- $orderListItem : OrderListItem
Return values
string —_getTrackingLinks()
Get Tracking Links
protected
_getTrackingLinks(OrderListItem $orderListItem) : string
Parameters
- $orderListItem : OrderListItem
Return values
string —_render()
Renders and returns a template file.
protected
_render(string $templateFile, array<string|int, mixed> $contentArray) : string
Parameters
- $templateFile : string
-
Template file to render.
- $contentArray : array<string|int, mixed>
-
Content array which represent the variables of the template.
Return values
string —Rendered template.