Shortlinks
extends RowGateway
in package
implements
ShortlinksEntityInterface
Row Definition for shortlinks
Tags
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
$created
public
string
$created
$hash
public
string
$hash
$id
public
int
$id
$path
public
string
$path
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> —setCreated()
Set creation timestamp.
public
setCreated(DateTime $dateTime) : ShortlinksEntityInterface
Parameters
- $dateTime : DateTime
-
Creation timestamp
Return values
ShortlinksEntityInterface —setHash()
Set shortlinks hash.
public
setHash(string|null $hash) : ShortlinksEntityInterface
Parameters
- $hash : string|null
-
Shortlinks hash
Return values
ShortlinksEntityInterface —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