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_Direct

Klutz_Comic_Direct Class.

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

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

Constructor - Create an object that can be used to retrieve a comic directly from a URL passed in (using substitutions as necessary).

Constructor - Create an object that can be used to retrieve a comic directly from a URL passed in (using substitutions as necessary).

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 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