VuFind API Documentation

None
in package
implements UrlShortenerInterface

No-op URL shortener (default version, does nothing).

Tags
category

VuFind

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

UrlShortenerInterface
URL shortener interface.

Table of Contents

resolve()  : string
Dummy implementation. Resolving is not necessary because initial URL has not been shortened.
shorten()  : string
Dummy to return original URL version.

Methods

resolve()

Dummy implementation. Resolving is not necessary because initial URL has not been shortened.

public resolve(string $id) : string
Parameters
$id : string

ID to resolve

Tags
throws
Exception

because this class is not meant to resolve shortlinks.

Return values
string

shorten()

Dummy to return original URL version.

public shorten(string $url) : string
Parameters
$url : string

URL

Return values
string

Search results