|
IMDBPHP | |||||
PREV NEXT | Frames No Frame | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() | mdb_config |
![]() |
Accessing posters, covers, etc. from movieposterdb.com
Constructor Summary | ||
void | movieposterdb(string $id, [integer $limit], [boolean $recurse]) Initialize class |
Method Summary | ||
void | add_lang(string $lang) Restrict images to given languages. | |
array | covers() Get the cover images | |
array | logos() Get the logos | |
array | others() Get the "other" images | |
protected array | parse_list([string $type]) Parse page for images | |
array | posters() Get the posters | |
void | reset_lang() Reset the language filter built by the add_lang method to its default (i. | |
void | reset_vars() Reset everything to start a new search | |
boolean | save_image(string $url) Save an image to the image dir The image will be retrieved from the passed URL and stored in the configured mdb::photodir, using the filename part of the URL specified. | |
void | set_limit([integer $limit]) Set a limit (maximum images to retrieve) | |
void | set_recurse([boolean $recurse]) Shall we recurse if multiple versions are offered? | |
array | textless() Get the textless images | |
array | unsets() Get the images having no category set |
Methods inherited from class mdb_base and not overridden |
cache_read , cache_write , get_pilot_imdbfill() , getWebPage , imdbid , monthNo , openpage , purge , set_pagename , set_pilot_imdbfill , setid |
Constructor Detail |
void movieposterdb(string $id, [integer $limit], [boolean $recurse])
Initialize class
id
- IMDBID to use for data retrievallimit
- maximum amount of images to retrieve
(default: 20). Can be changed via set_limit()recurse
- whether to recurse if multiple versions
are available (default: TRUE). Can be changed via set_recurse()Method Detail |
void add_lang(string $lang)
Restrict images to given languages. By default, no restriction is active; you may call this method multiple times to add multiple languages (e.g. your native plus EN plus US), and use the reset_lang method to clean.
lang
- two-letter ISO language codearray covers()
Get the cover images
array logos()
Get the logos
array others()
Get the "other" images
protected array parse_list([string $type])
Parse page for images
type
- (what image URLs to retrieve: 'poster' (default),
'cover', 'textless', 'logo', 'other', 'unset')array posters()
Get the posters
void reset_lang()
Reset the language filter built by the add_lang method to its default (i.e. empty)
void reset_vars()
Reset everything to start a new search
boolean save_image(string $url)
Save an image to the image dir The image will be retrieved from the passed URL and stored in the configured mdb::photodir, using the filename part of the URL specified.
url
- full URL to the imagevoid set_limit([integer $limit])
Set a limit (maximum images to retrieve)
limit
- (default: 20)void set_recurse([boolean $recurse])
Shall we recurse if multiple versions are offered?
recurse
- (default: TRUE)array textless()
Get the textless images
array unsets()
Get the images having no category set
|
IMDBPHP | |||||
PREV NEXT | Frames No Frame | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)