PHP 클래스 Imdb\Person

저자: Izzy (izzysoft AT qumran DOT org)
상속: extends MdbBase
파일 보기 프로젝트 열기: tboothman/imdbphp 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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