Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Orders
    • Serializers
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Interfaces
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • InfoBoxDeleter
  • InfoBoxMessage
  • InfoBoxMessageCollection
  • InfoBoxReader
  • InfoBoxService

Class InfoBoxService

Class InfoBoxService

InfoBoxService implements InfoBoxServiceInterface
Package: InfoBox
Category: System
Located at Services/Core/InfoBox/InfoBoxService.php

Methods summary

public
# __construct( InfoBoxReader $reader, InfoBoxWriter $writer, InfoBoxDeleter $deleter )

InfoBoxService constructor.

InfoBoxService constructor.

Parameters

$reader
Reader.
$writer
Writer.
$deleter
Deleter.
public InfoBoxMessageCollection
# getAllMessages( )

Returns all info box messages.

Returns all info box messages.

Returns

InfoBoxMessageCollection

Implementation of

InfoBoxServiceInterface::getAllMessages()
public
# addMessage( InfoBoxMessage $message )

Adds a new info box message.

Adds a new info box message.

Parameters

$message
Message to save.
public
# updateMessage( InfoBoxMessage $message )

Updates a info box message.

Updates a info box message.

Parameters

$message
Message to update.
public
# reactivateMessages( )

Reactivates the messages

Reactivates the messages

public
# deleteMessageBySource( StringType $source )

Deletes a message based on the source.

Deletes a message based on the source.

Parameters

$source
Message source.
public
# deleteMessageByIdentifier( StringType $identifier )

Deletes a message based on its identifier.

Deletes a message based on its identifier.

Parameters

$identifier
Message identifier.
public
# deleteMessageById( IdType $id )

Deletes a message by its ID.

Deletes a message by its ID.

Parameters

$id
Message ID.
public
# setMessageStatus( IdType $id, StringType $status )

Updates a message status.

Updates a message status.

Parameters

$id
Message ID.
$status
Message status.

Properties summary

protected InfoBoxReader $reader

Reader.

Reader.

#
protected InfoBoxWriter $writer

Writer.

Writer.

#
protected InfoBoxDeleter $deleter

Deleter.

Deleter.

#
API documentation generated by ApiGen