phpDocumentor

InfoBoxRepositoryDeleter
in package
implements InfoBoxRepositoryDeleterInterface

Class InfoBoxRepositoryDeleter

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

InfoBoxRepositoryDeleterInterface
Interfaces InfoBoxDeleterInterface

Table of Contents

$db  : CI_DB_query_builder
Database connection
$id_column  : string
Name of the ID column.
$infoBoxTable  : string
Name of the table for the info box messages entries.
$infoBoxTableDescription  : string
Name of the table for the info box description entries.
$portalSourceType  : string
Portal notifications source-type.
__construct()  : mixed
InfoBoxDeleter constructor.
deleteById()  : mixed
Deletes a message by ID.
deleteByIdentifier()  : mixed
Deletes a message based on its identifier
deleteBySource()  : mixed
Deletes messages by source.

Properties

$infoBoxTable

Name of the table for the info box messages entries.

protected string $infoBoxTable = 'infobox_messages'

$infoBoxTableDescription

Name of the table for the info box description entries.

protected string $infoBoxTableDescription = 'infobox_messages_description'

Methods

__construct()

InfoBoxDeleter constructor.

public __construct(CI_DB_query_builder $db) : mixed
Parameters
$db : CI_DB_query_builder

Database connection.

Return values
mixed

deleteByIdentifier()

Deletes a message based on its identifier

public deleteByIdentifier(StringType $identifier) : mixed
Parameters
$identifier : StringType

Message identifier

Tags
todo

Find a better solution to delete the rows.

Return values
mixed

deleteBySource()

Deletes messages by source.

public deleteBySource(StringType $source) : mixed
Parameters
$source : StringType

Source.

Tags
NOTE

Find a better solution to delete the rows.

Return values
mixed

Search results