VuFind API Documentation

FeedbackService extends AbstractDbService
in package
implements DbTableAwareInterface, FeedbackServiceInterface Uses DbTableAwareTrait

Database service for feedback.

Tags
category

VuFind

author

Sudharma Kellampalli skellamp@villanova.edu

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Interfaces, Classes, Traits and Enums

DbTableAwareInterface
Marker interface for classes that depend on the \VuFind\Db\Table\PluginManager
FeedbackServiceInterface
Database service interface for feedback.

Table of Contents

$tableManager  : PluginManager
Database table plugin manager
createEntity()  : FeedbackEntityInterface
Create a feedback entity object.
deleteByIdArray()  : int
Delete feedback by ids
getDbTable()  : Gateway
Get a database table object.
getDbTableManager()  : PluginManager
Get the table plugin manager. Throw an exception if it is missing.
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.
setDbTableManager()  : void
Set the table plugin manager.

Properties

Methods

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 a database table object.

public getDbTable(string $table) : Gateway
Parameters
$table : string

Table to load.

Return values
Gateway

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>

Search results