VuFind API Documentation

Comments extends RowGateway
in package
implements CommentsEntityInterface, DbServiceAwareInterface Uses DbServiceAwareTrait

Row Definition for comments

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

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

link

Main Site

Interfaces, Classes, Traits and Enums

CommentsEntityInterface
Entity model interface for comments table
DbServiceAwareInterface
Marker interface for classes that depend on the \VuFind\Db\Service\PluginManager

Table of Contents

$comment  : string
$created  : string
$id  : int
$resource_id  : int
$user_id  : int|null
$dbServiceManager  : PluginManager
Database service plugin manager
__construct()  : mixed
Constructor
getComment()  : string
Comment getter
getCreated()  : DateTime
Created getter
getDbService()  : T
Get a database service object.
getDbServiceManager()  : PluginManager
Get the service plugin manager. Throw an exception if it is missing.
getId()  : int
Id getter
getPrimaryKeyColumn()  : array<string|int, mixed>
Retrieve primary key information.
getUser()  : UserEntityInterface|null
User getter
setComment()  : Comments
Comment setter
setCreated()  : Comments
Created setter.
setDbServiceManager()  : void
Set the service plugin manager.
setResource()  : Comments
Resource setter.
setUser()  : Comments
User setter.

Properties

Methods

__construct()

Constructor

public __construct(Adapter $adapter) : mixed
Parameters
$adapter : Adapter

Database adapter

Return values
mixed

getComment()

Comment getter

public getComment() : string
Return values
string

getCreated()

Created getter

public getCreated() : DateTime
Return values
DateTime

getDbService()

Get a database service object.

public getDbService(class-string<\VuFind\Db\Service\T> $name) : T
Parameters
$name : class-string<\VuFind\Db\Service\T>

Name of service to retrieve

Tags
template

T

Return values
T

getId()

Id getter

public getId() : int
Return values
int

getPrimaryKeyColumn()

Retrieve primary key information.

public getPrimaryKeyColumn() : array<string|int, mixed>
Return values
array<string|int, mixed>

setComment()

Comment setter

public setComment(string $comment) : Comments
Parameters
$comment : string

Comment

Return values
Comments

setCreated()

Created setter.

public setCreated(DateTime $dateTime) : Comments
Parameters
$dateTime : DateTime

Created date

Return values
Comments

Search results