Services_ShortURL
[ class tree: Services_ShortURL ] [ index: Services_ShortURL ] [ all elements ]

Class: Services_ShortURL_TinyURL

Source Location: /Services_ShortURL-0.3.1/Services/ShortURL/TinyURL.php

Class Overview

Services_ShortURL_Common
   |
   --Services_ShortURL_TinyURL

Interface for creating/expanding tinyurl.com links


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Services_ShortURL_Common

Services_ShortURL_Common::__construct()
Constructor
Services_ShortURL_Common::accept()
Acceptor pattern
Services_ShortURL_Common::expand()
Default expand method
Services_ShortURL_Common::info()
Fetch information about the short URL
Services_ShortURL_Common::stats()
Fetch information about the short URL

Class Details

[line 40]
Interface for creating/expanding tinyurl.com links


[ Top ]


Class Variables

$api =  'http://tinyurl.com/api-create.php'

[line 49]

TinyURL's API URL
  • Var: The location of TinyURL's API
  • Access: protected

Type:   string


[ Top ]



Method Detail

shorten   [line 59]

string shorten( string $url)

Shorten a link using TinyURL

Parameters:

string   $url   —  The URL to shorten

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:43:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.