Overview

Packages

  • Horde
    • Block
  • Klutz
  • None

Classes

  • Klutz
  • Klutz_Comic
  • Klutz_Comic_Bysize
  • Klutz_Comic_Direct
  • Klutz_Comic_Search
  • Klutz_Driver
  • Klutz_Driver_File
  • Klutz_Driver_Sql
  • Klutz_Image
  • Overview
  • Package
  • Class
  • Tree

Class Klutz_Comic_Search

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.

Klutz_Comic
Extended by Klutz_Comic_Search
Package: Klutz
Author: Marcus I. Ryan marcus@riboflavin.net
Located at Comic/Search.php
Methods summary
public
# Klutz_Comic_search( string $comic )

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.

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.

Parameters

$comic
Index for the comic
public string
# fetchURL( timestamp $date = null )

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.

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.

Parameters

$date
Date of the comic to retrieve (default today)

Returns

string
URL of the comic image
public mixed &
# fetchImage( timestamp $date = null )

Fetch the actual image.

Fetch the actual image.

Parameters

$date
<p>The date to retrieve the comic for (default today).</p>

Returns

mixed
Klutz_Image on success, false otherwise.
Methods inherited from Klutz_Comic
Klutz_Comic(), _initHTTP(), _prepareSearch(), getInstance(), getInstance_monthly(), getInstance_ref(), getInstance_weekly(), getInstance_yearly(), getOverride(), substitute()
Properties summary
public array $search

Once set, an array of preg searches to perform to find the comic image

Once set, an array of preg searches to perform to find the comic image

# null
Properties inherited from Klutz_Comic
$agent, $author, $comment, $cookies, $days, $headers, $homepage, $http, $icount, $idate, $iformat, $isow, $itype, $name, $nohistory, $offset, $override, $pass, $referer, $subs, $url, $user
API documentation generated by ApiGen