PHPFSPOTPHPFSPOT main class
Located in /phpfspot.class.php (line 33)
void
showTextImage
(string $txt, [string $color = 000000], [integer $space = 4], [integer $font = 4], [integer $w = 300])
array
$avail_tags
(line 80)
list of available, not-selected, tags
PHPFSPOT_CFG
$cfg
(line 41)
phpfspot configuration
PHPFSPOT_DB
$cfg_db
(line 57)
SQLite database handle to phpfspot database
PHPFSPOT_DB
$db
(line 49)
SQLite database handle to f-spot database
array
$tags
(line 73)
full tag - list
PHPFSPOT_TMPL
$tmpl
(line 66)
Smarty template engine
Constructor __construct (line 103)
class constructor ($cfg, $db, $cfg_db, $tmpl, $db_ver)
this function will be called on class construct and will check requirements, loads configuration, open databases and start the user session
Destructor __destruct (line 223)
addTag (line 759)
add tag to users session variable
this function will add the specified to users current tag selection. if a date search has been made before it will be now cleared
checkifImageSupported (line 1976)
check if specified MIME type is supported
check_config_table (line 1515)
create phpfspot own sqlite database
this function creates phpfspots own sqlite database if it does not exist yet. this own is used to store some necessary informations (md5 sum's, ...).
cleanup_phpfspot_db (line 2742)
cleanup phpfspot own database
When photos are getting delete from F-Spot, there will remain remain some residues in phpfspot own database. This function will try to wipe them out.
create_thumbnail (line 1348)
create_thumbnails for the requested width
this function creates image thumbnails of $orig_image stored as $thumb_image. It will check if the image is in a supported format, if necessary rotate the image (based on EXIF orientation meta headers) and re-sizing.
delTag (line 783)
remove tag to users session variable
this function removes the specified tag from users current tag selection
gen_thumb (line 1543)
Generates a thumbnail from photo idx
This function will generate JPEG thumbnails from provided F-Spot photo indizes.
getAvailableTags (line 642)
all available tags and tag cloud
this function outputs all available tags (time ordered) and in addition output them as tag cloud (tags which have many photos will appears more then others)
getCurrentPhoto (line 2253)
return the current photo
getExport (line 2122)
output export page
getFspotDBVersion (line 2613)
retrive F-Spot database version
this function will return the F-Spot database version number It is stored within the sqlite3 database in the table meta
getMD5 (line 1627)
returns stored md5 sum for a specific photo
this function queries the phpfspot database for a stored MD5 checksum of the specified photo
getNextSlideShowImage (line 2370)
return the next to be shown slide show image
this function returns the URL of the next image in the slideshow sequence.
getPhotoName (line 451)
returns aligned photo names
this function returns aligned (length) names for an specific photo. If the length of the name exceeds $limit the name will be shrinked (...)
getPhotoSelection (line 924)
return all photo according selection
this function returns all photos based on the tag-selection, tag- or date-search. the tag-search also has to take care of AND and OR conjunctions
getPrevSlideShowImage (line 2390)
return the previous to be shown slide show image
this function returns the URL of the previous image in the slideshow sequence.
getRSSFeed (line 2164)
output RSS feed
getSelectedTags (line 726)
output all selected tags
this function output all tags which have been selected by the user. the selected tags are stored in the session-variable $_SESSION['selected_tags']
get_calendar_matrix (line 2043)
output calendar matrix
get_meta_informations (line 1502)
return all exif meta data from the file
get_num_photos (line 2542)
returns the number of photos which are tagged with $tag_id
get_photo_details (line 392)
extract all photo details
retrieve all available details from f-spot's database and return them as object
get_random_photo (line 2421)
get random photo
this function will get all photos from the fspot database and randomly return ONE entry
saddly there is yet no sqlite3 function which returns the bulk result in array, so we have to fill up our own here.
get_thumb_path (line 2493)
returns the full path to a thumbnail
get_xml_tag_list (line 815)
returns the value for the autocomplet tag-search
isValidDate (line 2447)
validates provided date
this function validates if the provided date contains a valid date and will return true if it is.
parse_uri (line 2633)
parse the provided URI and will returned the requested chunk
resetDateSearch (line 906)
reset date search
if any date search has taken place, reset it now
resetNameSearch (line 893)
reset name search
if any name search has taken place, reset it now
resetPhotoView (line 869)
reset single photo
if a specific photo was requested (external link) unset the session variable now
resetSlideShow (line 2403)
resetTags (line 804)
reset tag selection
if there is any tag selection, it will be deleted now
resetTagSearch (line 881)
reset tag search
if any tag search has taken place, reset it now
setTagCondition (line 1665)
store current tag condition
this function stores the current tag condition (AND or OR) in the users session variables
show (line 237)
show - generate html output
this function can be called after the constructor has prepared everyhing. it will load the index.tpl smarty template. if necessary it will registere pre-selects (photo index, photo, tag search, date search) into users session.
showCredits (line 1327)
show credit template
showPhoto (line 506)
control HTML ouput for a single photo
this function provides all the necessary information for the single photo template.
showPhotoIndex (line 1128)
control HTML ouput for photo index
this function provides all the necessary information for the photo index template.
showTextImage (line 1890)
create on-the-fly images with text within
smarty_sort_select_list (line 2308)
returns a select-dropdown box to select photo index sort parameters
startSearch (line 1683)
invoke tag & date search
this function will return all matching tags and store them in the session variable selected_tags. furthermore it also handles the date search. getPhotoSelection() will then only return the matching photos.
translate_path (line 493)
translate f-spoth photo path
as the full-qualified path recorded in the f-spot database is usally not the same as on the webserver, this function will replace the path with that one specified in the cfg
updateSortOrder (line 1735)
updates sort order in session variable
this function is invoked by RPC and will sort the requested sort order in the session variable.
whatToDo (line 2270)
tells the client browser what to do
this function is getting called via AJAX by the client browsers. it will tell them what they have to do next. This is necessary for directly jumping into photo index or single photo view when the are requested with specific URLs
_error (line 1989)
output error text
Documentation generated on Sat, 12 Apr 2008 18:24:57 +0200 by phpDocumentor 1.4.2