Class Klutz_Comic_Bysize
Klutz_Comic_Bysize Class.
This class uses follows the search methodology until it hits the final page in the list. On this page it gets a list of all images and tries to figure out which image is most likely to be the comic based on image sizes. This is the LEAST efficient driver and you're discouraged from using it when not absolutely necessary.
- Klutz_Comic
- Klutz_Comic_Bysize
public
|
#
Klutz_Comic_bysize( string $comic )
Constructor - Create an object that can be used to retrieve a comic by looking at all images on a page, a list of images to ignore, and a range of dimensions, then choose which image is most likely the comic. |
public
string
|
|
public
mixed
&
|
|
public
array
|
#
_stripimages( string $document )
Strip the list of images from the contents of a web page. Derived from Snoopy's striplinks function. |
public
array
|
|
public
boolean
|
|
public
array
|
Klutz_Comic(),
_initHTTP(),
_prepareSearch(),
getInstance(),
getInstance_monthly(),
getInstance_ref(),
getInstance_weekly(),
getInstance_yearly(),
getOverride(),
substitute()
|
public
array
|
$search
Once set, an array of preg searches to perform to find the comic image |
#
null
|
public
array
|
$ignore
A list of images to ignore (preg matches) |
#
array()
|
public
integer
|
$minheight
What is the smallest height to consider |
#
0
|
public
integer
|
$minwidth
What are the smallest width to consider |
#
0
|
public
integer
|
$maxheight
What is the largest height to consider |
#
65536
|
public
integer
|
$maxwidth
What is the largest width to consider |
#
65536
|
public
string
|
$choose
How should we decide which image to take? Options are "first", "biggest", and "smallest". |
#
'biggest'
|
$agent,
$author,
$comment,
$cookies,
$days,
$headers,
$homepage,
$http,
$icount,
$idate,
$iformat,
$isow,
$itype,
$name,
$nohistory,
$offset,
$override,
$pass,
$referer,
$subs,
$url,
$user
|