VuFind API Documentation

Shortlinks extends RowGateway
in package
implements ShortlinksEntityInterface

Row Definition for shortlinks

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

ShortlinksEntityInterface
Entity model interface for shortlinks table

Table of Contents

$created  : string
$hash  : string
$id  : int
$path  : string
__construct()  : mixed
Constructor
getCreated()  : DateTime
Get creation timestamp.
getHash()  : string|null
Get shortlinks hash.
getId()  : int|null
Get identifier (returns null for an uninitialized or non-persisted object).
getPath()  : string
Get the path of the URL.
getPrimaryKeyColumn()  : array<string|int, mixed>
Retrieve primary key information.
setCreated()  : ShortlinksEntityInterface
Set creation timestamp.
setHash()  : ShortlinksEntityInterface
Set shortlinks hash.
setPath()  : ShortlinksEntityInterface
Set the path (e.g. /Search/Results?lookfor=foo) of the URL being shortened; shortened URLs are always assumed to be within the hostname where VuFind is running.

Properties

Methods

__construct()

Constructor

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

Database adapter

Return values
mixed

getCreated()

Get creation timestamp.

public getCreated() : DateTime
Return values
DateTime

getHash()

Get shortlinks hash.

public getHash() : string|null
Return values
string|null

getId()

Get identifier (returns null for an uninitialized or non-persisted object).

public getId() : int|null
Return values
int|null

getPath()

Get the path of the URL.

public getPath() : string
Return values
string

getPrimaryKeyColumn()

Retrieve primary key information.

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

setPath()

Set the path (e.g. /Search/Results?lookfor=foo) of the URL being shortened; shortened URLs are always assumed to be within the hostname where VuFind is running.

public setPath(string $path) : ShortlinksEntityInterface
Parameters
$path : string

Path

Return values
ShortlinksEntityInterface

Search results