Methods |
public
|
__construct(array|null $config = null)
Construct Class
Parameters
$config |
The necessary configuration
|
|
#
|
public
|
setAPIKey(string $apikey): void
Set the API Key
|
#
|
public
|
setLang(string $lang = 'en'): void
Set the language
By default english
Set the language
By default english
|
#
|
public
|
getLang(): string
Get the language
|
#
|
public
|
setTimeZone(string $timezone = 'Europe/Berlin'): void
Set the timezone
By default 'Europe/London'
Set the timezone
By default 'Europe/London'
|
#
|
public
|
getTimeZone(): string
Get the timezone
|
#
|
public
|
setAdult(boolean $adult = false): void
Set adult content flag
By default false
Set adult content flag
By default false
|
#
|
public
|
getAdult(): boolean
Get the adult content flag
Get the adult content flag
|
#
|
public
|
setDebug(boolean $debug = false): void
Set debug mode
By default false
Set debug mode
By default false
|
#
|
public
|
getDebug(): boolean
Get debug status
|
#
|
public
|
getAPIConfig(): APIConfiguration
Get Configuration of the API
Get Configuration of the API
|
#
|
public
|
getImageURL(string $size = 'original'): string
Get the URL images
You can specify the width, by default original
Get the URL images
You can specify the width, by default original
Parameters
$size |
A String like 'w185' where you specify the image width
|
|
#
|
public
|
getDiscoverMovies(int $page = 1): Movie[]
Discover Movies
|
#
|
public
|
getDiscoverTVShows(int $page = 1): TVShow[]
Discover TVShows
|
#
|
public
|
getDiscoverMovie(int $page = 1): array
Discover Movie
|
#
|
public
|
getLatestMovie(): Movie
Get latest Movie
|
#
|
public
|
getNowPlayingMovies(integer $page = 1): Movie[]
Get Now Playing Movies
|
#
|
public
|
getPopularMovies(integer $page = 1): Movie[]
Get Popular Movies
|
#
|
public
|
getTopRatedMovies(integer $page = 1): Movie[]
Get Top Rated Movies
|
#
|
public
|
getUpcomingMovies(integer $page = 1): Movie[]
Get Upcoming Movies
|
#
|
public
|
getLatestTVShow(): TVShow
Get latest TVShow
|
#
|
public
|
getOnTheAirTVShows(int $page = 1): TVShow[]
Get On The Air TVShows
|
#
|
public
|
getAiringTodayTVShows(int $page = 1, ?string $timeZone = null): TVShow[]
Get Airing Today TVShows
|
#
|
public
|
getTopRatedTVShows(int $page = 1): TVShow[]
Get Top Rated TVShows
|
#
|
public
|
getPopularTVShows(int $page = 1): TVShow[]
Get Popular TVShows
|
#
|
public
|
getLatestPerson(): Person
Get latest Person
|
#
|
public
|
getPopularPersons(int $page = 1): Person[]
Get Popular Persons
|
#
|
public
|
getMovie(int $idMovie, array $appendToResponse = null): Movie
Get a Movie
Parameters
$idMovie |
The Movie id
|
$appendToResponse |
The extra append of the request
|
|
#
|
public
|
getTVShow(int $idTVShow, array $appendToResponse = null): TVShow
Get a TVShow
Parameters
$idTVShow |
The TVShow id
|
$appendToResponse |
The extra append of the request
|
|
#
|
public
|
getSeason(int $idTVShow, int $numSeason, array $appendToResponse = null): Season
Get a Season
Parameters
$idTVShow |
The TVShow id
|
$numSeason |
The Season number
|
$appendToResponse |
The extra append of the request
|
|
#
|
public
|
getEpisode(int $idTVShow, int $numSeason, int $numEpisode, array $appendToResponse = null): Episode
Get a Episode
Parameters
$idTVShow |
The TVShow id
|
$numSeason |
The Season number
|
$numEpisode |
the Episode number
|
$appendToResponse |
The extra append of the request
|
|
#
|
public
|
getPerson(int $idPerson, array $appendToResponse = null): Person
Get a Person
Parameters
$idPerson |
The Person id
|
$appendToResponse |
The extra append of the request
|
|
#
|
public
|
getCollection(int $idCollection, array $appendToResponse = null): Collection
Get a Collection
Parameters
$idCollection |
The Collection id
|
$appendToResponse |
The extra append of the request
|
|
#
|
public
|
getCompany(int $idCompany, array $appendToResponse = null): Company
Get a Company
Parameters
$idCompany |
The Company id
|
$appendToResponse |
The extra append of the request
|
|
#
|
public
|
multiSearch(string $query, int $page = 1): array
Search Multi
Parameters
$query |
The query to search for
|
|
#
|
public
|
searchMovie(string $movieTitle): Movie[]
Search Movie
Parameters
$movieTitle |
The title of a Movie
|
|
#
|
public
|
searchTVShow(string $tvShowTitle): TVShow[]
Search TVShow
Parameters
$tvShowTitle |
The title of a TVShow
|
|
#
|
public
|
searchPerson(string $personName): Person[]
Search Person
Parameters
$personName |
The name of the Person
|
|
#
|
public
|
searchCollection(string $collectionName): Collection[]
Search Collection
Parameters
$collectionName |
The name of the Collection
|
|
#
|
public
|
searchCompany(string $companyName): Company[]
Search Company
Parameters
$companyName |
The name of the Company
|
|
#
|
public
|
find(string $id, string $external_source = 'imdb_id'): array
Find
Parameters
$id |
The ID from external source
|
$external_source |
The external source (e.g., 'imdb_id')
|
|
#
|
public
|
getTimezones(): array
Get Timezones
|
#
|
public
|
getJobs(): array
Get Jobs
|
#
|
public
|
getMovieGenres(): Genre[]
Get Movie Genres
|
#
|
public
|
getTVGenres(): Genre[]
Get TV Genres
|
#
|
public
|
getMoviesByGenre(int $idGenre, int $page = 1): Movie[]
Get Movies by Genre
|
#
|
public
|
searchMoviesByYear(int $year, int $page = 1): array
Search Movies by Year
|
#
|
public
|
searchTVShowsByYear(int $year, int $page = 1): array
Get TVShows by Year
|
#
|