Notice: You are browsing the documentation for PrestaShop 8, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 1.7.

Profile domain

Profile Commands

AddProfileCommand

PrestaShop\PrestaShop\Core\Domain\Profile\Command\AddProfileCommand Adds new profile

Command details
Constructor parameters
  • $array $localizedNames
Handler class PrestaShop\PrestaShop\Adapter\Profile\CommandHandler\AddProfileHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Profile\CommandHandler\AddProfileHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Profile\ValueObject\ProfileId

BulkDeleteProfileCommand

PrestaShop\PrestaShop\Core\Domain\Profile\Command\BulkDeleteProfileCommand Class BulkDeleteProfileCommand is a command to bulk delete profiles by given ids.

Command details
Constructor parameters
  • $array $profileIds
Handler class PrestaShop\PrestaShop\Adapter\Profile\CommandHandler\BulkDeleteProfileHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Profile\CommandHandler\BulkDeleteProfileHandlerInterface
Return type void

DeleteProfileCommand

PrestaShop\PrestaShop\Core\Domain\Profile\Command\DeleteProfileCommand Class DeleteProfileCommand is a command to delete profile by given id.

Command details
Constructor parameters
  • $int $profileId
Handler class PrestaShop\PrestaShop\Adapter\Profile\CommandHandler\DeleteProfileHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Profile\CommandHandler\DeleteProfileHandlerInterface
Return type void

EditProfileCommand

PrestaShop\PrestaShop\Core\Domain\Profile\Command\EditProfileCommand Edits existing Profile

Command details
Constructor parameters
  • $int $profileId
  • $array $localizedNames
Handler class PrestaShop\PrestaShop\Adapter\Profile\CommandHandler\EditProfileHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Profile\CommandHandler\EditProfileHandlerInterface
Return type void

Profile Queries

GetProfileForEditing

PrestaShop\PrestaShop\Core\Domain\Profile\Query\GetProfileForEditing Get Profile data for editing

Query details
Constructor parameters
  • $int $profileId
Handler class PrestaShop\PrestaShop\Adapter\Profile\QueryHandler\GetProfileForEditingHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Profile\QueryHandler\GetProfileForEditingHandlerInterface
Return type mixed