Свойство | Тип | Описание | |
---|---|---|---|
$countries | |||
$languages | |||
$sort | |||
$titleTypes | |||
$year |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
buildUrl ( $context = null ) | ||
parse_results ( $page ) |
public search ( ) : array | ||
Результат | array | array('imdbid' => $id, 'title' => $title, 'year' => $year, 'type' => $mtype, e.g. 'TV Series', 'Feature Film' .. 'serial' => $is_serial, Is it a TV Series? 'episode_imdbid' => $ep_id, If the search found an episode it will show as type TV Series but have episode information too 'episode_title' => $ep_name, As above. The title of the episode 'episode_year' => $ep_year As above. The year of the episode ) |
public setCountries ( array $countries ) | ||
$countries | array | Countries are 2/3/4 character codes |
public setLanguages ( array $languages ) | ||
$languages | array | Languages are 2/3/4 character codes |
public setTitleTypes ( array $types ) | ||
$types | array | e.g. [self::MOVIE, self::DOCUMENTARY] |