|
IMDBPHP | |||||
PREV NEXT | Frames No Frame | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() | imdb_config |
![]() |
imdb
, imdb_nowplaying
, imdb_person
, imdb_topcharts
, imdb_trailers
Accessing IMDB information
Field Summary | ||
string | $lastServerResponse Last response from the IMDB server This is a 3-digit code according to RFC2616. |
Constructor Summary | ||
void | imdb_base(string $id) Initialize class |
Method Summary | ||
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 imdb_config and removes them | |
private void | reset_vars() Reset page vars | |
private string | set_pagename(string $wt) Define page urls | |
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 imdb_base(string $id)
Initialize class
id
- IMDBID to use for data retrievalMethod Detail |
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 imdb_config and removes them
private void reset_vars()
Reset page vars
private string set_pagename(string $wt)
Define page urls
wt
- internal name of the pagevoid 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.16.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)