Services_ShortURL
[
class tree: Services_ShortURL
] [
index: Services_ShortURL
] [
all elements
]
Packages:
Services_ShortURL
Classes:
Services_ShortURL
Services_ShortURL_Bitly
Services_ShortURL_Common
Services_ShortURL_Digg
Services_ShortURL_Exception
Services_ShortURL_Exception_CouldNotExpand
Services_ShortURL_Exception_CouldNotShorten
Services_ShortURL_Exception_InvalidOptions
Services_ShortURL_Exception_NotImplemented
Services_ShortURL_Exception_UnknownService
Services_ShortURL_Googl
Services_ShortURL_Isgd
Services_ShortURL_Shortie
Services_ShortURL_TinyURL
Services_ShortURL_Trim
Files:
Bitly.php
Common.php
CouldNotExpand.php
CouldNotShorten.php
Digg.php
Exception.php
Googl.php
Interface.php
InvalidOptions.php
Isgd.php
NotImplemented.php
Shortie.php
ShortURL.php
TinyURL.php
Trim.php
UnknownService.php
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):
Joe Stump <
joe at joestump.net
>
Variables
$api
Methods
shorten
Inherited Variables
Class:
Services_ShortURL_Common
Services_ShortURL_Common::$options
Services_ShortURL_Common::$req
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
Author:
Joe Stump <
joe@joestump.net
>
Link:
http://pear.php.net/package/Services_ShortURL
Link:
http://tinyurl.com/
License:
New BSD License
[
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
Throws:
Services_ShortURL_Exception_CouldNotShorten
Access:
public
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.