프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$minimumLength | integer | is.gd says their URL will most likely never be longer than 18 characters |
메소드 | 설명 | |
---|---|---|
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. |
protected getRequestParams ( string $url ) : array | ||
$url | string | the url to shorten |
리턴 | array | the request parameters |
protected onComplete ( Phergie_Plugin_Http_Response $response ) : string | boolean | ||
$response | Phergie_Plugin_Http_Response | the response object |
리턴 | string | boolean | the shortened url or false on failure |
protected int $minimumLength | ||
리턴 | integer |