GetLastOrdersExtension
class GetLastOrdersExtension extends Twig_Extension
Class GetLastOrdersExtension is injected as twig.extension.alligator.last_orders service. GetLastOrdersExtension handles the logic and provides necessary data for managed entity in twig.
Properties
| protected OrderManager | $orderManager | ||
| protected Order|null | $lastOrders |
Methods
getFunctions()
{@inheritdoc}
array
getLastOrders(int $number)
Find provided number of finished orders for dashboard
array
getLastOrdersByCurrency(null $currency = null, int $number = 5)
Find all finished orders by currency for dashboard
array
string
getName()
Returns the name of the extension.
Details
at line 36
__construct(OrderManager $orderManager)
GetLastOrdersExtension constructor.
at line 44
getFunctions()
{@inheritdoc}
at line 59
array
getLastOrders(int $number)
Find provided number of finished orders for dashboard
at line 71
array
getLastOrdersByCurrency(null $currency = null, int $number = 5)
Find all finished orders by currency for dashboard
at line 86
array
getOrdersLiveExtensions(User $user)
Find all orders without abandoned carts
at line 96
string
getName()
Returns the name of the extension.