PHP Class Imdb\Title

Author: Georgos Giagas
Author: Izzy (izzysoft AT qumran DOT org)
Inheritance: extends MdbBase
Datei anzeigen Open project: tboothman/imdbphp Class Usage Examples

Protected Properties

Property Type Description
$admissions
$akas
$all_keywords
$aspectratio
$awards
$budget
$castlist
$compcred_dist
$compcred_other
$compcred_prod
$compcred_special
$countries
$crazy_credits pilot only
$credits_cast
$credits_composer
$credits_director
$credits_producer
$credits_writing
$episodeEpisode
$episodeSeason
$extreviews
$filmingDates
$goofs
$gross
$isSerial
$langs
$langs_full
$locations
$main_comment
$main_creator
$main_endyear
$main_genre
$main_keywords
$main_language
$main_movietype
$main_movietypes
$main_pictures
$main_plotoutline
$main_poster
$main_poster_thumb
$main_prodnotes
$main_rating
$main_runtime
$main_storyline
$main_tagline
$main_title
$main_top250
$main_votes
$main_year
$main_yearspan
$misc_sites
$moviealternateversions
$moviecolors
$movieconnections
$moviegenres
$moviequotes
$movierecommendations
$movieruntimes
$mpaa_justification
$mpaas
$mpaas_hist
$official_sites
$openingWeekend
$original_title
$pageUrls
$parental_guide
$photo_sites
$plot_plot
$release_info
$season_episodes
$seasoncount
$sound
$soundclip_sites
$soundtracks
$split_comment
$split_plot
$synopsis_wiki
$taglines
$trailers
$trivia
$video_sites
$weekendGross

Public Methods

Method Description
__construct ( string $id, Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null )
admissions ( ) : array[0..n] Get admissions budget
alsoknow ( ) : array Get movie's alternative names Note: This may return an empty country or comments.
alternateVersions ( ) : array Get the Alternate Versions for a given movie
aspect_ratio ( ) : string Aspect Ratio of movie screen
awards ( boolean $compat = TRUE ) : array Get all awards this title was nominated for or won
budget ( ) * Get budget
cast ( ) : array Get the actors/cast members for this title
colors ( ) : array Get the colours this movie was shot in.
comment ( ) : string Get movie main comment (from title page)
comment_split ( ) : array Get movie main comment (from title page - split-up variant)
composer ( ) : array Obtain the composer(s) ("Original Music by.
country ( ) : array Get country of production
crazy_credits ( ) : array Get the Crazy Credits
creator ( ) : array Get the creator of a movie (most likely for seasons only)
director ( ) : array Get the director(s) of the movie
distCompany ( ) : array Info about distributors
endyear ( ) : string Get end-year Usually this returns the same value as year() -- except for those cases where production spanned multiple years, usually for series
episodeAirDate ( ) : string The date when this episode aired for the first time
episodeEpisode ( ) : integer
episodeSeason ( ) : integer
episodeTitle ( ) : string Title of the episode
episodes ( ) : array Get the series episode(s)
extReviews ( ) : array Get list of external reviews (if any)
filmingDates ( ) : array[beginning, Get filming dates
fromSearchResult ( string $id, string $title, integer $year, string $type, Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null ) : Title Create an imdb object populated with id, title, year, and movie type
genre ( ) : string 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.
genres ( ) : array Get all genres the movie is registered for
get_episode_details ( ) : array Extra information about this episode (if this title is an episode)
goofs ( ) : array Get the goofs
gross ( ) : array[0..n] Gross takings by country and date (usually per week for recent films)
is_serial ( ) : boolean Is this title serialised (a tv show)? This could be the show page or an episode
keywords ( ) : array Get the keywords for the movie
keywords_all ( ) : array Get the complete keywords for the movie
language ( ) : string Get movies original language
languages ( ) : array Get all languages this movie is available in
languages_detailed ( ) : array Get all languages this movie is available in, including details
locations ( ) : array Obtain filming locations
mainPictures ( ) : array Get URLs for the pictures on the main page
main_url ( ) : string Get the URL for this title's page
metacriticNumReviews ( ) : null Number of reviews on metacritic
metacriticRating ( ) : integer | null Rating out of 100 on metacritic
miscsites ( ) : array Get the off-site misc URLs
movieTypes ( ) : array Get movie types (if any specified)
movie_recommendations ( ) : array Get recommended movies (People who liked this.
movieconnection ( ) : array Get connected movie information
movietype ( ) : string Get movie type
mpaa ( ) : array Get the MPAA data (also known as PG or FSK)
mpaa_hist ( ) : array Get the MPAA data (also known as PG or FSK) - including historical data
mpaa_reason ( ) : string Find out the reason for the MPAA rating
officialSites ( ) : array URLs of Official Sites
openingWeekend ( ) : array[0..n] Opening weekend budget
orig_title ( ) : string Get movie original title
otherCompany ( ) : array Info about other companies
parentalGuide ( ) : array Detailed Parental Guide
photo ( boolean $thumb = true ) : string | boolean Get the poster/cover image URL
photo_localurl ( boolean $thumb = true ) : mixed Get the URL for the movies cover image
photosites ( ) : array Get the off-site photo URLs
plot ( ) : array Get the movies plot(s)
plot_split ( ) : array Get the movie plot(s) - split-up variant
plotoutline ( boolean $fallback = FALSE ) : string Get the main Plot outline for the movie
prodCompany ( ) : array Info about Production Companies
prodNotes ( ) : array For not-yet completed movies, we can get the production state
producer ( ) : array Obtain the producer(s)
quotes ( ) : array Get the quotes for a given movie
rating ( ) : string Get movie rating
releaseInfo ( ) : array Obtain Release Info (if any)
runtime ( ) : integer | null Get overall runtime (first one mentioned on title page)
runtimes ( ) : array Retrieve all runtimes and their descriptions
savephoto ( string $path, boolean $thumb = true ) : boolean Save the poster/cover image to disk
seasons ( ) : integer Get the number of seasons or 0 if not a series
sound ( ) : array Get sound formats
soundclipsites ( ) : array Get the off-site soundclip URLs
soundtrack ( ) : array Get the soundtrack listing
specialCompany ( ) : array Info about Special Effects companies
storyline ( ) : string Get the Storyline for the movie
synopsis ( ) : string Get the movies synopsis
tagline ( ) : string Get the main tagline for the movie
taglines ( ) : array Get all available taglines for the movie
title ( ) : string Get movie title
top250 ( ) : integer Find the position of a movie in the top 250 ranked movies
trailers ( boolean $full = FALSE, boolean $all = TRUE ) : mixed Get the trailer URLs for a given movie
trivia ( boolean $spoil = FALSE ) : array Get the trivia info
videosites ( ) : array Get the off-site videos and trailer URLs
votes ( ) : integer Return number of votes for this movie
weekendGross ( ) : array[0..n] Get weekend gross budget
writing ( ) : array Get the writer(s)
year ( ) : string Get year
yearspan ( ) : array Get range of years for e.g. series spanning multiple years

Protected Methods

Method Description
buildUrl ( $page = null ) #-------------------------------------------------------------[ Open Page ]---
companyParse ( &$text, &$target ) Parse company info
convertIMDBtoRealURL ( $url ) : string Convert IMDB redirect-URLs of external sites to real URLs
getPage ( $page = null )
getUrlSuffix ( string $pageName ) : string
get_admissions ( &$listAdmissions ) : array[0..n] Get admissions budget
get_budget ( $budg ) * Get budget
get_filmingDates ( $listFilmingDates ) : array[0..n] Get filming dates
get_gross ( &$listGross ) : array[0..n] Get gross budget
get_imdbname ( $href ) : string Get the IMDB ID from a names URL
get_openingWeekend ( &$listOpening ) : array[0..n] Get opening weekend budget
get_row_cels ( $row ) : array Get content of table row cells
get_table_rows ( $html, $table_start ) : array | false Get rows for a given table on the page
get_table_rows_cast ( $html, $table_start, $class = "nm" ) : array Get rows for the cast table on the page
get_weekendGross ( &$listweekendGross ) : array[0..n] Get weekend gross budget
isEpisode ( ) @TODO do this properly and make this public. Perhaps it could just come from self::movietype() ?
parseConnection ( $conn ) : array Parse connection block (used by method movieconnection only)
parse_extcontent ( $title, &$res ) Parse segments of external information on "VideoSites"
rate_vote ( ) Setup votes
runtime_all ( ) : string Get general runtime
title_year ( ) Setup title and year properties

Private Methods

Method Description
populateEpisodeSeasonEpisode ( )
populatePoster ( ) : boolean Setup cover photo (thumbnail and big variant)

Method Details

__construct() public method

public __construct ( string $id, Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null )
$id string IMDb ID. e.g. 285331 for http://www.imdb.com/title/tt0285331/
$config Config OPTIONAL override default config
$logger Psr\Log\LoggerInterface OPTIONAL override default logger
$cache CacheInterface OPTIONAL override default cache

admissions() public method

Get admissions budget
See also: IMDB page / (business)
public admissions ( ) : array[0..n]
return array[0..n]

alsoknow() public method

comment, year and lang are there for backwards compatibility and should not be used
See also: IMDB page ReleaseInfo
public alsoknow ( ) : array
return array aka array[0..n] of array[title,country,comments[]]

alternateVersions() public method

Get the Alternate Versions for a given movie
See also: IMDB page /alternateversions
public alternateVersions ( ) : array
return array Alternate Version (array[0..n] of string)

aspect_ratio() public method

Aspect Ratio of movie screen
See also: IMDB page / (TitlePage)
public aspect_ratio ( ) : string
return string ratio

awards() public method

Get all awards this title was nominated for or won
See also: IMDB page /awards
public awards ( boolean $compat = TRUE ) : array
$compat boolean whether stay backward compatible to the original format of Qvist. Default: TRUE
return array awards array[festivalName]['entries'][0..n] of array[year,won,category,award,people[],comment,outcome] e.g.
  [
   'Science Fiction and Fantasy Writers of America' =>
   [
     'entries' =>
     [
       [
         'year' => '2000',
         'won' => false,
         'category' => 'Best Script',
         'award' => 'Nebula Award',
         'people' =>
         [
             '0905154' => 'Lana Wachowski',
             '0905152' => 'Andy Wachowski',
         ],
         'outcome' => 'Nominated'
       ]
     ]
   ]
 ]

budget() public method

* Get budget
See also: IMDB page / (TitlePage)
public budget ( )

buildUrl() protected method

#-------------------------------------------------------------[ Open Page ]---
protected buildUrl ( $page = null )

cast() public method

Get the actors/cast members for this title
See also: IMDB page /fullcredits
public cast ( ) : array
return array cast (array[0..n] of array[imdb,name,name_alias,role,role_episodes,role_start_year,role_end_year,thumb,photo]) e.g.
array (
 'imdb' => '0922035',
 'name' => 'Dominic West', // Actor's name on imdb
 'name_alias' => NULL, // Name credited to actor if it is different to their imdb name
 'credited' => true, // Was the actor credited in the film?
 'role' => "Det. James 'Jimmy' McNulty",
 'role_episodes' => 60, // Only applies to episodic titles. Will be NULL if not available
 'role_start_year' => 2002, // Only applies to episodic titles. Will be NULL if not available
 'role_end_year' => 2008, // Only applies to episodic titles. Will be NULL if not available
 'role_other' => array() // Any other information about what the cast member did e.g. 'voice', 'archive footage'
 'thumb' => 'http://ia.media-imdb.com/images/M/MV5BMTY5NjQwNDY2OV5BMl5BanBnXkFtZTcwMjI2ODQ1MQ@@._V1_SY44_CR0,0,32,44_AL_.jpg',
 'photo' => 'http://ia.media-imdb.com/images/M/MV5BMTY5NjQwNDY2OV5BMl5BanBnXkFtZTcwMjI2ODQ1MQ@@.jpg' // Fullsize image of actor
)

colors() public method

e.g. Color, Black and White
See also: IMDB page / (TitlePage)
public colors ( ) : array
return array colors (array[0..1] of strings)

comment() public method

Get movie main comment (from title page)
See also: IMDB page / (TitlePage)
public comment ( ) : string
return string comment full text of movie comment from the movies main page

comment_split() public method

Get movie main comment (from title page - split-up variant)
See also: IMDB page / (TitlePage)
public comment_split ( ) : array
return array comment array[string title, string date, array author, string comment]; author: array[string url, string name]

companyParse() protected method

Parse company info
protected companyParse ( &$text, &$target )

composer() public method

..")
See also: IMDB page /fullcredits
public composer ( ) : array
return array composer (array[0..n] of arrays[imdb,name,role])

convertIMDBtoRealURL() protected method

Convert IMDB redirect-URLs of external sites to real URLs
protected convertIMDBtoRealURL ( $url ) : string
return string url real-url

country() public method

Get country of production
See also: IMDB page / (TitlePage)
public country ( ) : array
return array country (array[0..n] of string)

crazy_credits() public method

Get the Crazy Credits
See also: IMDB page /crazycredits
public crazy_credits ( ) : array
return array crazy_credits (array[0..n] of string)

creator() public method

Get the creator of a movie (most likely for seasons only)
See also: IMDB page / (TitlePage)
public creator ( ) : array
return array creator (array[0..n] of array[name,imdb])

director() public method

Get the director(s) of the movie
See also: IMDB page /fullcredits
public director ( ) : array
return array director (array[0..n] of arrays[imdb,name,role])

distCompany() public method

Info about distributors
See also: IMDB page /companycredits
public distCompany ( ) : array
return array [0..n] of array (name,url,notes)

endyear() public method

Get end-year Usually this returns the same value as year() -- except for those cases where production spanned multiple years, usually for series
See also: IMDB page / (TitlePage)
public endyear ( ) : string
return string year

episodeAirDate() public method

The date when this episode aired for the first time
public episodeAirDate ( ) : string
return string An ISO 8601 date e.g. 2015-01-01. Will be an empty string if not available

episodeEpisode() public method

public episodeEpisode ( ) : integer
return integer 0 if not available

episodeSeason() public method

public episodeSeason ( ) : integer
return integer 0 if not available

episodeTitle() public method

Title of the episode
public episodeTitle ( ) : string
return string

episodes() public method

Get the series episode(s)
See also: IMDB page /episodes
public episodes ( ) : array
return array episodes (array[0..n] of array[0..m] of array[imdbid,title,airdate,plot,season,episode])

extReviews() public method

Get list of external reviews (if any)
See also: IMDB page /externalreviews
public extReviews ( ) : array
return array [0..n] of array [url, desc] (or empty array if no data)

filmingDates() public method

Get filming dates
See also: IMDB page / (TitlePage)
public filmingDates ( ) : array[beginning,
return array[beginning,

fromSearchResult() public static method

Create an imdb object populated with id, title, year, and movie type
public static fromSearchResult ( string $id, string $title, integer $year, string $type, Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null ) : Title
$id string imdb ID
$title string film title
$year integer
$type string
$config Config
$logger Psr\Log\LoggerInterface OPTIONAL override default logger
$cache CacheInterface OPTIONAL override default cache
return Title

genre() public method

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.
See also: IMDB page / (TitlePage)
public genre ( ) : string
return string genre first of the genres listed on the movies main page

genres() public method

Get all genres the movie is registered for
See also: IMDB page / (TitlePage)
public genres ( ) : array
return array genres (array[0..n] of strings)

getPage() protected method

protected getPage ( $page = null )

getUrlSuffix() protected method

protected getUrlSuffix ( string $pageName ) : string
$pageName string internal name of the page
return string

get_admissions() protected method

Get admissions budget
See also: IMDB page / (TitlePage)
protected get_admissions ( &$listAdmissions ) : array[0..n]
return array[0..n]

get_budget() protected method

* Get budget
See also: IMDB page / (TitlePage)
protected get_budget ( $budg )

get_episode_details() public method

Extra information about this episode (if this title is an episode)
See also: IMDB page / (TitlePage)
public get_episode_details ( ) : array
return array [imdbid,seriestitle,episodetitle,season,episode,airdate] e.g.
array (
'imdbid'       => '0303461',      // ImdbID of the show
'seriestitle'  => 'Firefly',      // Title of the show
'episodetitle' => 'The Train Job',// Title of this episode
'season'       => 1,
'episode'      => 1,
'airdate'      => '2002-09-20',
)

get_filmingDates() protected method

Get filming dates
See also: IMDB page / (TitlePage)
protected get_filmingDates ( $listFilmingDates ) : array[0..n]
return array[0..n]

get_gross() protected method

Get gross budget
See also: IMDB page / (TitlePage)
protected get_gross ( &$listGross ) : array[0..n]
return array[0..n]

get_imdbname() protected method

Get the IMDB ID from a names URL
See also: used by the methods director, cast, writing, producer, composer
protected get_imdbname ( $href ) : string
return string IMDBID of the staff member

get_openingWeekend() protected method

Get opening weekend budget
See also: IMDB page
protected get_openingWeekend ( &$listOpening ) : array[0..n]
return array[0..n]

get_row_cels() protected method

Get content of table row cells
See also: used by the methods director, cast, writing, producer, composer
protected get_row_cels ( $row ) : array
return array cells (array[0..n] of strings)

get_table_rows() protected method

Get rows for a given table on the page
See also: used by the methods director, cast, writing, producer, composer
protected get_table_rows ( $html, $table_start ) : array | false
return array | false rows (FALSE if table not found, array[0..n] of strings otherwise)

get_table_rows_cast() protected method

Get rows for the cast table on the page
See also: used by the method cast
protected get_table_rows_cast ( $html, $table_start, $class = "nm" ) : array
return array array[0..n] of strings

get_weekendGross() protected method

Get weekend gross budget
See also: IMDB page / (TitlePage)
protected get_weekendGross ( &$listweekendGross ) : array[0..n]
return array[0..n]

goofs() public method

Get the goofs
See also: IMDB page /goofs
public goofs ( ) : array
return array goofs (array[0..n] of array[type,content]

gross() public method

Gross takings by country and date (usually per week for recent films)
See also: IMDB page /business
public gross ( ) : array[0..n]
return array[0..n]

isEpisode() protected method

@TODO do this properly and make this public. Perhaps it could just come from self::movietype() ?
protected isEpisode ( )

is_serial() public method

Is this title serialised (a tv show)? This could be the show page or an episode
See also: IMDB page / (TitlePage)
public is_serial ( ) : boolean
return boolean

keywords() public method

Get the keywords for the movie
See also: IMDB page / (TitlePage)
public keywords ( ) : array
return array keywords

keywords_all() public method

Get the complete keywords for the movie
See also: IMDB page /keywords
public keywords_all ( ) : array
return array keywords

language() public method

Get movies original language
See also: IMDB page / (TitlePage)
public language ( ) : string
return string language

languages() public method

Get all languages this movie is available in
See also: IMDB page / (TitlePage)
public languages ( ) : array
return array languages (array[0..n] of strings)

languages_detailed() public method

Get all languages this movie is available in, including details
See also: IMDB page / (TitlePage)
public languages_detailed ( ) : array
return array languages (array[0..n] of array[string name, string code, string comment], code being the ISO-Code)

locations() public method

Obtain filming locations
See also: IMDB page /locations
public locations ( ) : array
return array locations array[0..n] of array[name,url] with name being the name of the location, and url a relative URL to list other movies sharing this location

mainPictures() public method

Get URLs for the pictures on the main page
Author: moonface
Author: izzy
public mainPictures ( ) : array
return array [0..n] of [imgsrc, imglink, bigsrc], where
  • imgsrc is the URL of the thumbnail IMG as displayed on main page
  • imglink is the link to the page with the "big image"
  • bigsrc is the URL of the "big size" image itself

main_url() public method

Get the URL for this title's page
public main_url ( ) : string
return string

metacriticNumReviews() public method

Number of reviews on metacritic
Deprecation: since version 3.1.3
public metacriticNumReviews ( ) : null
return null

metacriticRating() public method

Rating out of 100 on metacritic
public metacriticRating ( ) : integer | null
return integer | null

miscsites() public method

Get the off-site misc URLs
See also: IMDB page /videosites
public miscsites ( ) : array
return array miscsites array[0..n] of array(site,url,type,desc)

movieTypes() public method

Get movie types (if any specified)
See also: IMDB page / (TitlePage)
public movieTypes ( ) : array
return array [0..n] of strings (or empty array if no movie types specified)

movie_recommendations() public method

..also liked)
See also: IMDB page / (TitlePage)
public movie_recommendations ( ) : array
return array recommendations (array[title,imdbid,year])

movieconnection() public method

Get connected movie information
See also: IMDB page /movieconnection
public movieconnection ( ) : array
return array connections (versionOf, editedInto, followedBy, spinOff, spinOffFrom, references, referenced, features, featured, spoofs, spoofed - each an array of mid, name, year, comment or an empty array if no connections of that type)

movietype() public method

Get movie type
See also: IMDB page / (TitlePage)
public movietype ( ) : string
return string movietype (TV Series, Movie, ...)

mpaa() public method

Get the MPAA data (also known as PG or FSK)
See also: IMDB page / (TitlePage)
public mpaa ( ) : array
return array mpaa (array[country]=rating)

mpaa_hist() public method

Get the MPAA data (also known as PG or FSK) - including historical data
See also: IMDB page / (TitlePage)
public mpaa_hist ( ) : array
return array mpaa (array[country][0..n]=rating)

mpaa_reason() public method

Find out the reason for the MPAA rating
See also: IMDB page / (TitlePage)
public mpaa_reason ( ) : string
return string reason why the movie was rated such

officialSites() public method

URLs of Official Sites
See also: IMDB page /officialsites
public officialSites ( ) : array
return array [0..n] of url, name

openingWeekend() public method

Opening weekend budget
See also: IMDB page
public openingWeekend ( ) : array[0..n]
return array[0..n]

orig_title() public method

Get movie original title
See also: IMDB page / (TitlePage)
public orig_title ( ) : string
return string title original movie title (name), if available

otherCompany() public method

Info about other companies
See also: IMDB page /companycredits
public otherCompany ( ) : array
return array [0..n] of array (name,url,notes)

parentalGuide() public method

Detailed Parental Guide
See also: IMDB page /parentalguide
public parentalGuide ( ) : array
return array of strings; keys: Alcohol, Sex, Violence, Profanity, Frightening - and maybe more; values: arguments for the rating

parseConnection() protected method

Parse connection block (used by method movieconnection only)
protected parseConnection ( $conn ) : array
return array [0..n] of array mid,name,year,comment - or empty array if not found

parse_extcontent() protected method

Parse segments of external information on "VideoSites"
protected parse_extcontent ( $title, &$res )

photo() public method

Get the poster/cover image URL
See also: IMDB page / (TitlePage)
public photo ( boolean $thumb = true ) : string | boolean
$thumb boolean get the thumbnail (182x268) or the full sized image
return string | boolean photo (string URL if found, FALSE otherwise)

photo_localurl() public method

Get the URL for the movies cover image
See also: IMDB page / (TitlePage)
public photo_localurl ( boolean $thumb = true ) : mixed
$thumb boolean get the thumbnail (182x268, default) or the bigger variant (400x600 - FALSE)
return mixed url (string URL or FALSE if none)

photosites() public method

Get the off-site photo URLs
See also: IMDB page /videosites
public photosites ( ) : array
return array photosites array[0..n] of array(site,url,type,desc)

plot() public method

Get the movies plot(s)
See also: IMDB page /plotsummary
public plot ( ) : array
return array plot (array[0..n] of strings)

plot_split() public method

Get the movie plot(s) - split-up variant
See also: IMDB page /plotsummary
public plot_split ( ) : array
return array array[0..n] of array[string plot,array author] - where author consists of string name and string url

plotoutline() public method

Get the main Plot outline for the movie
See also: IMDB page / (TitlePage)
public plotoutline ( boolean $fallback = FALSE ) : string
$fallback boolean Fallback to storyline if we could not catch plotoutline
return string plotoutline

prodCompany() public method

Info about Production Companies
See also: IMDB page /companycredits
public prodCompany ( ) : array
return array [0..n] of array (name,url,notes)

prodNotes() public method

For not-yet completed movies, we can get the production state
See also: IMDB page / (TitlePage)
public prodNotes ( ) : array
return array production notes [status,statnote,lastupdate[day,month,mon,year],more,note]

producer() public method

Obtain the producer(s)
See also: IMDB page /fullcredits
public producer ( ) : array
return array producer (array[0..n] of arrays[imdb,name,role])

quotes() public method

Get the quotes for a given movie
See also: IMDB page /quotes
public quotes ( ) : array
return array quotes (array[0..n] of string)

rate_vote() protected method

Setup votes
protected rate_vote ( )

rating() public method

Get movie rating
See also: IMDB page / (TitlePage)
public rating ( ) : string
return string rating current rating as given by IMDB site

releaseInfo() public method

Obtain Release Info (if any)
See also: IMDB page /releaseinfo
public releaseInfo ( ) : array
return array release_info array[0..n] of strings (country,day,month,mon, year,comment) - "month" is the month name, "mon" the number

runtime() public method

Get overall runtime (first one mentioned on title page)
See also: IMDB page / (TitlePage)
public runtime ( ) : integer | null
return integer | null runtime in minutes (if set), NULL otherwise

runtime_all() protected method

Get general runtime
protected runtime_all ( ) : string
return string runtime complete runtime string, e.g. "150 min / USA:153 min (director's cut)"

runtimes() public method

Retrieve all runtimes and their descriptions
See also: IMDB page / (TitlePage)
public runtimes ( ) : array
return array runtimes (array[0..n] of array[time,annotations]) where annotations is an array of comments meant to describe this cut

savephoto() public method

Save the poster/cover image to disk
See also: IMDB page / (TitlePage)
public savephoto ( string $path, boolean $thumb = true ) : boolean
$path string where to store the file
$thumb boolean get the thumbnail (100x140, default) or the bigger variant (400x600 - FALSE)
return boolean success

seasons() public method

Get the number of seasons or 0 if not a series
See also: IMDB page / (TitlePage)
public seasons ( ) : integer
return integer seasons number of seasons

sound() public method

Get sound formats
See also: IMDB page / (TitlePage)
public sound ( ) : array
return array sound (array[0..n] of strings)

soundclipsites() public method

Get the off-site soundclip URLs
See also: IMDB page /videosites
public soundclipsites ( ) : array
return array soundclipsites array[0..n] of array(site,url,type,desc)

soundtrack() public method

Get the soundtrack listing
See also: IMDB page /soundtrack
public soundtrack ( ) : array
return array soundtracks (array[0..n] of array(soundtrack,array[0..n] of credits array[credit_to,desc])

specialCompany() public method

Info about Special Effects companies
See also: IMDB page /companycredits
public specialCompany ( ) : array
return array [0..n] of array (name,url,notes)

storyline() public method

Get the Storyline for the movie
See also: IMDB page / (TitlePage)
public storyline ( ) : string
return string storyline

synopsis() public method

Get the movies synopsis
See also: IMDB page /synopsis
public synopsis ( ) : string
return string synopsis

tagline() public method

Get the main tagline for the movie
See also: IMDB page / (TitlePage)
public tagline ( ) : string
return string tagline

taglines() public method

Get all available taglines for the movie
See also: IMDB page /taglines
public taglines ( ) : array
return array taglines (array[0..n] of strings)

title() public method

Get movie title
See also: IMDB page / (TitlePage)
public title ( ) : string
return string title movie title (name)

title_year() protected method

Setup title and year properties
protected title_year ( )

top250() public method

Find the position of a movie in the top 250 ranked movies
See also: http://projects.izzysoft.de/trac/imdbphp/ticket/117
Author: abe
public top250 ( ) : integer
return integer position a number between 1..250 if the movie is listed, 0 otherwise

trailers() public method

Get the trailer URLs for a given movie
See also: IMDB page /trailers
Author: george
Author: izzy
public trailers ( boolean $full = FALSE, boolean $all = TRUE ) : mixed
$full boolean Retrieve all available data (TRUE), or stay compatible with previous IMDBPHP versions (FALSE, Default)
$all boolean Fetch all trailers (including off-site ones)? Default: True
return mixed trailers either array[0..n] of string ($full=FALSE), or array[0..n] of array[lang,title,url,restful_url,resolution] ($full=TRUE)

trivia() public method

Get the trivia info
See also: IMDB page /trivia
public trivia ( boolean $spoil = FALSE ) : array
$spoil boolean Whether to retrieve the spoilers (TRUE) or the non-spoilers (FALSE, default)
return array trivia (array[0..n] string

videosites() public method

Get the off-site videos and trailer URLs
See also: IMDB page /videosites
public videosites ( ) : array
return array videosites array[0..n] of array(site,url,type,desc)

votes() public method

Return number of votes for this movie
See also: IMDB page / (TitlePage)
public votes ( ) : integer
return integer

weekendGross() public method

Get weekend gross budget
See also: IMDB page / (TitlePage)
public weekendGross ( ) : array[0..n]
return array[0..n]

writing() public method

Get the writer(s)
See also: IMDB page /fullcredits
public writing ( ) : array
return array writers (array[0..n] of arrays[imdb,name,role])

year() public method

Get year
See also: IMDB page / (TitlePage)
public year ( ) : string
return string year

yearspan() public method

Get range of years for e.g. series spanning multiple years
See also: IMDB page / (TitlePage)
public yearspan ( ) : array
return array yearspan [start,end] (if there was no range, start==end)

Property Details

$admissions protected_oe property

protected $admissions

$akas protected_oe property

protected $akas

$all_keywords protected_oe property

protected $all_keywords

$aspectratio protected_oe property

protected $aspectratio

$awards protected_oe property

protected $awards

$budget protected_oe property

protected $budget

$castlist protected_oe property

protected $castlist

$compcred_dist protected_oe property

protected $compcred_dist

$compcred_other protected_oe property

protected $compcred_other

$compcred_prod protected_oe property

protected $compcred_prod

$compcred_special protected_oe property

protected $compcred_special

$countries protected_oe property

protected $countries

$crazy_credits protected_oe property

pilot only
protected $crazy_credits

$credits_cast protected_oe property

protected $credits_cast

$credits_composer protected_oe property

protected $credits_composer

$credits_director protected_oe property

protected $credits_director

$credits_producer protected_oe property

protected $credits_producer

$credits_writing protected_oe property

protected $credits_writing

$episodeEpisode protected_oe property

protected $episodeEpisode

$episodeSeason protected_oe property

protected $episodeSeason

$extreviews protected_oe property

protected $extreviews

$filmingDates protected_oe property

protected $filmingDates

$goofs protected_oe property

protected $goofs

$gross protected_oe property

protected $gross

$isSerial protected_oe property

protected $isSerial

$langs protected_oe property

protected $langs

$langs_full protected_oe property

protected $langs_full

$locations protected_oe property

protected $locations

$main_comment protected_oe property

protected $main_comment

$main_creator protected_oe property

protected $main_creator

$main_endyear protected_oe property

protected $main_endyear

$main_genre protected_oe property

protected $main_genre

$main_keywords protected_oe property

protected $main_keywords

$main_language protected_oe property

protected $main_language

$main_movietype protected_oe property

protected $main_movietype

$main_movietypes protected_oe property

protected $main_movietypes

$main_pictures protected_oe property

protected $main_pictures

$main_plotoutline protected_oe property

protected $main_plotoutline

$main_poster protected_oe property

protected $main_poster

$main_poster_thumb protected_oe property

protected $main_poster_thumb

$main_prodnotes protected_oe property

protected $main_prodnotes

$main_rating protected_oe property

protected $main_rating

$main_runtime protected_oe property

protected $main_runtime

$main_storyline protected_oe property

protected $main_storyline

$main_tagline protected_oe property

protected $main_tagline

$main_title protected_oe property

protected $main_title

$main_top250 protected_oe property

protected $main_top250

$main_votes protected_oe property

protected $main_votes

$main_year protected_oe property

protected $main_year

$main_yearspan protected_oe property

protected $main_yearspan

$misc_sites protected_oe property

protected $misc_sites

$moviealternateversions protected_oe property

protected $moviealternateversions

$moviecolors protected_oe property

protected $moviecolors

$movieconnections protected_oe property

protected $movieconnections

$moviegenres protected_oe property

protected $moviegenres

$moviequotes protected_oe property

protected $moviequotes

$movierecommendations protected_oe property

protected $movierecommendations

$movieruntimes protected_oe property

protected $movieruntimes

$mpaa_justification protected_oe property

protected $mpaa_justification

$mpaas protected_oe property

protected $mpaas

$mpaas_hist protected_oe property

protected $mpaas_hist

$official_sites protected_oe property

protected $official_sites

$openingWeekend protected_oe property

protected $openingWeekend

$original_title protected_oe property

protected $original_title

$pageUrls protected_oe property

protected $pageUrls

$parental_guide protected_oe property

protected $parental_guide

$photo_sites protected_oe property

protected $photo_sites

$plot_plot protected_oe property

protected $plot_plot

$release_info protected_oe property

protected $release_info

$season_episodes protected_oe property

protected $season_episodes

$seasoncount protected_oe property

protected $seasoncount

$sound protected_oe property

protected $sound

$soundclip_sites protected_oe property

protected $soundclip_sites

$soundtracks protected_oe property

protected $soundtracks

$split_comment protected_oe property

protected $split_comment

$split_plot protected_oe property

protected $split_plot

$synopsis_wiki protected_oe property

protected $synopsis_wiki

$taglines protected_oe property

protected $taglines

$trailers protected_oe property

protected $trailers

$trivia protected_oe property

protected $trivia

$video_sites protected_oe property

protected $video_sites

$weekendGross protected_oe property

protected $weekendGross