\PrivateBinYourlsProxy

YourlsProxy

Forwards a URL for shortening to YOURLS (your own URL shortener) and stores the result.

Summary

Methods
Properties
Constants
__construct()
getError()
getUrl()
isError()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_error
$_url
N/A

Properties

$_error

$_error :string

error message

Type

string

$_url

$_url :string

shortened URL

Type

string

Methods

__construct()

__construct(\PrivateBin\Configuration  $conf,string  $link)

constructor

initializes and runs PrivateBin

Parameters

\PrivateBin\Configuration $conf
string $link

getError()

getError(): string

Returns the (untranslated) error message

Returns

string

getUrl()

getUrl(): string

Returns the shortened URL

Returns

string

isError()

isError(): boolean

Returns true if any error has occurred

Returns

boolean