class CouponEventContainer

Class CouponEventContainer is injected as alligator.coupon.event.container. This container is connecting CouponManager manager to other services

Properties

protected ContainerInterface $container

Methods

__construct(ContainerInterface $container)

CouponEventContainer constructor.

mixed
findAllForJQGrid(int $page, int $offset, array $sortParams)

Find all promotions with pagination

array
searchForJQGrid(array $searchParams, array $sortParams)

Find promotions by search term

array
getCountForJQGRID(null $searchParams = null, array $sortParams = array())

Count all promotion with search term

array
getPromotionById(int $id)

Find promotion by id

array
getAllUsersInArray(array $arrayOfUsers)

Find all users for provided array of ids

Promotion|null
editCoupon(Promotion $promotion)

Edit promotion

getUser()

Find logger user

bool
removePromotionsFromArray(array $arrayOfPromotions)

Remove promotions provided by array of ids

array
getUsers(mixed $param, mixed $page, int $offset, mixed $arrayOfUsers = null)

Find all users email

array
findAllPromotionsForFrontend(int $page, int $offset, bool $active, int $userId)

Find all promotions for specific user with pagination

array
countAllPromotionsForFrontend(bool $active, int $userId)

Count all promotions for specific user

array|mixed|null|object
checkCouponStatistic(string $couponCode)

No description

Details

at line 32
__construct(ContainerInterface $container)

CouponEventContainer constructor.

Parameters

ContainerInterface $container

at line 45
mixed findAllForJQGrid(int $page, int $offset, array $sortParams)

Find all promotions with pagination

Parameters

int $page
int $offset
array $sortParams

Return Value

mixed

at line 57
array searchForJQGrid(array $searchParams, array $sortParams)

Find promotions by search term

Parameters

array $searchParams
array $sortParams

Return Value

array

at line 69
array getCountForJQGRID(null $searchParams = null, array $sortParams = array())

Count all promotion with search term

Parameters

null $searchParams
array $sortParams

Return Value

array

at line 84
array getPromotionById(int $id)

Find promotion by id

Parameters

int $id

Return Value

array

at line 95
array getAllUsersInArray(array $arrayOfUsers)

Find all users for provided array of ids

Parameters

array $arrayOfUsers

Return Value

array User

at line 106
Promotion|null editCoupon(Promotion $promotion)

Edit promotion

Parameters

Promotion $promotion

Return Value

Promotion|null

at line 115
User getUser()

Find logger user

Return Value

User

at line 128
bool removePromotionsFromArray(array $arrayOfPromotions)

Remove promotions provided by array of ids

Parameters

array $arrayOfPromotions

Return Value

bool

at line 142
array getUsers(mixed $param, mixed $page, int $offset, mixed $arrayOfUsers = null)

Find all users email

Parameters

mixed $param
mixed $page
int $offset
mixed $arrayOfUsers

Return Value

array

at line 156
array findAllPromotionsForFrontend(int $page, int $offset, bool $active, int $userId)

Find all promotions for specific user with pagination

Parameters

int $page
int $offset
bool $active
int $userId

Return Value

array

at line 168
array countAllPromotionsForFrontend(bool $active, int $userId)

Count all promotions for specific user

Parameters

bool $active
int $userId

Return Value

array

at line 181
array|mixed|null|object checkCouponStatistic(string $couponCode)

Parameters

string $couponCode

Return Value

array|mixed|null|object

Exceptions

NonUniqueResultException