FeedbackServiceInterface
extends
DbServiceInterface
in
Database service interface for feedback.
Tags
Table of Contents
- createEntity() : FeedbackEntityInterface
- Create a feedback entity object.
- deleteByIdArray() : int
- Delete feedback by ids
- getFeedbackById() : FeedbackEntityInterface|null
- Fetch a feedback entity by ID.
- getFeedbackPaginator() : Paginator
- Get feedback by filter
- getUniqueColumn() : array<string|int, mixed>
- Get unique values for a column of the feedback table
- persistEntity() : void
- Persist an entity.
Methods
createEntity()
Create a feedback entity object.
public
createEntity() : FeedbackEntityInterface
Return values
FeedbackEntityInterface —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
getFeedbackById()
Fetch a feedback entity by ID.
public
getFeedbackById(int $id) : FeedbackEntityInterface|null
Parameters
- $id : int
-
ID of feedback entity
Return values
FeedbackEntityInterface|null —getFeedbackPaginator()
Get feedback by filter
public
getFeedbackPaginator([string|null $formName = null ][, string|null $siteUrl = null ][, string|null $status = null ][, int|null $page = null ][, int $limit = 20 ]) : Paginator
Parameters
- $formName : string|null = null
-
Form name (optional filter)
- $siteUrl : string|null = null
-
Site URL (optional filter)
- $status : string|null = null
-
Current status (optional filter)
- $page : int|null = null
-
Current page (optional)
- $limit : int = 20
-
Limit per page
Return values
Paginator —getUniqueColumn()
Get unique values for a column of the feedback table
public
getUniqueColumn(string $column) : array<string|int, mixed>
Parameters
- $column : string
-
Column name
Return values
array<string|int, mixed> —persistEntity()
Persist an entity.
public
persistEntity(EntityInterface $entity) : void
Parameters
- $entity : EntityInterface
-
Entity to persist.