class ProductPaymentTypeManager implements BasicEntityManagerInterface

Class ProductPaymentTypeManager is injected as empire_product_for_payment_type.manager service. ProductPaymentTypeManager handles the logic for managed entity.

Properties

protected ProductPaymentTypeRepository $repository
protected ProductPaymentTypeEventContainer $eventContainer

Methods

array
doProductSearch(ProductSearchWrapper $searchWrapper)

Search products

save(ProductPaymentType $productsForPayment)

Create references to all foreign entities and save product payment type

edit(ProductPaymentType $productsForPayment)

Create references to all foreign entities and merge product payment type

bool
delete(array $ids)

Remove product payment types by provided array of ids

getProductsForPayment(int $id)

Find product payment type by id

array
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array())

Find product payment types by search term

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

Find all product payment types with pagination

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

Count product payment types for search term

array|mixed
getValuesFromCache()

Reed values from cache, if there are no values then read from db and set to cache

array
refreshCache()

Read data from db and set to cache

dispatchChangeEvent()

Dispatch Event

Details

at line 40
__construct(ProductPaymentTypeRepository $repository, ProductPaymentTypeEventContainer $container)

at line 52
array doProductSearch(ProductSearchWrapper $searchWrapper)

Search products

Parameters

ProductSearchWrapper $searchWrapper

Return Value

array

at line 65
ProductPaymentType save(ProductPaymentType $productsForPayment)

Create references to all foreign entities and save product payment type

Parameters

ProductPaymentType $productsForPayment

Return Value

ProductPaymentType

Exceptions

ORMException

at line 93
ProductPaymentType edit(ProductPaymentType $productsForPayment)

Create references to all foreign entities and merge product payment type

Parameters

ProductPaymentType $productsForPayment

Return Value

ProductPaymentType

Exceptions

NonUniqueResultException
ORMException

at line 119
bool delete(array $ids)

Remove product payment types by provided array of ids

Parameters

array $ids

Return Value

bool

at line 133
ProductPaymentType|null getProductsForPayment(int $id)

Find product payment type by id

Parameters

int $id

Return Value

ProductPaymentType|null

Exceptions

NonUniqueResultException

at line 146
array searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array())

Find product payment types by search term

Parameters

array $searchParams
array $sortParams
array $additionalParams

Return Value

array

at line 160
mixed findAllForJQGRID(int $page, int $offset, mixed $sortParams, array $additionalParams = array())

Find all product payment types with pagination

Parameters

int $page
int $offset
mixed $sortParams
array $additionalParams

Return Value

mixed

at line 173
mixed getCountForJQGRID(null $searchParams = null, null $sortParams = null, array $additionalParams = array())

Count product payment types for search term

Parameters

null $searchParams
null $sortParams
array $additionalParams

Return Value

mixed

at line 186
array|mixed getValuesFromCache()

Reed values from cache, if there are no values then read from db and set to cache

Return Value

array|mixed

at line 200
array refreshCache()

Read data from db and set to cache

Return Value

array

at line 211
dispatchChangeEvent()

Dispatch Event