|
IMDBPHP | |||||
PREV NEXT | Frames No Frame | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() | mdb_config |
![]() |
Accessing IMDB information
Constructor Summary | ||
void | imdb(string $id) Initialize the class |
Method Summary | ||
array | alsoknow() Get movies alternative names | |
array | awards() array[festivalName] is array[name,entries] - where name is a string, and entries is above described array | |
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) | |
private void | companyParse(string& $text, array& $parse) Parse company info | |
array | composer() Obtain the composer(s) ("Original Music by...") | |
array | country() Get country of production | |
array | crazy_credits() Get the Crazy Credits | |
array | creator() Get the creator of a movie (most likely for seasons only) | |
array | director() Get the director(s) of the movie | |
array | distCompany() Info about distributors | |
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_awards(string $html, string $table_start) Get rows for the awards 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 | |
boolean | is_serial() Try to figure out if this is a movie or part of a serie | |
array | keywords() Get the keywords for the movie | |
array | keywords_all() Get the complete keywords for the movie | |
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 | |
array | locations() Obtain filming locations | |
string | main_url() Set up the URL to the movie title page | |
array | mainPictures() Get URLs for the pictures on the main page | |
array | movieconnection() Get connected movie information | |
array | movieTypes() Get movie types (if any specified) | |
array | mpaa() Get the MPAA data (also known as PG or FSK) | |
array | mpaa_hist() Get the MPAA data (also known as PG or FSK) - including historical data | |
string | mpaa_reason() Find out the reason for the MPAA rating | |
array | officialSites() URLs of Official Sites | |
array | otherCompany() Info about other companies | |
array | parentalGuide() Detailed Parental Guide | |
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([boolean $fallback]) Get the main Plot outline for the movie | |
array | prodCompany() Info about Production Companies | |
array | prodNotes() For not-yet completed movies, we can get the production state | |
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 | |
array | releaseInfo() Obtain Release Info (if any) | |
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 | |
protected 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 | |
array | specialCompany() Info about Special Effects companies | |
string | storyline() Get the Storyline for the movie | |
string | synopsis() Get the movies synopsis | |
string | tagline() Get the main tagline for the movie | |
array | taglines() Get all available taglines for the movie | |
private boolean | thumbphoto() Setup cover photo (thumbnail and big variant) | |
string | title() Get movie title | |
private void | title_year() Setup title and year properties | |
integer | top250() Find the position of a movie in the top 250 ranked movies | |
mixed | trailers([boolean $full]) Get the trailer URLs for a given movie | |
array | trivia() Get the trivia info | |
array | videosites() Get the off-site videos and trailer URLs | |
string | votes() Return votes for this movie | |
array | writing() Get the writer(s) | |
string | year() Get year |
Methods inherited from class movie_base and not overridden |
reset_vars |
Methods inherited from class mdb_base and not overridden |
cache_read , cache_write , get_pilot_imdbfill() , getWebPage , imdbid , monthNo , openpage , purge , set_pilot_imdbfill , setid |
Constructor Detail |
void imdb(string $id)
Initialize the class
id
- IMDBID to use for data retrievalMethod Detail |
array alsoknow()
Get movies alternative names
array awards()
Get the complete awards for the movie
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)
private void companyParse(string& $text, array& $parse)
Parse company info
text
- to parseparse
- targetarray composer()
Obtain the composer(s) ("Original Music by...")
array country()
Get country of production
array crazy_credits()
Get the Crazy Credits
array creator()
Get the creator of a movie (most likely for seasons only)
array director()
Get the director(s) of the movie
array distCompany()
Info about distributors
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_awards(string $html, string $table_start)
Get rows for the awards 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
boolean is_serial()
Try to figure out if this is a movie or part of a serie
array keywords()
Get the keywords for the movie
array keywords_all()
Get the complete keywords for the movie
string language()
Get movies original language
array languages()
Get all langauges this movie is available in
array locations()
Obtain filming locations
string main_url()
Set up the URL to the movie title page
array mainPictures()
Get URLs for the pictures on the main page
array movieconnection()
Get connected movie information
array movieTypes()
Get movie types (if any specified)
array mpaa()
Get the MPAA data (also known as PG or FSK)
array mpaa_hist()
Get the MPAA data (also known as PG or FSK) - including historical data
string mpaa_reason()
Find out the reason for the MPAA rating
array officialSites()
URLs of Official Sites
array otherCompany()
Info about other companies
array parentalGuide()
Detailed Parental Guide
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([boolean $fallback])
Get the main Plot outline for the movie
fallback
- Fallback to storyline if we could not catch plotoutline? Default: FALSEarray prodCompany()
Info about Production Companies
array prodNotes()
For not-yet completed movies, we can get the production state
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
array releaseInfo()
Obtain Release Info (if any)
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
protected string set_pagename(string $wt)
Define page urls
wt
- internal name of the pagearray sound()
Get sound formats
array soundtrack()
Get the soundtrack listing
array specialCompany()
Info about Special Effects companies
string storyline()
Get the Storyline for the movie
string synopsis()
Get the movies synopsis
string tagline()
Get the main tagline for the movie
array taglines()
Get all available taglines for the movie
private boolean thumbphoto()
Setup cover photo (thumbnail and big variant)
string title()
Get movie title
private void title_year()
Setup title and year properties
integer top250()
Find the position of a movie in the top 250 ranked movies
mixed trailers([boolean $full])
Get the trailer URLs for a given movie
full
- Retrieve all available data (TRUE), or stay compatible with previous IMDBPHP versions (FALSE, Default)array trivia()
Get the trivia info
array videosites()
Get the off-site videos and trailer URLs
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.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)