Panel
in package

This is the Panel class, a macro class for the userViewHelper.

The purpose of this class is to encapsulate the logic that calculates the view parameters for the user's panel.

Tags
see
Panel::getViewParameters()

Table of Contents

ITEMS_LIST  = [['user', 'addressBook', 'changePassword'], ['wishlist', 'stockAlerts', 'orders', 'rmas', 'salesAgent', 'paymentCards', 'rewardPoints'], ['salesAgent', 'salesAgentCustomers', 'salesAgentSales'], ['logout', 'deleteAccount']]
KEY_ACCOUNT  = 'account'
KEY_DATA  = 'data'
KEY_ORDERS  = 'orders'
KEY_SALES_AGENT  = 'sales_agent'
KEYS  = [self::KEY_DATA, self::KEY_ORDERS, self::KEY_SALES_AGENT, self::KEY_ACCOUNT]
$icons  : array<string|int, mixed>
$itemsList  : array<string|int, mixed>
__construct() Constructor for Panel.  : mixed
getViewParameters() This method returns all calculated arguments and new parameters for UserViewHelper.php  : array<string|int, mixed>
getProperties() Return macro use properties  : array<string|int, mixed>

Constants

ITEMS_LIST

public mixed ITEMS_LIST = [['user', 'addressBook', 'changePassword'], ['wishlist', 'stockAlerts', 'orders', 'rmas', 'salesAgent', 'paymentCards', 'rewardPoints'], ['salesAgent', 'salesAgentCustomers', 'salesAgentSales'], ['logout', 'deleteAccount']]

KEY_ACCOUNT

public mixed KEY_ACCOUNT = 'account'

KEY_DATA

public mixed KEY_DATA = 'data'

KEY_ORDERS

public mixed KEY_ORDERS = 'orders'

KEY_SALES_AGENT

public mixed KEY_SALES_AGENT = 'sales_agent'

KEYS

public mixed KEYS = [self::KEY_DATA, self::KEY_ORDERS, self::KEY_SALES_AGENT, self::KEY_ACCOUNT]

Properties

$icons

public array<string|int, mixed> $icons = []

$itemsList

public array<string|int, mixed> $itemsList = self::ITEMS_LIST

Methods

__construct()

Constructor for Panel.

public __construct(array<string|int, mixed> $arguments) : mixed
Parameters
$arguments : array<string|int, mixed>
Tags
see
Panel
Return values
mixed

getViewParameters()

This method returns all calculated arguments and new parameters for UserViewHelper.php

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

getProperties()

Return macro use properties

protected getProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results