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

Protected Member Functions

 _validateUri ($url)
 Checks whether URL to be shortened is valid.
 
 _verifyBaseUri ($shortenedUrl)
 Verifies that the URL has been shortened by this service.
 

Protected Attributes

 $_baseUri = null
 

Additional Inherited Members

- Public Member Functions inherited from Zend_Service_ShortUrl_Shortener
 shorten ($url)
 This function shortens long url.
 
 unshorten ($shortenedUrl)
 Reveals target for short URL.
 
- 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.
 
- Static Protected Attributes inherited from Zend_Service_Abstract
static $_httpClient = null
 

Member Function Documentation

_validateUri (   $url)
protected

Checks whether URL to be shortened is valid.

Parameters
string$url
Exceptions
Zend_Service_ShortUrl_ExceptionWhen URL is not valid
_verifyBaseUri (   $shortenedUrl)
protected

Verifies that the URL has been shortened by this service.

Exceptions
Zend_Service_ShortUrl_ExceptionIf the URL hasn't been shortened by this service
Parameters
string$shortenedUrl

Member Data Documentation

$_baseUri = null
protected