Klutz_ComicKlutz Comic Class.
$Horde: klutz/lib/Comic.php,v 1.33 2006/11/26 03:18:55 chuck Exp $
Located in /lib/Comic.php (line 10)
| Class | Description |
|---|---|
Klutz_Comic_bysize
|
Klutz_Comic_bysize Class. |
Klutz_Comic_direct
|
Klutz_Comic_direct Class. |
Klutz_Comic_search
|
Klutz_Comic_search Class. |
string
$agent
= null (line 99)
The user-agent to use when fetching the comic.
string
$author
= null (line 24)
The author or authors of the comic (the byline)
string
$comment
= null (line 47)
Some comment to display for this comic
array
$cookies
= array() (line 120)
Cookies to set when fetching the comic.
array
$days
= array('mon','tue','wed','thu','fri','sat','sun') (line 40)
Days (lowercase, three-letter english abbreviation) that this comic is is available.
array
$headers
= array() (line 127)
Headers to set when fetching the comic.
string
$homepage
= null (line 32)
The URL for the official homepage (not necessarily where we get the comic from.
HTTP_Request
$http
= null (line 73)
Web browser object used to fetch pages
integer
$icount
= 0 (line 161)
The number of the "first" instance of the comic (the reference number) when using the reference-based instance type
date
$idate
= null (line 168)
The date for which the reference is icount.
string
$iformat
= '%d' (line 153)
Format string for the instance construct (printf string)
string
$isow
= 'sun' (line 176)
The day the "week" starts for instance type weekly.
Abbreviated day name in english, lowercase.
string
$itype
= null (line 146)
Method for counting instances (when using the 'i' construct in substitutions.
string
$name
= null (line 17)
The title of the comics (Dilbert, The 5th Wave, etc.)
boolean
$nohistory
= false (line 62)
Are past episodes available? Some comics are difficult or impossible to retrieve other than the day it's published.
string
$offset
= 0 (line 54)
Days behind the current date this comic is published
array
$override
= array() (line 185)
The array of overrides by weekday. If sun_url exists, then when trying to fetch the sunday edition of this comic, it will fetch it from the specified url instead of $url.
string
$pass
= null (line 113)
The password to use when fetching the comic.
string
$referer
= null (line 92)
The referral URL to use when fetching the comic.
array
$subs
= null (line 134)
An array of the fields we need to do substitution on.
string
$url
(line 80)
The first url we need to hit to get the comic we want.
string
$user
= null (line 106)
The username to use when fetching the comic.
Constructor Klutz_Comic (line 192)
Loads the $comics[$comic] array into this object
getInstance (line 409)
Get the instance requested based on the date. The instance is determined by itype, iformat, idate, isow
getInstance_monthly (line 432)
Get an instance number for a comic that appears monthly
getInstance_ref (line 491)
Get an instance number for a comic based on a date reference.
This takes the idate option as a reference date, then uses the 'days' setting to determine how often it appears. Using this information it extrapolates which instance will occur on the date requested.
getInstance_weekly (line 463)
Get an instance number for a comic that appears weekly
getInstance_yearly (line 475)
Get an instance number for a comic that appears yearly (NOT IMPLEMENTED!)
getOverride (line 322)
Check for "override" settings - settings that override other settings depending on the day on which the comic appears
substitute (line 366)
Process known substitutions in a string. Currently known options:
_initHTTP (line 249)
Create an HTTP_Request object and set all parameters necessary to perform fetches for this comic.
Documentation generated on Sun, 30 Jan 2011 05:30:34 +0000 by phpDocumentor 1.4.3