InfoBoxService

Implements \InfoBoxServiceInterface

Class InfoBoxService

category

System

package

InfoBox

Methods

InfoBoxService constructor.

__construct(\InfoBoxRepositoryInterface $repository) 

Arguments

$repository

\InfoBoxRepositoryInterface

Repository Instance

Adds a new info box message.

addMessage(\InfoBoxMessage $message) 

Arguments

$message

\InfoBoxMessage

Message to save.

Deletes a message by its ID.

deleteMessageById(\IdType $id) 

Arguments

$id

\IdType

Message ID.

Deletes a message based on its identifier.

deleteMessageByIdentifier(\StringType $identifier) 

Arguments

$identifier

\StringType

Message identifier.

Deletes a message based on the source.

deleteMessageBySource(\StringType $source) 

Arguments

$source

\StringType

Message source.

Returns all info box messages.

getAllMessages() : \InfoBoxMessageCollection

Reactivates the messages.

reactivateMessages() 

Updates a message status.

setMessageStatus(\IdType $id, \StringType $status) 

Arguments

$id

\IdType

Message ID.

$status

\StringType

Message status.

Properties

repository

repository : \InfoBoxRepositoryInterface