Zend Framework  1.12
Public Member Functions | List of all members
Zend_Service_ShortUrl_Shortener Interface Reference

Public Member Functions

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

Member Function Documentation

shorten (   $url)

This function shortens long url.

Parameters
string$urlURL to Shorten
Returns
string Shortened Url

Implemented in Zend_Service_ShortUrl_BitLy, Zend_Service_ShortUrl_MetamarkNet, Zend_Service_ShortUrl_IsGd, Zend_Service_ShortUrl_JdemCz, and Zend_Service_ShortUrl_TinyUrlCom.

unshorten (   $shortenedUrl)

Reveals target for short URL.

Parameters
string$shortenedUrlURL to reveal target of
Returns
string Unshortened Url

Implemented in Zend_Service_ShortUrl_BitLy, Zend_Service_ShortUrl_IsGd, Zend_Service_ShortUrl_JdemCz, Zend_Service_ShortUrl_MetamarkNet, and Zend_Service_ShortUrl_TinyUrlCom.