PHP Класс Imdb\Person

Автор: Izzy (izzysoft AT qumran DOT org)
Наследование: extends MdbBase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$SearchDetails SearchDetails
$actorsfilms
$actressfilms
$allfilms
$archivefilms
$bio_bio
$bio_salary
$bio_tm
$bio_trivia
$birth_name "Bio" page:
$birthday
$bodyheight
$crewsfilms
$deathday
$directorsfilms
$fullname
$main_photo "Name" page:
$nick_name
$producersfilms
$pub_articles
$pub_interviews
$pub_magcovers
$pub_movies
$pub_pictorial
$pub_prints "Publicity" page:
$selffilms
$soundtrackfilms
$spouses
$thanxfilms
$titleTypeMap
$writerfilms

Открытые методы

Метод Описание
__construct ( $id, Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null )
articles ( ) : array Articles
bio ( ) : array Get the person's mini bio
birthname ( ) : string Get the birth name
born ( ) : array | null Get Birthday
died ( ) : array Get Deathday
fromSearchResults ( $id, $name, Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null )
getSearchDetails ( ) : array Get the search details They are just set when the imdb_person object has been initialized by the imdbpsearch class
height ( ) : array Get the body height
imdbid ( ) : string Retrieve the IMDB ID
interviews ( ) : array Interviews
magcovers ( ) : array Magazine cover photos
main_url ( ) : string Set up the URL to the movie title page
movies_actor ( ) : array Get an actor or actress' filmography
movies_actress ( )
movies_all ( ) : array Get complete filmography This method ignores the categories and tries to collect the complete filmography. Useful e.g. for pages without categories on. It may, however, contain duplicates if there are categories and a movie is listed in more than one of them
movies_archive ( ) : array Get "Archive Footage" filmography
movies_crew ( ) : array Get "Misc Crew" filmography
movies_director ( ) : array Get directors filmography
movies_producer ( ) : array Get producers filmography
movies_self ( ) : array Get "Self" filmography
movies_soundtrack ( ) : array Get soundtrack filmography
movies_thanx ( ) : array Get "Thanx" filmography
movies_writer ( ) : array Get writers filmography
name ( ) : string Get the name of the person
nickname ( ) : array Get the nick name
photo ( $thumb = true ) : mixed Get cover photo
photo_localurl ( $thumb = true ) : mixed Get the URL for the movies cover photo
pictorials ( ) : array Pictorials
pubmovies ( ) : array Biographical Movies
pubportraits ( ) : array List of movies protraying the person
pubprints ( ) : array Print media about this person
quotes ( ) : array Get the Personal Quotes
salary ( ) : array Get the salary list
savephoto ( $path, $thumb = TRUE, $rerun = FALSE ) : boolean Save the photo to disk
setSearchDetails ( $role, $mid, $name, $year ) Set some search details
spouse ( ) : array Get spouse(s)
trademark ( ) : array Get the "trademarks" of the person
trivia ( ) : array Get the Trivia

Защищенные методы

Метод Описание
buildUrl ( $page = null )
filmograf ( &$res, $type ) Get filmography
getPage ( $page = null )
getUrlSuffix ( string $pageName ) : string
parparse ( $name, &$res ) Parse Trivia, Quotes, etc (same structs)
parsearticles ( &$res, $page, $title ) Helper for article parsing
parsepubmovies ( &$res, $page, $header ) Parse movie helper

Описание методов

__construct() публичный Метод

public __construct ( $id, Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null )
$config Config OPTIONAL override default config
$logger Psr\Log\LoggerInterface OPTIONAL override default logger
$cache CacheInterface OPTIONAL override default cache

articles() публичный Метод

Articles
См. также: IMDB person page /publicity
public articles ( ) : array
Результат array articles array[0..n] of array[inturl,name,date,details,auturl,author] where all elements are strings - just date is an array[day,month,mon,year,full] (full: as displayed on the IMDB site)

bio() публичный Метод

Get the person's mini bio
См. также: IMDB person page /bio
public bio ( ) : array
Результат array bio array [0..n] of array[string desc, array author[url,name]]

birthname() публичный Метод

Get the birth name
См. также: IMDB person page /bio
public birthname ( ) : string
Результат string birthname

born() публичный Метод

Get Birthday
См. также: IMDB person page /bio
public born ( ) : array | null
Результат array | null birthday [day,month,mon,year,place] where month is the month name, and mon the month number

buildUrl() защищенный Метод

protected buildUrl ( $page = null )

died() публичный Метод

Get Deathday
См. также: IMDB person page /bio
public died ( ) : array
Результат array deathday [day,month.mon,year,place,cause] where month is the month name, and mon the month number

filmograf() защищенный Метод

Get filmography
protected filmograf ( &$res, $type )

fromSearchResults() публичный статический Метод

public static fromSearchResults ( $id, $name, Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null )
$config Config
$logger Psr\Log\LoggerInterface
$cache CacheInterface

getPage() защищенный Метод

protected getPage ( $page = null )

getSearchDetails() публичный Метод

Get the search details They are just set when the imdb_person object has been initialized by the imdbpsearch class
public getSearchDetails ( ) : array
Результат array SearchDetails (mid,name,role,moviename,year)

getUrlSuffix() защищенный Метод

protected getUrlSuffix ( string $pageName ) : string
$pageName string internal name of the page
Результат string

height() публичный Метод

Get the body height
См. также: IMDB person page /bio
public height ( ) : array
Результат array [imperial,metric] height in feet and inch (imperial) an meters (metric)

imdbid() публичный Метод

Retrieve the IMDB ID
public imdbid ( ) : string
Результат string id IMDBID currently used

interviews() публичный Метод

Interviews
См. также: IMDB person page /publicity
public interviews ( ) : array
Результат array interviews array[0..n] of array[inturl,name,date,details,auturl,author] where all elements are strings - just date is an array[day,month,mon,year,full] (full: as displayed on the IMDB site)

magcovers() публичный Метод

Magazine cover photos
См. также: IMDB person page /publicity
public magcovers ( ) : array
Результат array magcovers array[0..n] of array[inturl,name,date,details,auturl,author] where all elements are strings - just date is an array[day,month,mon,year,full] (full: as displayed on the IMDB site)

main_url() публичный Метод

Set up the URL to the movie title page
public main_url ( ) : string
Результат string url full URL to the current movies main page

movies_actor() публичный Метод

Get an actor or actress' filmography
См. также: IMDB person page / (Main page)
public movies_actor ( ) : array
Результат array array[0..n][mid,name,year,title_type,chid,chname,addons], where chid is the character IMDB ID, chname the character name, and addons an array of additional remarks (the things in parenthesis)

movies_actress() публичный Метод

Устаревший: Use self::movies_actor() instead
public movies_actress ( )

movies_all() публичный Метод

Get complete filmography This method ignores the categories and tries to collect the complete filmography. Useful e.g. for pages without categories on. It may, however, contain duplicates if there are categories and a movie is listed in more than one of them
См. также: IMDB person page / (Main page)
public movies_all ( ) : array
Результат array array[0..n][mid,name,year,title_type,chid,chname,addons], where chid is the character IMDB ID, chname the character name, and addons an array of additional remarks (the things in parenthesis)

movies_archive() публичный Метод

Get "Archive Footage" filmography
См. также: IMDB person page / (Main page)
public movies_archive ( ) : array
Результат array array[0..n][mid,name,year,chid,chname], where chid is the character IMDB ID, and chname the character name

movies_crew() публичный Метод

Get "Misc Crew" filmography
См. также: IMDB person page / (Main page)
public movies_crew ( ) : array
Результат array array[0..n][mid,name,year]

movies_director() публичный Метод

Get directors filmography
См. также: IMDB person page / (Main page)
public movies_director ( ) : array
Результат array array[0..n][mid,name,year]

movies_producer() публичный Метод

Get producers filmography
См. также: IMDB person page / (Main page)
public movies_producer ( ) : array
Результат array array[0..n][mid,name,year,title_type,chid,chname,addons], where chid is the character IMDB ID, chname the character name, and addons an array of additional remarks (the things in parenthesis)

movies_self() публичный Метод

Get "Self" filmography
См. также: IMDB person page / (Main page)
public movies_self ( ) : array
Результат array array[0..n][mid,name,year,chid,chname], where chid is the character IMDB ID, and chname the character name

movies_soundtrack() публичный Метод

Get soundtrack filmography
См. также: IMDB person page / (Main page)
public movies_soundtrack ( ) : array
Результат array array[0..n][mid,name,year]

movies_thanx() публичный Метод

Get "Thanx" filmography
См. также: IMDB person page / (Main page)
public movies_thanx ( ) : array
Результат array array[0..n][mid,name,year]

movies_writer() публичный Метод

Get writers filmography
См. также: IMDB person page / (Main page)
public movies_writer ( ) : array
Результат array array[0..n][mid,name,year,chid,chname], where chid is the character IMDB ID, and chname the character name

name() публичный Метод

Get the name of the person
См. также: IMDB person page / (Main page)
public name ( ) : string
Результат string name full name of the person

nickname() публичный Метод

Get the nick name
См. также: IMDB person page /bio
public nickname ( ) : array
Результат array nicknames array[0..n] of strings

parparse() защищенный Метод

Parse Trivia, Quotes, etc (same structs)
protected parparse ( $name, &$res )

parsearticles() защищенный Метод

Helper for article parsing
См. также: IMDB person page /publicity
protected parsearticles ( &$res, $page, $title )

parsepubmovies() защищенный Метод

Parse movie helper
protected parsepubmovies ( &$res, $page, $header )

photo() публичный Метод

Get cover photo
См. также: IMDB person page / (Main page)
public photo ( $thumb = true ) : mixed
Результат mixed photo (string url if found, FALSE otherwise)

photo_localurl() публичный Метод

Get the URL for the movies cover photo
См. также: IMDB person page / (Main page)
public photo_localurl ( $thumb = true ) : mixed
Результат mixed url (string URL or FALSE if none)

pictorials() публичный Метод

Pictorials
См. также: IMDB person page /publicity
public pictorials ( ) : array
Результат array pictorials array[0..n] of array[inturl,name,date,details,auturl,author] where all elements are strings - just date is an array[day,month,mon,year,full] (full: as displayed on the IMDB site)

pubmovies() публичный Метод

Biographical Movies
См. также: IMDB person page /publicity
public pubmovies ( ) : array
Результат array pubmovies array[0..n] of array[imdb,name,year]

pubportraits() публичный Метод

List of movies protraying the person
См. также: IMDB person page /publicity
public pubportraits ( ) : array
Результат array pubmovies array[0..n] of array[imdb,name,year]

pubprints() публичный Метод

Print media about this person
См. также: IMDB person page /publicity
public pubprints ( ) : array
Результат array prints array[0..n] of array[author,title,place,publisher,year,isbn,url], where "place" refers to the place of publication, and "url" is a link to the ISBN

quotes() публичный Метод

Get the Personal Quotes
См. также: IMDB person page /bio
public quotes ( ) : array
Результат array quotes array[0..n] of string

salary() публичный Метод

Get the salary list
См. также: IMDB person page /bio
public salary ( ) : array
Результат array salary array[0..n] of array movie[strings imdb,name,year], string salary

savephoto() публичный Метод

Save the photo to disk
См. также: IMDB person page / (Main page)
public savephoto ( $path, $thumb = TRUE, $rerun = FALSE ) : boolean
Результат boolean success

setSearchDetails() публичный Метод

Set some search details
public setSearchDetails ( $role, $mid, $name, $year )

spouse() публичный Метод

Get spouse(s)
См. также: IMDB person page /bio
public spouse ( ) : array
Результат array [0..n] of array spouses [string imdb, string name, array from, array to, string comment, string children], where from/to are array [day,month,mon,year] (month is the name, mon the number of the month), comment usually is "divorced" (ouch), children is the number of children

trademark() публичный Метод

Get the "trademarks" of the person
См. также: IMDB person page /bio
public trademark ( ) : array
Результат array trademarks array[0..n] of strings

trivia() публичный Метод

Get the Trivia
См. также: IMDB person page /bio
public trivia ( ) : array
Результат array trivia array[0..n] of string

Описание свойств

$SearchDetails защищенное свойство

SearchDetails
protected $SearchDetails

$actorsfilms защищенное свойство

protected $actorsfilms

$actressfilms защищенное свойство

protected $actressfilms

$allfilms защищенное свойство

protected $allfilms

$archivefilms защищенное свойство

protected $archivefilms

$bio_bio защищенное свойство

protected $bio_bio

$bio_salary защищенное свойство

protected $bio_salary

$bio_tm защищенное свойство

protected $bio_tm

$bio_trivia защищенное свойство

protected $bio_trivia

$birth_name защищенное свойство

"Bio" page:
protected $birth_name

$birthday защищенное свойство

protected $birthday

$bodyheight защищенное свойство

protected $bodyheight

$crewsfilms защищенное свойство

protected $crewsfilms

$deathday защищенное свойство

protected $deathday

$directorsfilms защищенное свойство

protected $directorsfilms

$fullname защищенное свойство

protected $fullname

$main_photo защищенное свойство

"Name" page:
protected $main_photo

$nick_name защищенное свойство

protected $nick_name

$producersfilms защищенное свойство

protected $producersfilms

$pub_articles защищенное свойство

protected $pub_articles

$pub_interviews защищенное свойство

protected $pub_interviews

$pub_magcovers защищенное свойство

protected $pub_magcovers

$pub_movies защищенное свойство

protected $pub_movies

$pub_pictorial защищенное свойство

protected $pub_pictorial

$pub_prints защищенное свойство

"Publicity" page:
protected $pub_prints

$selffilms защищенное свойство

protected $selffilms

$soundtrackfilms защищенное свойство

protected $soundtrackfilms

$spouses защищенное свойство

protected $spouses

$thanxfilms защищенное свойство

protected $thanxfilms

$titleTypeMap защищенное свойство

protected $titleTypeMap

$writerfilms защищенное свойство

protected $writerfilms