|
IMDBPHP | |||||
PREV NEXT | Frames No Frame | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() | mdb_config |
![]() |
imdb_person
, movie_base
, movieposterdb
, person_base
, pilot_person
Accessing Movie information
Field Summary | ||
string | $lastServerResponse Last response from the IMDB server This is a 3-digit code according to RFC2616. |
Constructor Summary | ||
void | mdb_base(string $id) Initialize class |
Method Summary | ||
void | cache_read(string $filename, string& $content) Read content from cache | |
void | cache_write(string $filename, string& $content) Writing content to cache | |
integer | get_pilot_imdbfill()() Check the IMDB fallback level for the pilot classes. | |
private void | getWebPage(string $wt, string $url) Obtain page from web server | |
string | imdbid() Retrieve the IMDB ID | |
integer | monthNo(string $name) Get numerical value for month name | |
private void | openpage(string $wt, [string $type]) Load an IMDB page into the corresponding property (variable) | |
void | purge() Check cache and purge outdated files This method looks for files older than the cache_expire set in the mdb_config and removes them | |
protected void | reset_vars() Reset page vars | |
protected string | set_pagename(string $wt) Define page urls | |
void | set_pilot_imdbfill(integer $level) Setting the pilot IMDB fallback mode | |
void | setid(string $id) Setup class for a new IMDB id |
Field Detail |
string $lastServerResponse
Last response from the IMDB server This is a 3-digit code according to RFC2616. This is e.g. a "200" for "OK", "404" for "not found", etc.). This attribute holds the response from the last query to the server and is overwritten on the next. Additional to the codes defined in RFC2616, "000" means the server could not be contacted - e.g. IMDB site down, or networking problems. If it is completely empty, you did not run any request yet ;) Consider this attribute read-only - you can use it to figure out why no information is returned in some cases.
Constructor Detail |
void mdb_base(string $id)
Initialize class
id
- IMDBID to use for data retrievalMethod Detail |
void cache_read(string $filename, string& $content)
Read content from cache
filename
- file name relative to the cache dir to read fromcontent
- variable to store the retrieved content invoid cache_write(string $filename, string& $content)
Writing content to cache
filename
- file name relative to cache dir to store the content intocontent
- content to storeinteger get_pilot_imdbfill()()
Check the IMDB fallback level for the pilot classes.
As pilot_imdbfill
is a protected variable, this is the only
way to read its current value.
private void getWebPage(string $wt, string $url)
Obtain page from web server
wt
- internal name of the pageurl
- URL to openstring imdbid()
Retrieve the IMDB ID
integer monthNo(string $name)
Get numerical value for month name
name
- name of monthprivate void openpage(string $wt, [string $type])
Load an IMDB page into the corresponding property (variable)
wt
- internal name of the pagetype
- whether its a "movie" (default) or a "person"void purge()
Check cache and purge outdated files This method looks for files older than the cache_expire set in the mdb_config and removes them
protected void reset_vars()
Reset page vars
protected string set_pagename(string $wt)
Define page urls
wt
- internal name of the pagevoid set_pilot_imdbfill(integer $level)
Setting the pilot IMDB fallback mode
level
- void setid(string $id)
Setup class for a new IMDB id
id
- IMDBID of the requested movie
|
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)