InfoBoxRepositoryReader
in package
implements
InfoBoxRepositoryReaderInterface
Class InfoBoxReader
Tags
Interfaces, Classes and Traits
- InfoBoxRepositoryReaderInterface
- Interface InfoBoxReaderInterface
Table of Contents
- $db : CI_DB_query_builder
- Database connection.
- $infoBoxTable : string
- Name of the table for the info box messages entries.
- $infoBoxTableDescription : string
- Name of the table for the info box description entries.
- $languageProvider : LanguageProvider
- Language provider.
- __construct() : mixed
- InfoBoxReader constructor.
- getAll() : InfoBoxMessageCollection
- Returns all messages.
- _createCollection() : mixed
- _createObject() : mixed
Properties
$db
Database connection.
protected
CI_DB_query_builder
$db
$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'
$languageProvider
Language provider.
protected
LanguageProvider
$languageProvider
Methods
__construct()
InfoBoxReader constructor.
public
__construct(CI_DB_query_builder $db) : mixed
Parameters
- $db : CI_DB_query_builder
-
Database connection.
Return values
mixed —getAll()
Returns all messages.
public
getAll() : InfoBoxMessageCollection
Return values
InfoBoxMessageCollection —_createCollection()
private
_createCollection(array<string|int, mixed> $rows) : mixed
Parameters
- $rows : array<string|int, mixed>
Return values
mixed —_createObject()
private
_createObject(array<string|int, mixed> $message) : mixed
Parameters
- $message : array<string|int, mixed>