Klutz_Driver_sqlKlutz Driver implementation for comics as files with SUM info stored in SQL database.
$Horde: klutz/lib/Driver/sql.php,v 1.19 2008/09/08 21:28:18 mrubinsk Exp $
Required parameters:
'directory' The main directory the comics are stored in
Located in /lib/Driver/sql.php (line 17)
Klutz_Driver | --Klutz_Driver_sql
Constructor Klutz_Driver_sql (line 46)
Constructs a new SQL storage object.
addSum (line 119)
Add a unique identifier for a given image.
imageExists (line 337)
Find out if we already have a local copy of this image.
imageSize (line 319)
Get the image dimensions for the requested image.
isUnique (line 198)
Determine if the image passed is a unique image (one we don't already have).
This allows for $days = random, etc., but keeps us from getting the same comic day after day.
listDates (line 236)
Get a list of the dates for which we have comics between $oldest and $newest. Only returns dates we have at least one comic for.
loadSums (line 71)
We do nothing in this function for the SQL driver since we grab the info on demand from the database. We keep the function here, however to honor our 'interface' since we call this function from various places in the client code.
rebuildSums (line 80)
Rebuild the table of unique identifiers.
removeDate (line 444)
Remove all images from the storage system (including unique IDs) for a given date.
removeImage (line 420)
Remove an image from the storage system (including its unique ID).
removeSum (line 154)
Remove the unique identifier for the given comic and/or
date. If both are passed, removes the uid for that comic and date. If only a comic is passed, removes all uids for that comic. If only a date is passed removes uids for all comics on that date. If neither is passed, all uids are wiped out.
retrieveImage (line 358)
Retrieve an image from storage. Make sure the image exists first with imageExists().
storeImage (line 377)
Store an image for later retrieval.
Inherited From Klutz_Driver
Klutz_Driver::Klutz_Driver()
Klutz_Driver::factory()
Klutz_Driver::imageExists()
Klutz_Driver::imageSize()
Klutz_Driver::listDates()
Klutz_Driver::retrieveImage()
Klutz_Driver::singleton()
Klutz_Driver::storeImage()
Documentation generated on Sun, 30 Jan 2011 05:30:35 +0000 by phpDocumentor 1.4.3