PHP Class Imdb\TitleSearchAdvanced

See also: http://www.imdb.com/search/
See also: http://www.imdb.com/search/title?year=2015,2015&title_type=feature&explore=has
Author: Izzy (izzysoft AT qumran DOT org)
Inheritance: extends MdbBase
Show file Open project: tboothman/imdbphp

Protected Properties

Property Type Description
$countries
$languages
$sort
$titleTypes
$year

Public Methods

Method Description
search ( ) : array Perform the search
setCountries ( array $countries ) Set which countries of origin you want titles from These are combinatory so you will only get titles that were made in every country you specify
setLanguages ( array $languages ) Set which languages are in the title These are combinatory so you will only get titles that include every language you specify
setSort ( string $sort ) Set the ordering of results.
setTitleTypes ( array $types ) Set which types of titles should be returned
setYear ( integer $year ) Set which year you want titles from

Protected Methods

Method Description
buildUrl ( $context = null )
parse_results ( $page )

Method Details

buildUrl() protected method

protected buildUrl ( $context = null )

parse_results() protected method

protected parse_results ( $page )

setCountries() public method

Set which countries of origin you want titles from These are combinatory so you will only get titles that were made in every country you specify
See also: http://www.imdb.com/country/
public setCountries ( array $countries )
$countries array Countries are 2/3/4 character codes

setLanguages() public method

Set which languages are in the title These are combinatory so you will only get titles that include every language you specify
See also: http://www.imdb.com/language/
public setLanguages ( array $languages )
$languages array Languages are 2/3/4 character codes

setSort() public method

See the SORT_ constants e.g. self::SORT_MOVIEMETER
public setSort ( string $sort )
$sort string

setTitleTypes() public method

Set which types of titles should be returned
public setTitleTypes ( array $types )
$types array e.g. [self::MOVIE, self::DOCUMENTARY]

setYear() public method

Set which year you want titles from
public setYear ( integer $year )
$year integer

Property Details

$countries protected property

protected $countries

$languages protected property

protected $languages

$sort protected property

protected $sort

$titleTypes protected property

protected $titleTypes

$year protected property

protected $year