Adventure Documentation

OrderController extends CollectionController
in package

This controller describes the behavior of Order entities.

Use the controller to generate a collection of CollectionOrder entities.

Tags
see
CollectionOrder

Main entity of collection

see
OrderCustomerController

Associated Customer to Order entity

see
OrderDiscountCodeController

Associated Discount Code to Order entity

see
OrderLineController

Associated Line to Order entity

Table of Contents

__construct()  : mixed
getOrderStatuses()  : array<string|int, mixed>
Get a list of all available statuses for orders including information about title and sorting
getOrderStatusText()  : string
Get ordre status as localized text. If no translation is available english will be used.

Methods

__construct()

public __construct([mixed $parseUriParameters = false ][, mixed $userOverride = null ]) : mixed
Parameters
$parseUriParameters : mixed = false
$userOverride : mixed = null
Tags
Return values
mixed

getOrderStatuses()

Get a list of all available statuses for orders including information about title and sorting

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

getOrderStatusText()

Get ordre status as localized text. If no translation is available english will be used.

public getOrderStatusText(int $orderStatusId[, string $languageIso = false ]) : string
Parameters
$orderStatusId : int

Order status id

$languageIso : string = false

Language iso

Tags
Return values
string

Order status


        

Search results