|
IMDBPHP | |||||
PREV NEXT | Frames No Frame | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() | imdb_config |
![]() |
Accessing IMDB information
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 main comment (from title page) | |
array | comment_split() Get movie main comment (from title page - split-up variant) | |
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) | |
array | extReviews() Get list of external reviews (if any) | |
string | genre() There is not really a main genre on the IMDB sites (yet), so this simply returns the first one | |
array | genres() Get all genres the movie is registered for | |
private string | get_imdbname(string $href) Get the IMDB ID from a names URL | |
private array | get_row_cels(string $row) Get content of table row cells | |
private mixed | get_table_rows(string $html, string $table_start) Get rows for a given table on the page | |
private 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 | language() There is not really a main language on the IMDB sites (yet), so this simply returns the first one | |
array | languages() Get all langauges this movie is available in | |
string | main_url() Set up the URL to the movie title page | |
array | movieconnection() Get connected movie information | |
array | mpaa() Get the MPAA data (also known as PG or FSK) | |
string | mpaa_reason() Find out the reason for the MPAA rating | |
private array | parseConnection(string $conn) Parse connection block (used by method movieconnection only) | |
mixed | photo([boolean $thumb]) Get cover photo | |
mixed | photo_localurl([boolean $thumb]) Get the URL for the movies cover photo | |
array | plot() Get the movies plot(s) | |
array | plot_split() Get the movie plot(s) - split-up variant | |
string | plotoutline() Get the main Plot outline for the movie | |
array | producer() Obtain the producer(s) | |
array | quotes() Get the quotes for a given movie | |
private void | rate_vote() Setup votes | |
string | rating() Get movie rating | |
private void | reset_vars() Reset page vars | |
mixed | runtime() Get overall runtime (first one mentioned on title page) | |
private string | runtime_all() Get general runtime | |
array | runtimes() Retrieve language specific runtimes | |
boolean | savephoto(string $path, [boolean $thumb]) Save the photo to disk | |
integer | seasons() Get the number of seasons or 0 if not a series | |
private string | set_pagename(string $wt) Define page urls | |
array | sound() Get sound formats | |
array | soundtrack() Usually, the credits array should hold [0] written by, [1] performed by. But IMDB does not always stick to that - so in many cases it holds [0] performed by, [1] courtesy of | |
string | tagline() Get the main tagline for the movie | |
array | taglines() Get all available taglines for the movie | |
boolean | thumbphoto() Setup cover photo (thumbnail and big variant) | |
string | title() Get movie title | |
private void | title_year() Setup title and year properties | |
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 |
Methods inherited from class imdb_base and not overridden |
getWebPage , imdbid , openpage , purge , setid |
Constructor Detail |
void imdb(string $id)
Initialize class
id
- IMDBID to use for data retrievalMethod Detail |
array alsoknow()
Get movies alternative names
array cast()
Get the actors
array colors()
Get colors
string comment()
Get movie main comment (from title page)
array comment_split()
Get movie main comment (from title page - split-up variant)
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)
array extReviews()
Get list of external reviews (if any)
string genre()
Get the movies main genre Since IMDB.COM does not really now a "Main Genre", this simply means the first mentioned genre will be returned.
array genres()
Get all genres the movie is registered for
private string get_imdbname(string $href)
Get the IMDB ID from a names URL
href
- url to the staff members IMDB pageprivate array get_row_cels(string $row)
Get content of table row cells
row
- (as returned by imdb::get_table_rows)private mixed get_table_rows(string $html, string $table_start)
Get rows for a given table on the page
html
- table_start
- private mixed get_table_rows_cast(string $html, string $table_start)
Get rows for the cast table on the page
html
- table_start
- array goofs()
Get the goofs
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 movieconnection()
Get connected movie information
array mpaa()
Get the MPAA data (also known as PG or FSK)
string mpaa_reason()
Find out the reason for the MPAA rating
private array parseConnection(string $conn)
Parse connection block (used by method movieconnection only)
conn
- connection typemixed photo([boolean $thumb])
Get cover photo
thumb
- get the thumbnail (100x140, default) or the
bigger variant (400x600 - FALSE)mixed photo_localurl([boolean $thumb])
Get the URL for the movies cover photo
thumb
- get the thumbnail (100x140, default) or the
bigger variant (400x600 - FALSE)array plot()
Get the movies plot(s)
array plot_split()
Get the movie plot(s) - split-up variant
string plotoutline()
Get the main Plot outline for the movie
array producer()
Obtain the producer(s)
array quotes()
Get the quotes for a given movie
private void rate_vote()
Setup votes
string rating()
Get movie rating
private void reset_vars()
Reset page vars
mixed runtime()
Get overall runtime (first one mentioned on title page)
private string runtime_all()
Get general runtime
array runtimes()
Retrieve language specific runtimes
boolean savephoto(string $path, [boolean $thumb])
Save the photo to disk
path
- where to store the filethumb
- get the thumbnail (100x140, default) or the
bigger variant (400x600 - FALSE)integer seasons()
Get the number of seasons or 0 if not a series
private string set_pagename(string $wt)
Define page urls
wt
- internal name of the pagearray sound()
Get sound formats
array soundtrack()
Get the soundtrack listing
string tagline()
Get the main tagline for the movie
array taglines()
Get all available taglines for the movie
boolean thumbphoto()
Setup cover photo (thumbnail and big variant)
string title()
Get movie title
private void title_year()
Setup title and year properties
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
|
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)