class ProductGroupDiscountUserManager implements BasicEntityManagerInterface, JQGridInterface

Class ProductGroupDiscountUserManager is injected as alligator.product.group.discount.user.manager service. ProductGroupDiscountUserManager handles the logic for entity.

Traits

Trait JQGridManagerTrait

Properties

protected ProductGroupDiscountUserRepository $repository

Methods

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

__construct(ProductGroupDiscountUserRepository $repository, ContainerInterface $container)

No description

handlePersist(ProductGroupDiscountUser $pgdu)

Save ProductGroupDiscountUser entity

handleMerge(ProductGroupDiscountUser $pgdu)

Edit ProductGroupDiscountUser entity

bool
deleteProductGroupDiscountsUser(array $ids)

Delete multiple ProductGroupDiscountUser's

findByPk(mixed $id)

Get ProductGroupDiscountUser by id

mixed
getLoggedUsername()

Get username of logged in user

mixed
getLoggedUser()

Get logged in user

mixed
hasRoleAdmin()

Checks if current user has ADMIN role

string
getCurrentLocale()

Get current locale string

array
getAllPriceLists()

No description

dispatchProductGroupUserReCacheEvent()

Dispatches re cache event

bool|string
saveMultiple(array $newGroupDiscounts, array $updatedGroupDiscounts)

Save multiple discounts

array
getDiscountsByValues(array $discountArray)

Get ProductGroupDiscountUser based on discounts array

Details

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

at line 48
__construct(ProductGroupDiscountUserRepository $repository, ContainerInterface $container)

Parameters

ProductGroupDiscountUserRepository $repository
ContainerInterface $container

at line 65
ProductGroupDiscountUser|int handlePersist(ProductGroupDiscountUser $pgdu)

Save ProductGroupDiscountUser entity

Parameters

ProductGroupDiscountUser $pgdu

Return Value

ProductGroupDiscountUser|int

Exceptions

NoResultException
NonUniqueResultException
ORMException

at line 104
ProductGroupDiscountUser|int handleMerge(ProductGroupDiscountUser $pgdu)

Edit ProductGroupDiscountUser entity

Parameters

ProductGroupDiscountUser $pgdu

Return Value

ProductGroupDiscountUser|int

Exceptions

NonUniqueResultException
ORMException

at line 147
bool deleteProductGroupDiscountsUser(array $ids)

Delete multiple ProductGroupDiscountUser's

Parameters

array $ids

Return Value

bool FALSE on error, TRUE otherwise

at line 163
ProductGroupDiscountUser findByPk(mixed $id)

Get ProductGroupDiscountUser by id

Parameters

mixed $id

Return Value

ProductGroupDiscountUser

Exceptions

NonUniqueResultException

at line 173
mixed getLoggedUsername()

Get username of logged in user

Return Value

mixed

at line 183
mixed getLoggedUser()

Get logged in user

Return Value

mixed

at line 193
mixed hasRoleAdmin()

Checks if current user has ADMIN role

Return Value

mixed

at line 203
string getCurrentLocale()

Get current locale string

Return Value

string

at line 212
array getAllPriceLists()

Return Value

array

at line 220
dispatchProductGroupUserReCacheEvent()

Dispatches re cache event

at line 233
bool|string saveMultiple(array $newGroupDiscounts, array $updatedGroupDiscounts)

Save multiple discounts

Parameters

array $newGroupDiscounts
array $updatedGroupDiscounts

Return Value

bool|string TRUE on success else error string

at line 245
array getDiscountsByValues(array $discountArray)

Get ProductGroupDiscountUser based on discounts array

Parameters

array $discountArray

Return Value

array