OrderStatusStyles
in package
Class OrderStatusStyles
This class works in cooperation with the "admin/html/content/layouts/main/partial/order_status_styles.html" to provide the dynamic styling of the order status labels.
Tags
Table of Contents
- $db : CI_DB_query_builder
- __construct() : mixed
- OrderStatusStyles constructor.
- getStyles() : array<string|int, mixed>
- Get the order status styles for the "order_status_styles.html" partial.
Properties
$db
protected
CI_DB_query_builder
$db
Methods
__construct()
OrderStatusStyles constructor.
public
__construct(CI_DB_query_builder $db) : mixed
Parameters
- $db : CI_DB_query_builder
Return values
mixed —getStyles()
Get the order status styles for the "order_status_styles.html" partial.
public
getStyles() : array<string|int, mixed>
Include the order_status_styles.html in your template and pass in a variable with the "order_status_styles" name. The template will output a <style> tag with the colors for each status.