Messages
extends Model
in package
Messages Class
Table of Contents
- $db : Database
- Contains the Database instance
- __construct() : mixed
- Constructor
- __destruct() : mixed
- Destructor
- deleteAllMessagesByIds() : void
- Delete all messages in the set of IDs
- getAllMessagesFiltered() : array<string|int, mixed>
- Get all messages filtered
- buildSearchQuery() : string
- Build the search query
- setNewDb() : void
- Creates a new Database object
Properties
$db
Contains the Database instance
protected
Database
$db
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —__destruct()
Destructor
public
__destruct() : mixed
Return values
mixed —deleteAllMessagesByIds()
Delete all messages in the set of IDs
public
deleteAllMessagesByIds(array<string|int, mixed> $ids) : void
Parameters
- $ids : array<string|int, mixed>
Return values
void —getAllMessagesFiltered()
Get all messages filtered
public
getAllMessagesFiltered(array<string|int, mixed> $to_query) : array<string|int, mixed>
Parameters
- $to_query : array<string|int, mixed>
Return values
array<string|int, mixed> —buildSearchQuery()
Build the search query
private
buildSearchQuery(array<string|int, mixed> $to_query) : string
Parameters
- $to_query : array<string|int, mixed>
Return values
string —setNewDb()
Creates a new Database object
private
setNewDb() : void