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

MDBApi
Class mdb_base

- mdb_config
-
Direct Known Subclasses:
imdb_person, movie_base, movieposterdb, person_base

class mdb_base
extends mdb_config

Accessing Movie information

Authors:
Georgos Giagas, Izzy (izzysoft AT qumran DOT org)
Version:
$Revision: 296 $ $Date: 2009-12-02 20:49:53 +0100 (Mi, 02. Dez 2009) $
Copyright:
(c) 2002-2004 by Giorgos Giagas and (c) 2004-2009 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 mdb_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 mdb_config and removes them
protected void reset_vars()
Reset page vars
protected 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

mdb_base()

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

monthNo()

integer monthNo(string $name)

Get numerical value for month name

Parameters:
name - name of month
Returns:
month number

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 mdb_config and removes them


reset_vars()

protected void reset_vars()

Reset page vars


set_pagename()

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