Feedback
extends Gateway
in package
Class Feedback
Tags
Table of Contents
- $tableManager : PluginManager
- Table manager
- __construct() : mixed
- Constructor
- beginTransaction() : void
- Begin a database transaction.
- commitTransaction() : void
- Commit a database transaction.
- createRow() : object
- Create a new row.
- deleteByIdArray() : int
- Delete feedback by ids
- getDbTable() : Gateway
- Get access to another table.
- getFeedbackByFilter() : Paginator
- Get feedback by filter
- initializeFeatures() : void
- Initialize features
- rollBackTransaction() : void
- Roll back a database transaction.
Properties
$tableManager
Table manager
protected
PluginManager
$tableManager
Methods
__construct()
Constructor
public
__construct(Adapter $adapter, PluginManager $tm, array<string|int, mixed> $cfg[, RowGateway|null $rowObj = null ][, string $table = 'feedback' ]) : mixed
Parameters
- $adapter : Adapter
-
Database adapter
- $tm : PluginManager
-
Table manager
- $cfg : array<string|int, mixed>
-
Laminas configuration
- $rowObj : RowGateway|null = null
-
Row prototype object (null for default)
- $table : string = 'feedback'
-
Name of database table to interface with
Return values
mixed —beginTransaction()
Begin a database transaction.
public
beginTransaction() : void
Tags
Return values
void —commitTransaction()
Commit a database transaction.
public
commitTransaction() : void
Tags
Return values
void —createRow()
Create a new row.
public
createRow() : object
Return values
object —deleteByIdArray()
Delete feedback by ids
public
deleteByIdArray(array<string|int, mixed> $ids) : int
Parameters
- $ids : array<string|int, mixed>
-
IDs
Return values
int —Count of deleted rows
getDbTable()
Get access to another table.
public
getDbTable(string $table) : Gateway
Parameters
- $table : string
-
Table name
Return values
Gateway —getFeedbackByFilter()
Get feedback by filter
public
getFeedbackByFilter([string|null $formName = null ][, string|null $siteUrl = null ][, string|null $status = null ][, string|null $page = null ][, int $limit = 20 ]) : Paginator
Parameters
- $formName : string|null = null
-
Form name
- $siteUrl : string|null = null
-
Site URL
- $status : string|null = null
-
Current status
- $page : string|null = null
-
Current page
- $limit : int = 20
-
Limit per page
Return values
Paginator —initializeFeatures()
Initialize features
public
initializeFeatures(array<string|int, mixed> $cfg) : void
Parameters
- $cfg : array<string|int, mixed>
-
Laminas configuration
Return values
void —rollBackTransaction()
Roll back a database transaction.
public
rollBackTransaction() : void