Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.
You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page
PrestaShop\PrestaShop\Core\Domain\Category\Command\AddCategoryCommand
Class AddCategoryCommand adds new category.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\CommandHandler\AddCategoryHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Category\Command\AddRootCategoryCommand
Class AddRootCategoryCommand adds new root category.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\CommandHandler\AddRootCategoryHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Category\Command\BulkDeleteCategoriesCommand
Class BulkDeleteCategoriesCommand.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\CommandHandler\BulkDeleteCategoriesHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Category\Command\BulkDisableCategoriesCommand
Class DisableCategoriesCommand disables provided categories.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\CommandHandler\BulkUpdateCategoriesStatusHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Category\Command\DeleteCategoryCoverImageCommand
Deletes cover image for given category.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\CommandHandler\DeleteCategoryCoverImageHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Category\Command\DeleteCategoryCommand
Class DeleteCategoryCommand deletes provided category.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\CommandHandler\DeleteCategoryHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Category\Command\DeleteCategoryMenuThumbnailImageCommand
Deletes given menu thumbnail for category.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\CommandHandler\DeleteCategoryMenuThumbnailImageHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Category\Command\EditCategoryCommand
Class EditCategoryCommand edits given category.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\CommandHandler\EditCategoryHandler Implements:
|
Return type | void |
PrestaShop\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
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\CommandHandler\EditRootCategoryHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Category\Command\SetCategoryIsEnabledCommand
Class ToggleCategoryStatusCommand toggles given category status.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\CommandHandler\SetCategoryIsEnabledHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Category\Command\UpdateCategoryPositionCommand
Updates category position
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\CommandHandler\UpdateCategoryPositionHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Category\Query\GetCategoriesTree
Provides Category tree list where each category holds its child categories
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\QueryHandler\GetCategoriesTreeHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Category\QueryResult\CategoryForTree[] |
PrestaShop\PrestaShop\Core\Domain\Category\Query\GetCategoryForEditing
Class GetCategoryForEditing retrieves category data for editing.
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\QueryHandler\GetCategoryForEditingHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Category\QueryResult\EditableCategory |
PrestaShop\PrestaShop\Core\Domain\Category\Query\GetCategoryIsEnabled
Get current status (enabled/disabled) for given category.
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Category\QueryHandler\GetCategoryIsEnabledHandler Implements:
|
Return type | bool |