VuFind API Documentation

ShortlinksService extends AbstractDbService
in package
implements DbTableAwareInterface, ShortlinksServiceInterface, TransactionInterface Uses DbTableAwareTrait

Database service for shortlinks.

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
ShortlinksServiceInterface
Database service interface for shortlinks.
TransactionInterface
Interface for exposing the database transaction functionality.

Table of Contents

$tableManager  : PluginManager
Database table plugin manager
beginTransaction()  : void
Begin a database transaction.
commitTransaction()  : void
Commit a database transaction.
createAndPersistEntityForPath()  : ShortlinksEntityInterface
Create and persist an entity for the provided path.
createEntity()  : ShortlinksEntityInterface
Create a short link entity.
getDbTable()  : Gateway
Get a database table object.
getDbTableManager()  : PluginManager
Get the table plugin manager. Throw an exception if it is missing.
getShortLinkByHash()  : ShortlinksEntityInterface|null
Look up a short link by hash value.
getShortLinksWithMissingHashes()  : array<string|int, ShortlinksEntityInterface>
Get rows with missing hashes (for legacy upgrading).
persistEntity()  : void
Persist an entity.
rollBackTransaction()  : void
Roll back a database transaction.
setDbTableManager()  : void
Set the table plugin manager.

Properties

Methods

beginTransaction()

Begin a database transaction.

public beginTransaction() : void
Tags
throws
Exception
Return values
void

commitTransaction()

Commit a database transaction.

public commitTransaction() : void
Tags
throws
Exception
Return values
void

getDbTable()

Get a database table object.

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

Table to load.

Return values
Gateway

rollBackTransaction()

Roll back a database transaction.

public rollBackTransaction() : void
Tags
throws
Exception
Return values
void

Search results