YourlsProxy
in package
YourlsProxy
Forwards a URL for shortening to YOURLS (your own URL shortener) and stores the result.
Table of Contents
Properties
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
$_url
shortened URL
private
string
$_url
= ''
Tags
Methods
__construct()
constructor
public
__construct(Configuration $conf, string $link) : mixed
initializes and runs PrivateBin
Parameters
- $conf : Configuration
- $link : string
Tags
getError()
Returns the (untranslated) error message
public
getError() : string
Tags
Return values
stringgetUrl()
Returns the shortened URL
public
getUrl() : string
Tags
Return values
stringisError()
Returns true if any error has occurred
public
isError() : bool