|
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 | |
string | aspect_ratio() Aspect Ratio of movie screen | |
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) | |
protected 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 | |
string | endyear() Get end-year Usually this returns the same value as year() -- except for those cases where production spanned multiple years, usually for series | |
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 | |
array | get_episode_details() based on an idea of lennert, see ticket:263 | |
protected string | get_imdbname(string $href) Get the IMDB ID from a names URL | |
protected array | get_row_cels(string $row) Get content of table row cells | |
protected mixed | get_table_rows(string $html, string $table_start) Get rows for a given table on the page | |
protected mixed | get_table_rows_awards(string $html, string $table_start) Get rows for the awards table on the page | |
protected 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 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 languages this movie is available in | |
array | languages_detailed() Get all languages this movie is available in, including details | |
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 | miscsites() Get the off-site misc URLs | |
array | movie_recommendations() Get recommended movies (People who liked this. | |
array | movieconnection() Get connected movie information | |
string | movietype() This is faster than movietypes() as it is retrieved already together with the title. If no movietype had been defined explicitly, it returns 'Movie' -- so this is always set. | |
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() now combined with /videosites to /externalsites | |
string | orig_title() Get movie original title | |
array | otherCompany() Info about other companies | |
array | parentalGuide() Detailed Parental Guide | |
protected void | parse_extcontent(string $title, array $res) Parse segments of external information on "VideoSites" | |
protected 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 | photosites() Get the off-site photo URLs | |
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 | |
protected 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) | |
protected 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 | soundclipsites() Get the off-site soundclip URLs | |
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 | |
protected boolean | thumbphoto() Setup cover photo (thumbnail and big variant) | |
string | title() Get movie title | |
protected 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], [boolean $all]) New code thanks to george (http://projects.izzysoft.de/trac/imdbphp/ticket/286) with some minor adjustments by izzy | |
array | trivia([boolean $spoil]) 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 | |
array | yearspan() Get range of years for e. |
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 , readCachedPage , set_pilot_imdbfill , setid , writeCachedPage |
Constructor Detail |
void imdb(string $id)
Initialize the class
id
- IMDBID to use for data retrievalMethod Detail |
array alsoknow()
Get movies alternative names
string aspect_ratio()
Aspect Ratio of movie screen
array awards()
Get the complete awards for the movie
array cast()
Get the actors
preg_replace('!\s{2,}!ims',' ',$role)
. The API shouldn't
do this as it would rob those who want to split of the opportunity doing so.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)
protected 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
string endyear()
Get end-year Usually this returns the same value as year() -- except for those cases where production spanned multiple years, usually for series
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
array get_episode_details()
If it is an episode, we may want to now to know where it belongs to
protected string get_imdbname(string $href)
Get the IMDB ID from a names URL
href
- url to the staff members IMDB pageprotected array get_row_cels(string $row)
Get content of table row cells
row
- (as returned by imdb::get_table_rows)protected mixed get_table_rows(string $html, string $table_start)
Get rows for a given table on the page
html
- table_start
- protected mixed get_table_rows_awards(string $html, string $table_start)
Get rows for the awards table on the page
html
- table_start
- protected 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 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 languages this movie is available in
array languages_detailed()
Get all languages this movie is available in, including details
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 miscsites()
Get the off-site misc URLs
array movie_recommendations()
Get recommended movies (People who liked this...also liked)
array movieconnection()
Get connected movie information
string movietype()
Get movie type
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
string orig_title()
Get movie original title
array otherCompany()
Info about other companies
array parentalGuide()
Detailed Parental Guide
protected void parse_extcontent(string $title, array $res)
Parse segments of external information on "VideoSites"
title
- segment titleres
- resultset (passed by reference)protected 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 photosites()
Get the off-site photo URLs
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
protected 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)
protected 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 soundclipsites()
Get the off-site soundclip URLs
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
protected boolean thumbphoto()
Setup cover photo (thumbnail and big variant)
string title()
Get movie title
protected 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], [boolean $all])
Get the trailer URLs for a given movie
full
- Retrieve all available data (TRUE), or stay compatible with previous IMDBPHP versions (FALSE, Default)all
- Fetch all trailers (including off-site ones)? Default: Truearray trivia([boolean $spoil])
Get the trivia info
spoil
- Whether to retrieve the spoilers (TRUE) or the non-spoilers (FALSE, default)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
array yearspan()
Get range of years for e.g. series spanning multiple years
|
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)