class CustomerActivityLogExtension extends Twig_Extension

Class CustomerActivityLogExtension is injected as empire_customer_activity_log_plugin.twig_extension service. CustomerActivityLogExtension handles the logic and provides necessary data for managed entity in twig.

Methods

__construct(OrderManager $orderManager)

CustomerActivityLogExtension constructor.

getFunctions()

{@inheritdoc}

int
getNumberOfSoldTimes(int $productId)

Get number of how many times specific product is sold

string
getName()

Returns the name of the extension.

Details

at line 29
__construct(OrderManager $orderManager)

CustomerActivityLogExtension constructor.

Parameters

OrderManager $orderManager

at line 37
getFunctions()

{@inheritdoc}

at line 53
int getNumberOfSoldTimes(int $productId)

Get number of how many times specific product is sold

Parameters

int $productId

Return Value

int

Exceptions

NoResultException
NonUniqueResultException

at line 67
string getName()

Returns the name of the extension.

Return Value

string The extension name