Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated version of this page

Learn how to upgrade to the latest version.

Notification domain

Notification Commands

UpdateEmployeeNotificationLastElementCommand

PrestaShop\PrestaShop\Core\Domain\Notification\Command\UpdateEmployeeNotificationLastElementCommand Updates the last notification element from a given type seen by the employee

Command details
Constructor parameters
  • $string $type
Handler class PrestaShop\PrestaShop\Adapter\Notification\CommandHandler\UpdateEmployeeNotificationLastElementHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Notification\CommandHandler\UpdateEmployeeNotificationLastElementCommandHandlerInterface
Return type void

Notification Queries

GetNotificationLastElements

PrestaShop\PrestaShop\Core\Domain\Notification\Query\GetNotificationLastElements This Query return the last Notifications elements

Query details
Constructor parameters
  • $int $employeeId
Handler class PrestaShop\PrestaShop\Adapter\Notification\QueryHandler\GetNotificationLastElementsHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Notification\QueryHandler\GetNotificationLastElementsHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Notification\QueryResult\NotificationsResults