Метод | Описание | |
---|---|---|
__construct ( string $id, |
||
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, |
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 |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
populateEpisodeSeasonEpisode ( ) | ||
populatePoster ( ) : boolean | Setup cover photo (thumbnail and big variant) |
public __construct ( string $id, |
||
$id | string | IMDb ID. e.g. 285331 for http://www.imdb.com/title/tt0285331/ |
$config | OPTIONAL override default config | |
$logger | Psr\Log\LoggerInterface | OPTIONAL override default logger |
$cache | CacheInterface | OPTIONAL override default cache |
public admissions ( ) : array[0..n] | ||
Результат | array[0..n] |
public alternateVersions ( ) : array | ||
Результат | array | Alternate Version (array[0..n] of string) |
public aspect_ratio ( ) : string | ||
Результат | string | ratio |
public awards ( boolean $compat = TRUE ) : array | ||
$compat | boolean | whether stay backward compatible to the original format of Qvist. Default: TRUE |
Результат | 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' ] ] ] ] |
protected buildUrl ( $page = null ) |
public cast ( ) : array | ||
Результат | 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 ) |
public comment_split ( ) : array | ||
Результат | array | comment array[string title, string date, array author, string comment]; author: array[string url, string name] |
protected convertIMDBtoRealURL ( $url ) : string | ||
Результат | string | url real-url |
public crazy_credits ( ) : array | ||
Результат | array | crazy_credits (array[0..n] of string) |
public distCompany ( ) : array | ||
Результат | array | [0..n] of array (name,url,notes) |
public episodeAirDate ( ) : string | ||
Результат | string | An ISO 8601 date e.g. 2015-01-01. Will be an empty string if not available |
public episodeEpisode ( ) : integer | ||
Результат | integer | 0 if not available |
public episodeSeason ( ) : integer | ||
Результат | integer | 0 if not available |
public episodeTitle ( ) : string | ||
Результат | string |
public extReviews ( ) : array | ||
Результат | array | [0..n] of array [url, desc] (or empty array if no data) |
public filmingDates ( ) : array[beginning, | ||
Результат | array[beginning, |
public static fromSearchResult ( string $id, string $title, integer $year, string $type, |
||
$id | string | imdb ID |
$title | string | film title |
$year | integer | |
$type | string | |
$config | ||
$logger | Psr\Log\LoggerInterface | OPTIONAL override default logger |
$cache | CacheInterface | OPTIONAL override default cache |
Результат |
protected getUrlSuffix ( string $pageName ) : string | ||
$pageName | string | internal name of the page |
Результат | string |
protected get_admissions ( &$listAdmissions ) : array[0..n] | ||
Результат | array[0..n] |
public get_episode_details ( ) : array | ||
Результат | 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', ) |
protected get_filmingDates ( $listFilmingDates ) : array[0..n] | ||
Результат | array[0..n] |
protected get_gross ( &$listGross ) : array[0..n] | ||
Результат | array[0..n] |
protected get_imdbname ( $href ) : string | ||
Результат | string | IMDBID of the staff member |
protected get_openingWeekend ( &$listOpening ) : array[0..n] | ||
Результат | array[0..n] |
protected get_row_cels ( $row ) : array | ||
Результат | array | cells (array[0..n] of strings) |
protected get_table_rows ( $html, $table_start ) : array | false | ||
Результат | array | false | rows (FALSE if table not found, array[0..n] of strings otherwise) |
protected get_table_rows_cast ( $html, $table_start, $class = "nm" ) : array | ||
Результат | array | array[0..n] of strings |
protected get_weekendGross ( &$listweekendGross ) : array[0..n] | ||
Результат | array[0..n] |
public gross ( ) : array[0..n] | ||
Результат | array[0..n] |
protected isEpisode ( ) |
public keywords_all ( ) : array | ||
Результат | array | keywords |
public languages_detailed ( ) : array | ||
Результат | array | languages (array[0..n] of array[string name, string code, string comment], code being the ISO-Code) |
public mainPictures ( ) : array | ||
Результат | array | [0..n] of [imgsrc, imglink, bigsrc], where
|
public metacriticNumReviews ( ) : null | ||
Результат | null |
public metacriticRating ( ) : integer | null | ||
Результат | integer | null |
public movieTypes ( ) : array | ||
Результат | array | [0..n] of strings (or empty array if no movie types specified) |
public movie_recommendations ( ) : array | ||
Результат | array | recommendations (array[title,imdbid,year]) |
public movieconnection ( ) : array | ||
Результат | 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) |
public mpaa_reason ( ) : string | ||
Результат | string | reason why the movie was rated such |
public officialSites ( ) : array | ||
Результат | array | [0..n] of url, name |
public openingWeekend ( ) : array[0..n] | ||
Результат | array[0..n] |
public orig_title ( ) : string | ||
Результат | string | title original movie title (name), if available |
public otherCompany ( ) : array | ||
Результат | array | [0..n] of array (name,url,notes) |
public parentalGuide ( ) : array | ||
Результат | array | of strings; keys: Alcohol, Sex, Violence, Profanity, Frightening - and maybe more; values: arguments for the rating |
protected parseConnection ( $conn ) : array | ||
Результат | array | [0..n] of array mid,name,year,comment - or empty array if not found |
protected parse_extcontent ( $title, &$res ) |
public photo_localurl ( boolean $thumb = true ) : mixed | ||
$thumb | boolean | get the thumbnail (182x268, default) or the bigger variant (400x600 - FALSE) |
Результат | mixed | url (string URL or FALSE if none) |
public photosites ( ) : array | ||
Результат | array | photosites array[0..n] of array(site,url,type,desc) |
public plot_split ( ) : array | ||
Результат | array | array[0..n] of array[string plot,array author] - where author consists of string name and string url |
public plotoutline ( boolean $fallback = FALSE ) : string | ||
$fallback | boolean | Fallback to storyline if we could not catch plotoutline |
Результат | string | plotoutline |
public prodCompany ( ) : array | ||
Результат | array | [0..n] of array (name,url,notes) |
public releaseInfo ( ) : array | ||
Результат | array | release_info array[0..n] of strings (country,day,month,mon, year,comment) - "month" is the month name, "mon" the number |
protected runtime_all ( ) : string | ||
Результат | string | runtime complete runtime string, e.g. "150 min / USA:153 min (director's cut)" |
public soundclipsites ( ) : array | ||
Результат | array | soundclipsites array[0..n] of array(site,url,type,desc) |
public soundtrack ( ) : array | ||
Результат | array | soundtracks (array[0..n] of array(soundtrack,array[0..n] of credits array[credit_to,desc]) |
public specialCompany ( ) : array | ||
Результат | array | [0..n] of array (name,url,notes) |
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 |
Результат | mixed | trailers either array[0..n] of string ($full=FALSE), or array[0..n] of array[lang,title,url,restful_url,resolution] ($full=TRUE) |
public videosites ( ) : array | ||
Результат | array | videosites array[0..n] of array(site,url,type,desc) |
public weekendGross ( ) : array[0..n] | ||
Результат | array[0..n] |