InfoBoxRepositoryDeleter
in package
implements
InfoBoxRepositoryDeleterInterface
Class InfoBoxRepositoryDeleter
Tags
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
$db
Database connection
protected
CI_DB_query_builder
$db
$id_column
Name of the ID column.
protected
string
$id_column
= 'infobox_messages_id'
$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'
$portalSourceType
Portal notifications source-type.
protected
string
$portalSourceType
= 'portal_info'
Methods
__construct()
InfoBoxDeleter constructor.
public
__construct(CI_DB_query_builder $db) : mixed
Parameters
- $db : CI_DB_query_builder
-
Database connection.
Return values
mixed —deleteById()
Deletes a message by ID.
public
deleteById(IdType $id) : mixed
Parameters
- $id : IdType
-
Message ID.
Return values
mixed —deleteByIdentifier()
Deletes a message based on its identifier
public
deleteByIdentifier(StringType $identifier) : mixed
Parameters
- $identifier : StringType
-
Message identifier
Tags
Return values
mixed —deleteBySource()
Deletes messages by source.
public
deleteBySource(StringType $source) : mixed
Parameters
- $source : StringType
-
Source.