Store domain

Store Commands

BulkDeleteStoreCommand

PrestaShop\PrestaShop\Core\Domain\Store\Command\BulkDeleteStoreCommand Deletes stores on bulk action

Command details
Constructor parameters
  • $array $storeIds
Handler class PrestaShop\PrestaShop\Adapter\Store\CommandHandler\BulkDeleteStoreHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Store\CommandHandler\BulkDeleteStoreHandlerInterface
Return type void

BulkUpdateStoreStatusCommand

PrestaShop\PrestaShop\Core\Domain\Store\Command\BulkUpdateStoreStatusCommand Toggles store status on bulk action

Command details
Constructor parameters
  • $bool $expectedStatus
  • $array $storeIds
Handler class PrestaShop\PrestaShop\Adapter\Store\CommandHandler\BulkUpdateStoreStatusHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Store\CommandHandler\BulkUpdateStoreStatusHandlerInterface
Return type void

DeleteStoreCommand

PrestaShop\PrestaShop\Core\Domain\Store\Command\DeleteStoreCommand Deletes store

Command details
Constructor parameters
  • $int $storeId
Handler class PrestaShop\PrestaShop\Adapter\Store\CommandHandler\DeleteStoreHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Store\CommandHandler\DeleteStoreHandlerInterface
Return type void

ToggleStoreStatusCommand

PrestaShop\PrestaShop\Core\Domain\Store\Command\ToggleStoreStatusCommand Toggles store status

Command details
Constructor parameters
  • $int $storeId
Handler class PrestaShop\PrestaShop\Adapter\Store\CommandHandler\ToggleStoreStatusHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Store\CommandHandler\ToggleStoreStatusHandlerInterface
Return type void

Store Queries

GetStoreForEditing

PrestaShop\PrestaShop\Core\Domain\Store\Query\GetStoreForEditing __

Query details
Constructor parameters
  • $int $storeId
Handler class PrestaShop\PrestaShop\Adapter\Store\QueryHandler\GetStoreForEditingHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Store\QueryHandler\GetStoreForEditingHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Store\QueryResult\StoreForEditing