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

Api
Class imdb_base

- imdb_config
-
Direct Known Subclasses:
imdb, imdb_person

class imdb_base
extends imdb_config

Accessing IMDB information

Authors:
Georgos Giagas, Izzy (izzysoft AT qumran DOT org)
Version:
$Revision: 150 $ $Date: 2008-06-08 20:15:43 +0200 (So, 08 Jun 2008) $
Copyright:
(c) 2002-2004 by Giorgos Giagas and (c) 2004-2008 by Itzchak Rehberg and IzzySoft

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
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

lastServerResponse

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

imdb_base()

void imdb_base(string $id)

Initialize class

Parameters:
id - IMDBID to use for data retrieval

Method Detail

getWebPage()

private void getWebPage(string $wt, string $url)

Obtain page from web server

Parameters:
wt - internal name of the page
url - URL to open

imdbid()

string imdbid()

Retrieve the IMDB ID

Returns:
id IMDBID currently used

openpage()

private void openpage(string $wt, [string $type])

Load an IMDB page into the corresponding property (variable)

Parameters:
wt - internal name of the page
type - whether its a "movie" (default) or a "person"

purge()

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


reset_vars()

private void reset_vars()

Reset page vars


set_pagename()

private string set_pagename(string $wt)

Define page urls

Parameters:
wt - internal name of the page
Returns:
urlname page URL

setid()

void setid(string $id)

Setup class for a new IMDB id

Parameters:
id - IMDBID of the requested movie

 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.16.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)