Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Service_ShortUrl_IsGd Class Reference

Public Member Functions

 shorten ($url)
 This function shortens long url.
 
 unshorten ($shortenedUrl)
 Reveals target for short URL.
 

Protected Attributes

 $_baseUri = 'http://is.gd'
 
- Protected Attributes inherited from Zend_Service_ShortUrl_AbstractShortener
 $_baseUri = null
 

Additional Inherited Members

- Static Public Member Functions inherited from Zend_Service_Abstract
static setHttpClient (Zend_Http_Client $httpClient)
 Sets the HTTP client object to use for retrieving the feeds.
 
static getHttpClient ()
 Gets the HTTP client object.
 
- Protected Member Functions inherited from Zend_Service_ShortUrl_AbstractShortener
 _validateUri ($url)
 Checks whether URL to be shortened is valid.
 
 _verifyBaseUri ($shortenedUrl)
 Verifies that the URL has been shortened by this service.
 
- Static Protected Attributes inherited from Zend_Service_Abstract
static $_httpClient = null
 

Member Function Documentation

shorten (   $url)

This function shortens long url.

Parameters
string$urlURL to Shorten
Exceptions
Zend_Service_ShortUrl_ExceptionWhen URL is not valid
Returns
string New URL

Implements Zend_Service_ShortUrl_Shortener.

unshorten (   $shortenedUrl)

Reveals target for short URL.

Parameters
string$shortenedUrlURL to reveal target of
Exceptions
Zend_Service_ShortUrl_ExceptionWhen URL is not valid or is not shortened by this service
Returns
string

Implements Zend_Service_ShortUrl_Shortener.

Member Data Documentation

$_baseUri = 'http://is.gd'
protected