PHP Class Phergie_Plugin_Url_Shorten_Gscio, phergie

Author: Phergie Development Team ([email protected])
Inheritance: extends Phergie_Plugin_Url_Shorten_Abstract
Afficher le fichier Open project: phergie/phergie

Protected Properties

Свойство Type Description
$minimumLength integer Gsc URLs will most likely never be longer than 18 characters

Méthodes protégées

Méthode Description
getRequestParams ( string $url ) : array Returns an array of request parameters given a url to shorten. The following keys are valid request parameters:
onComplete ( Phergie_Plugin_Http_Response $response ) : string | boolean Callback for when the URL has been shortened. Checks for error messages.

Method Details

getRequestParams() protected méthode

Returns an array of request parameters given a url to shorten. The following keys are valid request parameters:
protected getRequestParams ( string $url ) : array
$url string the url to shorten
Résultat array the request parameters

onComplete() protected méthode

Callback for when the URL has been shortened. Checks for error messages.
protected onComplete ( Phergie_Plugin_Http_Response $response ) : string | boolean
$response Phergie_Plugin_Http_Response the response object
Résultat string | boolean the shortened url or false on failure

Property Details

$minimumLength protected_oe property

Gsc URLs will most likely never be longer than 18 characters
protected int $minimumLength
Résultat integer