class SpecialOfferManager extends TranslatableManager implements JQGridInterface

Class SpecialOfferManager

Traits

Trait JQGridManagerTrait
Class BlockElementManagerTrait. Handles reading data for block elements

Properties

protected SpecialOfferRepository $repository
protected SpecialOfferEventContainer $eventContainer

Methods

setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

setRepository(mixed $repository)

No description

mixed
getLanguagesForIds(array $ids)

No description

mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

No description

array
getEntitiesForBlockElementsExtension(array $ids)

Get entities from database by ids

array
getEntityNamesForIds(array $ids)

Get id and name of entity

__construct(SpecialOfferRepository $repository, SpecialOfferEventContainer $eventContainer)

No description

mixed
saveSpecialOffer(SpecialOffer $specialOffer)

No description

mixed
editSpecialOffer(SpecialOffer $specialOffer)

No description

mixed
getSpecialOffersFrontend($userId, $limit)

No description

mixed
getProductsByNameJSON(string $nameString, int $page, int $offset)

No description

mixed
getUsersFromDB(array $users)

No description

mixed
getProductFromDB(Product $product)

No description

mixed
getSpecialOfferDB(SpecialOffer $specialOffer)

No description

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

No description

mixed
hasRoleAdmin()

No description

string
getCurrentLocale()

No description

deleteSpecialOffers($ids)

No description

array|null
isProductOnSpecialOffer(int $productId, null|int $productAttrId = null)

No description

getDiscount(SpecialOfferEvent $event)

No description

mixed|null
getLoggedUserId()

No description

updateSpecialOffersForProduct(Product $product)

No description

mixed
getProductAttributeValues(int $productId)

No description

Details

in TranslatableManager at line 30
setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

Parameters

ContainerInterface|null $container

Exceptions

InvalidArgumentException if repository is not an instance of TranslatableRepository

in TranslatableManager at line 63
setRepository(mixed $repository)

Parameters

mixed $repository

in TranslatableManager at line 73
mixed getLanguagesForIds(array $ids)

Parameters

array $ids

Return Value

mixed

in JQGridManagerTrait at line 26
mixed searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

array $searchParams
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 40
mixed findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

int $page
int $offset
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 53
mixed getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

Parameters

array|null $searchParams
array|null $sortParams
array|null $additionalParams
JQGridWrapper|null $jqGridWrapper

Return Value

mixed

array getEntitiesForBlockElementsExtension(array $ids)

Get entities from database by ids

Parameters

array $ids

Return Value

array

array getEntityNamesForIds(array $ids)

Get id and name of entity

Parameters

array $ids

Return Value

array

at line 47
__construct(SpecialOfferRepository $repository, SpecialOfferEventContainer $eventContainer)

Parameters

SpecialOfferRepository $repository
SpecialOfferEventContainer $eventContainer

at line 57
mixed saveSpecialOffer(SpecialOffer $specialOffer)

Parameters

SpecialOffer $specialOffer

Return Value

mixed

at line 87
mixed editSpecialOffer(SpecialOffer $specialOffer)

Parameters

SpecialOffer $specialOffer

Return Value

mixed

at line 143
mixed getSpecialOffersFrontend($userId, $limit)

Parameters

$userId
$limit

Return Value

mixed

at line 148
getArrayOfAllSpecialOfferProductsCurrentlyAvailable()

at line 175
mixed getProductsByNameJSON(string $nameString, int $page, int $offset)

Parameters

string $nameString
int $page
int $offset

Return Value

mixed

at line 185
mixed getUsersFromDB(array $users)

Parameters

array $users

Return Value

mixed

at line 194
mixed getProductFromDB(Product $product)

Parameters

Product $product

Return Value

mixed

at line 203
mixed getSpecialOfferDB(SpecialOffer $specialOffer)

Parameters

SpecialOffer $specialOffer

Return Value

mixed

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

Parameters

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

Return Value

array

at line 223
mixed hasRoleAdmin()

Return Value

mixed

at line 231
string getCurrentLocale()

Return Value

string

at line 239
deleteSpecialOffers($ids)

Parameters

$ids

at line 250
array|null isProductOnSpecialOffer(int $productId, null|int $productAttrId = null)

Parameters

int $productId
null|int $productAttrId

Return Value

array|null

at line 261
Order getDiscount(SpecialOfferEvent $event)

Parameters

SpecialOfferEvent $event

Return Value

Order

at line 303
mixed|null getLoggedUserId()

Return Value

mixed|null

at line 311
updateSpecialOffersForProduct(Product $product)

Parameters

Product $product

at line 320
mixed getProductAttributeValues(int $productId)

Parameters

int $productId

Return Value

mixed