CatalogueManager
class CatalogueManager implements BasicEntityManagerInterface
Class CatalogueManager is injected as empire_digital_catalogue_plugin.catalogue_manager service. CatalogueManager handles the logic for managed entity.
Traits
Constants
| DIGITAL_CATALOGUE_GENERATE_SIGNAL |
Digital catalogue generate signal event key |
| DIGITAL_CATALOGUE_TEMPLATE_SIGNAL |
Digital catalogue template signal event key |
Properties
| protected CatalogueRepository | $repository | ||
| protected CategoryManager | $categoryManager | ||
| protected ContainerInterface | $container |
Methods
No description
No description
No description
No description
Get all categories
Get all categories with id and name
Get catalogue by id
Get catalogue by id with select
Get digital catalogue for print
Get digital catalogue action products for print
Check if current user has role admin
Get current locale
Get current currency
Get all catalogues for frontend
Delete catalogues from array
Get catalogues array
Get products for category or on action
Dispatch catalogue event signal
Generate catalogues for categories
Generate catalogue pdf
Dispatch catalogue template event
Get PDF generator service
Get templating engine service
Get server path
Get web path
Handle file upload
Remove pdf file
Sort catalogues
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 65
__construct(CatalogueRepository $repository, CategoryManager $categoryManager, ContainerInterface $container)
at line 76
array
getAllCategories()
Get all categories
at line 85
array
getAllCategoriesIdAndName()
Get all categories with id and name
at line 96
Catalogue
getDigitalCatalogueById(int $id)
Get catalogue by id
at line 110
mixed
getDigitalCatalogueByIdWithSelect(int $id)
Get catalogue by id with select
at line 121
array
getDigitalCatalogueForPrint(int $catalogueId)
Get digital catalogue for print
at line 132
array
getDigitalCatalogueForPrintActionProducts(int $catalogueId)
Get digital catalogue action products for print
at line 369
mixed
hasRoleAdmin()
Check if current user has role admin
at line 379
string
getCurrentLocale()
Get current locale
at line 388
mixed
getCurrentCurrency()
Get current currency
at line 397
array
getAllCataloguesFrontEnd()
Get all catalogues for frontend
at line 416
bool
deleteCatalogues(array $array)
Delete catalogues from array
at line 440
array
getCataloguesArray(array $catalogues)
Get catalogues array
at line 454
QueryBuilder
getProductsForCategoryOrOnAction(mixed $param, mixed $page, int $offset, null $selectedProducts = null)
Get products for category or on action
at line 464
dispatchGenerateCatalogueEvent(int $id, string $webPath)
Dispatch catalogue event signal
at line 478
generateCataloguesForCategories(array $categories, string $currency, string $server)
Generate catalogues for categories
at line 495
generateCatalogue(int|string $id, string $currency, string $serverPath, string $webPath, null|string $locale = null)
Generate catalogue pdf
at line 642
EventWithResult|Event
dispatchCatalogTemplateEvent()
Dispatch catalogue template event
at line 651
PDFGenerator|object
getPDFGenerator()
Get PDF generator service
at line 660
mixed
getTemplatingEngine()
Get templating engine service
at line 669
string
getServerPath()
Get server path
at line 678
string
getWebPath()
Get web path
at line 689
savePDFFile(Catalogue $catalogue)
Save PDF File for catalogue
at line 720
array
handleFileUpload(mixed $file)
Handle file upload
at line 747
removePFDFile(mixed $file)
Remove pdf file
at line 765
mixed
sortCatalogues(int|string $id, int|string $newIndex)
Sort catalogues