Overview   Package   Tree   Index 
IMDBPHP
PREV  NEXT Frames  No Frame 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Api
Class imdb_config

Direct Known Subclasses:
imdb_base, imdbsearch

class imdb_config

Configuration part of the IMDB classes

Authors:
Izzy (izzysoft AT qumran DOT org)
Version:
$Revision: 253 $ $Date: 2009-10-11 23:54:15 +0200 (So, 11. Okt 2009) $
Copyright:
(c) 2002-2004 by Giorgos Giagas and (c) 2004-2008 by Itzchak Rehberg and IzzySoft

Field Summary
integer$cache_expire
Cache expiration - cache files older than this value (in seconds) will be automatically deleted.
string$cachedir
Directory to store the cache files.
boolean$converttozip
Convert non-zip cache-files to zip (check file permissions!
boolean$debug
Enable debug mode?
string$imdb_img_url
Where the local IMDB images reside (look for the "showtimes/" directory) This should be either a relative, an absolute, or an URL including the protocol (e.
string$imdbsite
IMDB server to use.
integer$maxresults
Limit for the result set of searches.
string$photodir
Where to store images retrieved from the IMDB site by the method photo_localurl().
string$photoroot
URL corresponding to photodir, i.
string$searchvariant
Moviename search variant.
boolean$storecache
Store the pages retrieved for later use?
boolean$usecache
Use a cached page to retrieve the information if available?
boolean$usezip
Use zip compression for caching the retrieved html-files?

Constructor Summary
void imdb_config()
Constructor and only method of this base class.


Field Detail

cache_expire

integer $cache_expire

Cache expiration - cache files older than this value (in seconds) will be automatically deleted.


cachedir

string $cachedir

Directory to store the cache files. This must be writable by the web server. It doesn't need to be under documentroot.


converttozip

boolean $converttozip

Convert non-zip cache-files to zip (check file permissions!)?


debug

boolean $debug

Enable debug mode?


imdb_img_url

string $imdb_img_url

Where the local IMDB images reside (look for the "showtimes/" directory) This should be either a relative, an absolute, or an URL including the protocol (e.g. when a different server shall deliver them)


imdbsite

string $imdbsite

IMDB server to use. choices are us.imdb.com, uk.imdb.com, akas.imdb.com, german.imdb.com and italian.imdb.com - the localized ones (i.e. italian and german) are only qualified to find the movies IMDB ID (with the imdbsearch class) -- but parsing (with the imdb class) for most of the details will fail at the moment.


maxresults

integer $maxresults

Limit for the result set of searches. Use 0 for no limit, or the number of maximum entries you wish. Default (when commented out) is 20.


photodir

string $photodir

Where to store images retrieved from the IMDB site by the method photo_localurl(). This needs to be under documentroot to be able to display them on your pages.


photoroot

string $photoroot

URL corresponding to photodir, i.e. the URL to the images, i.e. start at your servers DOCUMENT_ROOT when specifying absolute path


searchvariant

string $searchvariant

Moviename search variant. There are different ways of searching for a movie name, with slightly differing result sets. Set the variant you prefer, either "sevec", "moonface", or "izzy". The latter one is the default if you comment out this setting or use an empty string.


storecache

boolean $storecache

Store the pages retrieved for later use?


usecache

boolean $usecache

Use a cached page to retrieve the information if available?


usezip

boolean $usezip

Use zip compression for caching the retrieved html-files?


Constructor Detail

imdb_config()

void imdb_config()

Constructor and only method of this base class. There's no need to call this yourself - you should just place your configuration data here.


 Overview   Package   Tree   Index 
IMDBPHP
PREV  NEXT Frames  No Frame 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Submit a bug

This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)