Class InfoBoxService

Class InfoBoxService

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

Methods summary

public __construct( InfoBoxRepositoryInterface $repository )

InfoBoxService constructor.

public getAllMessages( void ) : InfoBoxMessageCollection

Returns all info box messages.

public addMessage( InfoBoxMessage $message )

Adds a new info box message.

public reactivateMessages( void )

Reactivates the messages.

public deleteMessageBySource( StringType $source )

Deletes a message based on the source.

public deleteMessageByIdentifier( StringType $identifier )

Deletes a message based on its identifier.

public deleteMessageById( IdType $id )

Deletes a message by its ID.

public setMessageStatus( IdType $id, StringType $status )

Updates a message status.

Properties summary