PHP 클래스 IMDB, PHP-IMDB-Grabber

This PHP library enables you to scrap data from IMDB.com. If you want to thank me for this library, please buy me something at Amazon: https://www.amazon.de/gp/registry/wishlist/8840JITISN9L/ - thank you in advance! :)
저자: Fabian Beiner ([email protected])
파일 보기 프로젝트 열기: fabianbeiner/php-imdb-grabber 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$bArrayOutput Return responses enclosed in array
$iId The ID of the movie.
$isReady Is the content ready?
$sNotFound The string returned, if nothing is found.
$sSeparator Char that separates multiple entries.
$sUrl The URL to the movie.

공개 메소드들

메소드 설명
__construct ( string $sSearch, null $iCache = null, string $sSearchFor = 'all' )
getAka ( ) : string
getAkas ( ) : string Returns all local names
getAll ( ) : array
getAspectRatio ( ) : string
getAwards ( ) : string
getCast ( integer $iLimit, boolean $bMore = true ) : string
getCastAndCharacter ( integer $iLimit, boolean $bMore = true ) : string
getCastAndCharacterAsUrl ( integer $iLimit, boolean $bMore = true, string $sTarget = '' ) : string
getCastAsUrl ( integer $iLimit, boolean $bMore = true, string $sTarget = '' ) : string
getCertification ( ) : string
getColor ( ) : string
getCompany ( ) : string
getCompanyAsUrl ( string $sTarget = '' ) : string
getCountry ( ) : string
getCountryAsUrl ( string $sTarget = '' ) : string
getCreator ( ) : string
getCreatorAsUrl ( string $sTarget = '' ) : string
getDirector ( ) : string
getDirectorAsUrl ( string $sTarget = '' ) : string
getGenre ( ) : string
getGenreAsUrl ( string $sTarget = '' ) : string
getLanguage ( ) : string
getLanguageAsUrl ( string $sTarget = '' ) : string
getLocation ( ) : string
getLocationAsUrl ( string $sTarget = '' ) : string
getMpaa ( ) : string
getPlot ( integer $iLimit ) : string
getPlotKeywords ( ) : string
getPoster ( string $sSize = 'small', boolean $bDownload = false ) : boolean | string
getRating ( ) : string
getReleaseDate ( ) : string
getRuntime ( ) : string
getSeasons ( ) : string
getSeasonsAsUrl ( string $sTarget = '' ) : string
getSoundMix ( ) : string
getTagline ( ) : string
getTitle ( boolean $bForceLocal = false ) : string
getTrailerAsUrl ( boolean $bEmbed = false ) : string
getUrl ( ) : string
getUserReview ( ) : string
getVotes ( ) : string
getWriter ( ) : string
getWriterAsUrl ( string $sTarget = '' ) : string
getYear ( ) : string
isReleased ( ) : true Release date doesn't contain all the information we need to create a media and we need this function that checks if users can vote target media (if can, it's released).

비공개 메소드들

메소드 설명
fetchUrl ( string $sSearch ) : boolean

메소드 상세

__construct() 공개 메소드

public __construct ( string $sSearch, null $iCache = null, string $sSearchFor = 'all' )
$sSearch string IMDb URL or movie title to search for.
$iCache null Custom cache time in minutes.
$sSearchFor string What to search for?

getAka() 공개 메소드

public getAka ( ) : string
리턴 string “Also Known As” or $sNotFound.

getAkas() 공개 메소드

Returns all local names
public getAkas ( ) : string
리턴 string The aka name.

getAll() 공개 메소드

public getAll ( ) : array
리턴 array All data.

getAspectRatio() 공개 메소드

public getAspectRatio ( ) : string
리턴 string “Aspect Ratio” or $sNotFound.

getAwards() 공개 메소드

public getAwards ( ) : string
리턴 string The awards of the movie or $sNotFound.

getCast() 공개 메소드

public getCast ( integer $iLimit, boolean $bMore = true ) : string
$iLimit integer How many cast members should be returned?
$bMore boolean Add … if there are more cast members than printed.
리턴 string A list with cast members or $sNotFound.

getCastAndCharacter() 공개 메소드

public getCastAndCharacter ( integer $iLimit, boolean $bMore = true ) : string
$iLimit integer How many cast members should be returned?
$bMore boolean Add … if there are more cast members than printed.
리턴 string A list with cast members and their character or $sNotFound.

getCastAndCharacterAsUrl() 공개 메소드

public getCastAndCharacterAsUrl ( integer $iLimit, boolean $bMore = true, string $sTarget = '' ) : string
$iLimit integer How many cast members should be returned?
$bMore boolean Add … if there are more cast members than printed.
$sTarget string Add a target to the links?
리턴 string A list with linked cast members and their character or $sNotFound.

getCastAsUrl() 공개 메소드

public getCastAsUrl ( integer $iLimit, boolean $bMore = true, string $sTarget = '' ) : string
$iLimit integer How many cast members should be returned?
$bMore boolean Add … if there are more cast members than printed.
$sTarget string Add a target to the links?
리턴 string A list with linked cast members or $sNotFound.

getCertification() 공개 메소드

public getCertification ( ) : string
리턴 string The certification of the movie or $sNotFound.

getColor() 공개 메소드

public getColor ( ) : string
리턴 string Color or $sNotFound.

getCompany() 공개 메소드

public getCompany ( ) : string
리턴 string The company producing the movie or $sNotFound.

getCompanyAsUrl() 공개 메소드

public getCompanyAsUrl ( string $sTarget = '' ) : string
$sTarget string Add a target to the links?
리턴 string The linked company producing the movie or $sNotFound.

getCountry() 공개 메소드

public getCountry ( ) : string
리턴 string A list with countries or $sNotFound.

getCountryAsUrl() 공개 메소드

public getCountryAsUrl ( string $sTarget = '' ) : string
$sTarget string Add a target to the links?
리턴 string A list with linked countries or $sNotFound.

getCreator() 공개 메소드

public getCreator ( ) : string
리턴 string A list with the creators or $sNotFound.

getCreatorAsUrl() 공개 메소드

public getCreatorAsUrl ( string $sTarget = '' ) : string
$sTarget string Add a target to the links?
리턴 string A list with the linked creators or $sNotFound.

getDirector() 공개 메소드

public getDirector ( ) : string
리턴 string A list with the directors or $sNotFound.

getDirectorAsUrl() 공개 메소드

public getDirectorAsUrl ( string $sTarget = '' ) : string
$sTarget string Add a target to the links?
리턴 string A list with the linked directors or $sNotFound.

getGenre() 공개 메소드

public getGenre ( ) : string
리턴 string A list with the genres or $sNotFound.

getGenreAsUrl() 공개 메소드

public getGenreAsUrl ( string $sTarget = '' ) : string
$sTarget string Add a target to the links?
리턴 string A list with the linked genres or $sNotFound.

getLanguage() 공개 메소드

public getLanguage ( ) : string
리턴 string A list with the languages or $sNotFound.

getLanguageAsUrl() 공개 메소드

public getLanguageAsUrl ( string $sTarget = '' ) : string
$sTarget string Add a target to the links?
리턴 string A list with the linked languages or $sNotFound.

getLocation() 공개 메소드

public getLocation ( ) : string
리턴 string A list with the location or $sNotFound.

getLocationAsUrl() 공개 메소드

public getLocationAsUrl ( string $sTarget = '' ) : string
$sTarget string Add a target to the links?
리턴 string A list with the linked location or $sNotFound.

getMpaa() 공개 메소드

public getMpaa ( ) : string
리턴 string The MPAA of the movie or $sNotFound.

getPlot() 공개 메소드

public getPlot ( integer $iLimit ) : string
$iLimit integer The limit.
리턴 string The plot of the movie or $sNotFound.

getPlotKeywords() 공개 메소드

public getPlotKeywords ( ) : string
리턴 string A list with the plot keywords or $sNotFound.

getPoster() 공개 메소드

public getPoster ( string $sSize = 'small', boolean $bDownload = false ) : boolean | string
$sSize string Small or big poster?
$bDownload boolean Return URL to the poster or download it?
리턴 boolean | string Path to the poster.

getRating() 공개 메소드

public getRating ( ) : string
리턴 string The rating of the movie or $sNotFound.

getReleaseDate() 공개 메소드

public getReleaseDate ( ) : string
리턴 string The release date of the movie or $sNotFound.

getRuntime() 공개 메소드

public getRuntime ( ) : string
리턴 string The runtime of the movie or $sNotFound.

getSeasons() 공개 메소드

public getSeasons ( ) : string
리턴 string A list with the seasons or $sNotFound.

getSeasonsAsUrl() 공개 메소드

public getSeasonsAsUrl ( string $sTarget = '' ) : string
$sTarget string Add a target to the links?
리턴 string A list with the linked seasons or $sNotFound.

getSoundMix() 공개 메소드

public getSoundMix ( ) : string
리턴 string The sound mix of the movie or $sNotFound.

getTagline() 공개 메소드

public getTagline ( ) : string
리턴 string The tagline of the movie or $sNotFound.

getTitle() 공개 메소드

public getTitle ( boolean $bForceLocal = false ) : string
$bForceLocal boolean Try to return the original name of the movie.
리턴 string The title of the movie or $sNotFound.

getTrailerAsUrl() 공개 메소드

public getTrailerAsUrl ( boolean $bEmbed = false ) : string
$bEmbed boolean Link to player directly?
리턴 string The URL to the trailer of the movie or $sNotFound.

getUrl() 공개 메소드

public getUrl ( ) : string
리턴 string The IMDb URL.

getUserReview() 공개 메소드

public getUserReview ( ) : string
리턴 string The user review of the movie or $sNotFound.

getVotes() 공개 메소드

public getVotes ( ) : string
리턴 string The votes of the movie or $sNotFound.

getWriter() 공개 메소드

public getWriter ( ) : string
리턴 string A list with the writers or $sNotFound.

getWriterAsUrl() 공개 메소드

public getWriterAsUrl ( string $sTarget = '' ) : string
$sTarget string Add a target to the links?
리턴 string A list with the linked writers or $sNotFound.

getYear() 공개 메소드

public getYear ( ) : string
리턴 string The year of the movie or $sNotFound.

isReleased() 공개 메소드

Release date doesn't contain all the information we need to create a media and we need this function that checks if users can vote target media (if can, it's released).
public isReleased ( ) : true
리턴 true If the media is released

프로퍼티 상세

$bArrayOutput 공개적으로 프로퍼티

Return responses enclosed in array
public $bArrayOutput

$iId 공개적으로 프로퍼티

The ID of the movie.
public $iId

$isReady 공개적으로 프로퍼티

Is the content ready?
public $isReady

$sNotFound 공개적으로 정적으로 프로퍼티

The string returned, if nothing is found.
public static $sNotFound

$sSeparator 공개적으로 프로퍼티

Char that separates multiple entries.
public $sSeparator

$sUrl 공개적으로 프로퍼티

The URL to the movie.
public $sUrl