Class Klutz_Comic_search

Description

Klutz_Comic_search Class.

This class takes uses $comic->url to get an image searchly. This is, of course, the most efficient as it takes one fetch.

$Horde: klutz/lib/Comic/search.php,v 1.31 2005/11/20 02:21:21 chuck Exp $

Located in /lib/Comic/search.php (line 13)

Klutz_Comic
   |
   --Klutz_Comic_search
Variable Summary
 array $search
Method Summary
 Klutz_Comic_search Klutz_Comic_search (string $comic)
 mixed &fetchImage ([timestamp $date = null])
 string fetchURL ([timestamp $date = null])
Variables
Methods
Constructor Klutz_Comic_search (line 29)

Constructor - Create an object that can be used to retrieve a comic by using a preg_match to reliably get the comic URL from an html document.

Klutz_Comic_search Klutz_Comic_search (string $comic)
  • string $comic: Index for the comic
fetchImage (line 134)

Fetch the actual image.

  • return: Klutz_Image on success, false otherwise.
mixed &fetchImage ([timestamp $date = null])
  • timestamp $date: The date to retrieve the comic for (default today).
fetchURL (line 64)

Do all that is necessary to get the final URL from which the comic will be fetched. Instead of returning the comic, return the URL pointing to that comic.

  • return: URL of the comic image
string fetchURL ([timestamp $date = null])
  • timestamp $date: Date of the comic to retrieve (default today)

Inherited Methods

Inherited From Klutz_Comic

 Klutz_Comic::Klutz_Comic()
 Klutz_Comic::getInstance()
 Klutz_Comic::getInstance_monthly()
 Klutz_Comic::getInstance_ref()
 Klutz_Comic::getInstance_weekly()
 Klutz_Comic::getInstance_yearly()
 Klutz_Comic::getOverride()
 Klutz_Comic::substitute()
 Klutz_Comic::_initHTTP()

Documentation generated on Sun, 30 Jan 2011 05:30:35 +0000 by phpDocumentor 1.4.3