ProductGroupManager
class ProductGroupManager implements BasicEntityManagerInterface, JQGridInterface
Class ProductGroupManager is injected as alligator.product.group.manager service. ProductGroupManager handles the logic for entity.
Traits
Constants
| PRODUCT_GROUP_CACHE_KEY |
|
Properties
| protected ProductGroupRepository | $repository |
Methods
No description
No description
No description
No description
No description
Get reference to Product Group class
Get Product Group by id
Delete multiple Product Groups
Get all product group data from cache, in there is no cached data cache it
Set product groups to cache
Get array of Product Groups for ids
Update Product groups when event is dispatched
Update Product groups when event is dispatched
Edit only discounts for group with id
Change priority of Product Groups
Get username of logged in user
Get logged in user
Checks if current user has ADMIN role
Get checkout manager
Get current locale string
Dispatches re cache event
Save multiple groups
Delete multiple product groups that are not in array
Find groups by name, wildcard can be used
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)
at line 656
getEntitiesForBlockElementsExtension($ids)
in BlockElementManagerTrait at line 40
array
getEntityNamesForIds(array $ids)
Get id and name of entity
at line 60
__construct(ProductGroupRepository $repository, ProductManager $productManager, ContainerInterface $container)
at line 74
ProductGroup
getReference(mixed $id)
Get reference to Product Group class
at line 88
ProductGroup|null
findByPk(mixed $id)
Get Product Group by id
at line 100
bool
deleteProductGroups(array $ids)
Delete multiple Product Groups
at line 111
mixed
getAllGroupsFromCache()
Get all product group data from cache, in there is no cached data cache it
at line 123
reCacheAllGroups()
Set product groups to cache
at line 135
array
getProductGroupsArray(array $ids)
Get array of Product Groups for ids
at line 149
ProductGroup
handlePersist(ProductGroup $productGroup)
Save new Product Group entity
at line 223
updateProductGroups(ProductGroupEvent $productGroupEvent)
at line 240
updateProductGroupsAttrValue(ProductGroupEvent $productGroupEvent)
Update Product groups when event is dispatched
at line 303
updateProductGroupsCategory(ProductGroupEvent $productGroupEvent)
Update Product groups when event is dispatched
at line 356
bool
shouldUpdateProductGroup(ProductGroup $productGroup)
Determines if group should be updated
at line 372
ProductSearchWrapper
createSearchWrapperFromProductGroup(ProductGroup $productGroup)
Create <a href="/.
./../../../Model/ProductBundle/Entity/ProductSearchWrapper.html">ProductSearchWrapper based on product group
at line 429
ProductGroup
editProductGroup(ProductGroup $productGroup, mixed $id)
Edit ProductGroup entity
at line 530
ProductGroup
editGroupDiscounts(mixed $id, array $data)
Edit only discounts for group with id
at line 565
bool
sortGroups(int $id, int $newIndex)
Change priority of Product Groups
at line 575
mixed
getLoggedUsername()
Get username of logged in user
at line 585
mixed
getLoggedUser()
Get logged in user
at line 595
mixed
hasRoleAdmin()
Checks if current user has ADMIN role
at line 604
CheckoutManager
getCheckoutManager()
Get checkout manager
at line 614
string
getCurrentLocale()
Get current locale string
at line 622
dispatchProductGroupUserReCacheEvent()
Dispatches re cache event
at line 635
bool|string
saveMultiple(array $newGroups, array $updatedGroups)
Save multiple groups
at line 648
bool
deleteProductGroupsAfterSync(array $groupsToSave, array $additionalParams = [])
Delete multiple product groups that are not in array
at line 673
array
findGroupsByName(string $name)
Find groups by name, wildcard can be used