BuyXManager
class BuyXManager implements BasicEntityManagerInterface
Class BuyXManager is injected as empire_buy_x_get_y_plugin.buy_x_manager service. BuyXManager handles the logic for managed entity.
Traits
Properties
| protected BuyXRepository | $repository | ||
| protected BuyXGetYEventContainer | $eventContainer |
Methods
No description
No description
No description
Get entities from database by ids
GetXManager constructor.
Remove bux offer provided by array
Find products by name as search parameter
Find bux offer by id
Find all buy x offers and format
Find buy x offer by id
Find all buy x and get y products for provided id
Find product attribute values by product id
If product is a gift it should have some symbolic price You are not allowed to gift product so price is something like 1 RSD
Details
in JQGridManagerTrait at line 26
mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 40
mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 53
mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)
in BlockElementManagerTrait at line 28
array
getEntitiesForBlockElementsExtension(array $ids)
Get entities from database by ids
in BlockElementManagerTrait at line 40
array
getEntityNamesForIds(array $ids)
Get id and name of entity
at line 46
__construct(BuyXRepository $repository, BuyXGetYEventContainer $eventContainer)
GetXManager constructor.
at line 60
BuyX
save(BuyX $entity)
Create references to all foreign entities, persist new buy x offer and clear cache
at line 92
BuyX
edit(BuyX $entity)
Create references to all foreign entities, merge buy x offer and clear cache
at line 164
bool
removeFromArray(array $array)
Remove bux offer provided by array
at line 177
array
getProductsByNameJSON(string $nameString, int $page, int $offset)
Find products by name as search parameter
at line 191
mixed
getOfferForEdit(int $id)
Find bux offer by id
at line 200
array
getAllOffersForFrontEnd()
Find all buy x offers and format
at line 247
array
getOfferForProductPage(int $id)
Find buy x offer by id
at line 258
array
getProductsForDiscount(int $id)
Find all buy x and get y products for provided id
at line 269
Product|null
getProductAttributeValues(int $productId)
Find product attribute values by product id
at line 281
int|float
getGiftItemPrice(string $currency)
If product is a gift it should have some symbolic price You are not allowed to gift product so price is something like 1 RSD