Zend Framework
1.12
|
Public Member Functions | |
shorten ($url) | |
This function shortens long url. | |
unshorten ($shortenedUrl) | |
Reveals target for short URL. | |
Protected Attributes | |
$_baseUri = 'http://jdem.cz' | |
![]() | |
$_baseUri = null | |
Additional Inherited Members | |
![]() | |
static | setHttpClient (Zend_Http_Client $httpClient) |
Sets the HTTP client object to use for retrieving the feeds. | |
static | getHttpClient () |
Gets the HTTP client object. | |
![]() | |
_validateUri ($url) | |
Checks whether URL to be shortened is valid. | |
_verifyBaseUri ($shortenedUrl) | |
Verifies that the URL has been shortened by this service. | |
![]() | |
static | $_httpClient = null |
shorten | ( | $url | ) |
This function shortens long url.
string | $url | URL to Shorten |
Zend_Service_ShortUrl_Exception | When URL is not valid |
Implements Zend_Service_ShortUrl_Shortener.
unshorten | ( | $shortenedUrl | ) |
Reveals target for short URL.
string | $shortenedUrl | URL to reveal target of |
Zend_Service_ShortUrl_Exception | When URL is not valid or is not shortened by this service |
Implements Zend_Service_ShortUrl_Shortener.
|
protected |