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

Api
Class imdb

- imdb_config
-

class imdb
extends imdb_config

Accessing IMDB information

Authors:
Izzy (izzysoft@qumran.org)
Version:
$Revision: 47 $ $Date: 2008-01-20 14:24:32 +0100 (So, 20 Jan 2008) $
Copyright:
(c) 2002-2004 by Giorgos Giagas and (c) 2004-2008 by Itzchak Rehberg and IzzySoft

Constructor Summary
void imdb(string $id)
Initialize class

Method Summary
array alsoknow()
Get movies alternative names
array cast()
Get the actors
array colors()
Get colors
string comment()
Get movie comment
array composer()
Obtain the composer(s) ("Original Music by...")
array country()
Get country of production
array crazy_credits()
Get the Crazy Credits
array director()
Get the director(s) of the movie
array episodes()
Get the series episode(s)
string genre()
Get the movies main genre
array genres()
Get all genres the movie is registered for
string get_imdbname(string $href)
Get the IMDB name (?
array get_row_cels(string $row)
Get content of table row cells
mixed get_table_rows(string $html, string $table_start)
Get rows for a given table on the page
mixed get_table_rows_cast(string $html, string $table_start)
Get rows for the cast table on the page
array goofs()
Get the goofs
string imdbid()
Retrieve the IMDB ID
string language()
Get movies original language
array languages()
Get all langauges this movie is available in
string main_url()
Set up the URL to the movie title page
array mpaa()
Get the MPAA data (PG?
void openpage(string $wt)
Open an IMDB page
mixed photo()
Get cover photo
mixed photo_localurl()
Get the URL for the movies cover photo
array plot()
Get the movies plot(s)
string plotoutline()
Get the main Plot outline for the movie
array producer()
Obtain the producer(s)
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
array quotes()
Get the quotes for a given movie
string rating()
Get movie rating
mixed runtime()
Get overall runtime
string runtime_all()
Get general runtime
array runtimes()
Retrieve language specific runtimes
boolean savephoto(string $path)
Save the photo to disk
integer seasons()
Get the number of seasons or 0 if not a series
void setid(string $id)
Setup class for a new IMDB id
array sound()
Get sound formats
string tagline()
Get the main tagline for the movie
array taglines()
Get all available taglines for the movie
string title()
Get movie title
array trailers()
Get the trailer URLs for a given movie
array trivia()
Get the trivia info
string votes()
Return votes for this movie
array writing()
Get the writer(s)
string year()
Get year

Constructor Detail

imdb()

void imdb(string $id)

Initialize class

Parameters:
id -

Method Detail

alsoknow()

array alsoknow()

Get movies alternative names

Returns:
aka (array[0..n] of strings)

cast()

array cast()

Get the actors

Returns:
cast (array[0..n] of strings)

colors()

array colors()

Get colors

Returns:
colors (array[0..1] of strings)

comment()

string comment()

Get movie comment

Returns:
comment

composer()

array composer()

Obtain the composer(s) ("Original Music by...")

Returns:
composer (array[0..n] of strings)

country()

array country()

Get country of production

Returns:
country (array[0..n] of string)

crazy_credits()

array crazy_credits()

Get the Crazy Credits

Returns:
crazy_credits (array[0..n] of string)

director()

array director()

Get the director(s) of the movie

Returns:
director (array[0..n] of strings)

episodes()

array episodes()

Get the series episode(s)

Returns:
episodes (array[0..n] of array[0..m] of array[imdbid,title,airdate,plot])

genre()

string genre()

Get the movies main genre

Returns:
genre

genres()

array genres()

Get all genres the movie is registered for

Returns:
genres (array[0..n] of strings)

get_imdbname()

string get_imdbname(string $href)

Get the IMDB name (?)

Parameters:
href -
Returns:

get_row_cels()

array get_row_cels(string $row)

Get content of table row cells

Parameters:
row - (as returned by imdb::get_table_rows)
Returns:
cells (array[0..n] of strings)

get_table_rows()

mixed get_table_rows(string $html, string $table_start)

Get rows for a given table on the page

Parameters:
html -
table_start -
Returns:
rows (FALSE if table not found, array[0..n] of strings otherwise)

get_table_rows_cast()

mixed get_table_rows_cast(string $html, string $table_start)

Get rows for the cast table on the page

Parameters:
html -
table_start -
Returns:
rows (FALSE if table not found, array[0..n] of strings otherwise)

goofs()

array goofs()

Get the goofs

Returns:
goofs (array[0..n] of array[type,content]

imdbid()

string imdbid()

Retrieve the IMDB ID

Returns:
id

language()

string language()

Get movies original language

Returns:
language

languages()

array languages()

Get all langauges this movie is available in

Returns:
languages (array[0..n] of strings)

main_url()

string main_url()

Set up the URL to the movie title page

Returns:
url

mpaa()

array mpaa()

Get the MPAA data (PG?)

Returns:
mpaa (array[country]=rating)

openpage()

void openpage(string $wt)

Open an IMDB page

Parameters:
wt -

photo()

mixed photo()

Get cover photo

Returns:
photo (string url if found, FALSE otherwise)

photo_localurl()

mixed photo_localurl()

Get the URL for the movies cover photo

Returns:
url (string URL or FALSE if none)

plot()

array plot()

Get the movies plot(s)

Returns:
plot (array[0..n] of strings)

plotoutline()

string plotoutline()

Get the main Plot outline for the movie

Returns:
plotoutline

producer()

array producer()

Obtain the producer(s)

Returns:
producer (array[0..n] of strings)

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


quotes()

array quotes()

Get the quotes for a given movie

Returns:
quotes (array[0..n] of string)

rating()

string rating()

Get movie rating

Returns:
rating

runtime()

mixed runtime()

Get overall runtime

Returns:
string runtime (if set), NULL otherwise

runtime_all()

string runtime_all()

Get general runtime

Returns:
runtime

runtimes()

array runtimes()

Retrieve language specific runtimes

Returns:
runtimes (array[0..n] of array[time,country,comment])

savephoto()

boolean savephoto(string $path)

Save the photo to disk

Parameters:
path -
Returns:
success

seasons()

integer seasons()

Get the number of seasons or 0 if not a series

Returns:
seasons

setid()

void setid(string $id)

Setup class for a new IMDB id

Parameters:
id -

sound()

array sound()

Get sound formats

Returns:
sound (array[0..n] of strings)

tagline()

string tagline()

Get the main tagline for the movie

Returns:
tagline

taglines()

array taglines()

Get all available taglines for the movie

Returns:
taglines (array[0..n] of strings)

title()

string title()

Get movie title

Returns:
title

trailers()

array trailers()

Get the trailer URLs for a given movie

Returns:
trailers (array[0..n] of string)

trivia()

array trivia()

Get the trivia info

Returns:
trivia (array[0..n] string

votes()

string votes()

Return votes for this movie

Returns:
votes

writing()

array writing()

Get the writer(s)

Returns:
writers (array[0..n] of strings)

year()

string year()

Get year

Returns:
year

 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)