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

Class: Services_urlTea

Source Location: /Services_urlTea-0.1.0/Services/urlTea.php

Class Overview


Services_urlTea


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 71]
Services_urlTea

  1.  <?php
  2.  require_once 'Services/urlTea.php';
  3.  try {
  4.      $urlTea = new Services_urlTea();
  5.      $url $urlTea->create('http://www.joestump.net');
  6.      echo $url;
  7.  catch (Services_urlTea_Exception $e{
  8.      echo $e->getMessage();
  9.  }
  10.  ?>



[ Top ]


Class Variables

$api =  'http://urltea.com/api/text/'

[line 79]

Location of urlTea API
  • Var: URL of urlTea API
  • Access: protected

Type:   string


[ Top ]



Method Detail

create   [line 89]

string create( string $destination)

Create a urlTea
  • Access: public

Parameters:

string   $destination   —  The URL to make into tea

[ Top ]

lookup   [line 119]

string lookup( string $url)

Do a reverse lookup of a urlTea
  • Return: The destination URL of the urlTea URL
  • Access: public

Parameters:

string   $url   —  urlTea URL to look up

[ Top ]


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