Warning: You are browsing the documentation for PrestaShop 8, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page
PrestaShop\PrestaShop\Core\Domain\Category\Command\AddCategoryCommand
Class AddCategoryCommand adds new category.
$array $localizedNames$array $localizedLinkRewrites$bool $isActive$int $parentCategoryIdPrestaShop\PrestaShop\Adapter\Category\CommandHandler\AddCategoryHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\CommandHandler\AddCategoryHandlerInterfacevoidPrestaShop\PrestaShop\Core\Domain\Category\Command\AddRootCategoryCommand
Class AddRootCategoryCommand adds new root category.
$array $name$array $linkRewrite$bool $isActivePrestaShop\PrestaShop\Adapter\Category\CommandHandler\AddRootCategoryHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\CommandHandler\AddRootCategoryHandlerInterfacevoidPrestaShop\PrestaShop\Core\Domain\Category\Command\BulkDeleteCategoriesCommand
Class BulkDeleteCategoriesCommand.
$array $categoryIds$string $deleteModePrestaShop\PrestaShop\Adapter\Category\CommandHandler\BulkDeleteCategoriesHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\CommandHandler\BulkDeleteCategoriesHandlerInterfacevoidPrestaShop\PrestaShop\Core\Domain\Category\Command\BulkDisableCategoriesCommand
Class DisableCategoriesCommand disables provided categories.
$array $categoryIdsPrestaShop\PrestaShop\Adapter\Category\CommandHandler\BulkUpdateCategoriesStatusHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\CommandHandler\BulkUpdateCategoriesStatusHandlerInterfacevoidPrestaShop\PrestaShop\Core\Domain\Category\Command\DeleteCategoryCoverImageCommand
Deletes cover image for given category.
$int $categoryIdPrestaShop\PrestaShop\Adapter\Category\CommandHandler\DeleteCategoryCoverImageHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\CommandHandler\DeleteCategoryCoverImageHandlerInterfacevoidPrestaShop\PrestaShop\Core\Domain\Category\Command\DeleteCategoryCommand
Class DeleteCategoryCommand deletes provided category.
$int $categoryId$string $modePrestaShop\PrestaShop\Adapter\Category\CommandHandler\DeleteCategoryHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\CommandHandler\DeleteCategoryHandlerInterfacevoidPrestaShop\PrestaShop\Core\Domain\Category\Command\DeleteCategoryMenuThumbnailImageCommand
Deletes given menu thumbnail for category.
$int $categoryId$int $menuThumbnailIdPrestaShop\PrestaShop\Adapter\Category\CommandHandler\DeleteCategoryMenuThumbnailImageHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\CommandHandler\DeleteCategoryMenuThumbnailImageHandlerInterfacevoidPrestaShop\PrestaShop\Core\Domain\Category\Command\EditCategoryCommand
Class EditCategoryCommand edits given category.
$int $categoryIdPrestaShop\PrestaShop\Adapter\Category\CommandHandler\EditCategoryHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\CommandHandler\EditCategoryHandlerInterfacevoidPrestaShop\PrestaShop\Core\Domain\Category\Command\EditRootCategoryCommand
Class EditRootCategoryCommand edits given root category. This command is actually handling the Home category edition, as the actual "root" category doesn't exist from UX perspective
$int $categoryIdPrestaShop\PrestaShop\Adapter\Category\CommandHandler\EditRootCategoryHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\CommandHandler\EditRootCategoryHandlerInterfacevoidPrestaShop\PrestaShop\Core\Domain\Category\Command\SetCategoryIsEnabledCommand
Class ToggleCategoryStatusCommand toggles given category status.
$int $categoryId$bool $isEnabledPrestaShop\PrestaShop\Adapter\Category\CommandHandler\SetCategoryIsEnabledHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\CommandHandler\SetCategoryIsEnabledHandlerInterfacevoidPrestaShop\PrestaShop\Core\Domain\Category\Command\UpdateCategoryPositionCommand
Updates category position
$int $categoryId$int $parentCategoryId$int $way$array $positions$bool $foundFirstPrestaShop\PrestaShop\Adapter\Category\CommandHandler\UpdateCategoryPositionHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\CommandHandler\UpdateCategoryPositionHandlerInterfacevoidPrestaShop\PrestaShop\Core\Domain\Category\Query\GetCategoriesTree
Provides Category tree list where each category holds its child categories
$int $languageId$int $shopIdPrestaShop\PrestaShop\Adapter\Category\QueryHandler\GetCategoriesTreeHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\QueryHandler\GetCategoriesTreeHandlerInterfacePrestaShop\PrestaShop\Core\Domain\Category\QueryResult\CategoryForTree[]PrestaShop\PrestaShop\Core\Domain\Category\Query\GetCategoryForEditing
Class GetCategoryForEditing retrieves category data for editing.
$int $categoryIdPrestaShop\PrestaShop\Adapter\Category\QueryHandler\GetCategoryForEditingHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\QueryHandler\GetCategoryForEditingHandlerInterfacePrestaShop\PrestaShop\Core\Domain\Category\QueryResult\EditableCategoryPrestaShop\PrestaShop\Core\Domain\Category\Query\GetCategoryIsEnabled
Get current status (enabled/disabled) for given category.
$int $categoryIdPrestaShop\PrestaShop\Adapter\Category\QueryHandler\GetCategoryIsEnabledHandler Implements:
PrestaShop\PrestaShop\Core\Domain\Category\QueryHandler\GetCategoryIsEnabledHandlerInterfacebool