Documentation

YourlsProxy
in package

YourlsProxy

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

Table of Contents

Properties

$_error  : string
error message
$_url  : string
shortened URL

Methods

__construct()  : mixed
constructor
getError()  : string
Returns the (untranslated) error message
getUrl()  : string
Returns the shortened URL
isError()  : bool
Returns true if any error has occurred

Properties

$_error

error message

private string $_error = ''
Tags
access

private

$_url

shortened URL

private string $_url = ''
Tags
access

private

Methods

__construct()

constructor

public __construct(Configuration $conf, string $link) : mixed

initializes and runs PrivateBin

Parameters
$conf : Configuration
$link : string
Tags
access

public

getError()

Returns the (untranslated) error message

public getError() : string
Tags
access

public

Return values
string

getUrl()

Returns the shortened URL

public getUrl() : string
Tags
access

public

Return values
string

isError()

Returns true if any error has occurred

public isError() : bool
Tags
access

public

Return values
bool

        
On this page

Search results