Overview   Package   Tree   Index 
IMDBPHP
PREV  NEXT Frames  No Frame 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Api
Class imdb_person

- imdb_config
-

class imdb_person
extends imdb_base

Accessing IMDB staff information

Authors:
Izzy (izzysoft AT qumran DOT org)
Version:
$Revision: 333 $ $Date: 2010-02-23 21:48:42 +0100 (Di, 23. Feb 2010) $
Copyright:
2008 by Itzchak Rehberg and IzzySoft

Constructor Summary
void imdb_person(string $id)
Initialize class

Method Summary
array articles()
Articles
array bio()
Get the person's mini bio
string birthname()
Get the birth name
array born()
Get Birthday
array died()
Get Deathday
private void filmograf(array& $where, string $type)
Get filmography
array getSearchDetails()
Get the search details They are just set when the imdb_person object has been initialized by the imdbpsearch class
array height()
Get the body height
array interviews()
Interviews
array magcovers()
Magazine cover photos
string main_url()
Set up the URL to the movie title page
array movies_actor()
Get actors filmography
array movies_actress()
Get actress filmography
array movies_all()
Get complete filmography This method ignores the categories and tries to collect the complete filmography.
array movies_archive()
Get "Archive Footage" filmography
array movies_crew()
Get "Misc Crew" filmography
array movies_director()
Get directors filmography
array movies_producer()
Get producers filmography
array movies_self()
Get "Self" filmography
array movies_soundtrack()
Get soundtrack filmography
array movies_thanx()
Get "Thanx" filmography
string name()
Get the name of the person
array nickname()
Get the nick name
private void parparse(string $name, array& $res)
Parse Trivia, Quotes, etc (same structs)
private void parsearticles(array& $res, string $page, string $title)
used by interviews(), articles()
private void parsepubmovies(array& $res, string $page, string $header)
helper to pubmovies() and portrayedmovies()
mixed photo([boolean $thumb])
Get cover photo
mixed photo_localurl([boolean $thumb])
Get the URL for the movies cover photo
array pictorials()
Pictorials
array pubmovies()
Biographical Movies
array pubportraits()
List of movies protraying the person
array pubprints()
Print media about this person
array quotes()
Get the Personal Quotes
private void reset_vars()
Reset page vars
array salary()
Get the salary list
boolean savephoto(string $path, [boolean $thumb])
Save the photo to disk
private string set_pagename(string $wt)
Define page urls
void setSearchDetails(string $role, integer $mid, string $name, integer $year)
Set some search details
array spouse()
Get spouse(s)
array trademark()
Get the "trademarks" of the person
array trivia()
Get the Trivia

Methods inherited from class imdb_base and not overridden
getWebPage, imdbid, monthNo, openpage, purge, setid

Constructor Detail

imdb_person()

void imdb_person(string $id)

Initialize class

Parameters:
id - IMDBID to use for data retrieval

Method Detail

articles()

array articles()

Articles

Returns:
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)
See also:
IMDB person page /publicity

bio()

array bio()

Get the person's mini bio

Returns:
bio array [0..n] of array[string desc, array author[url,name]]
See also:
IMDB person page /bio

birthname()

string birthname()

Get the birth name

Returns:
birthname
See also:
IMDB person page /bio

born()

array born()

Get Birthday

Returns:
birthday [day,month,mon,year,place] where month is the month name, and mon the month number
See also:
IMDB person page /bio

died()

array died()

Get Deathday

Returns:
deathday [day,month.mon,year,place,cause] where month is the month name, and mon the month number
See also:
IMDB person page /bio

filmograf()

private void filmograf(array& $where, string $type)

Get filmography

Parameters:
where - to store the filmography
type - Which filmografie to retrieve ("actor",)

getSearchDetails()

array getSearchDetails()

Get the search details They are just set when the imdb_person object has been initialized by the imdbpsearch class

Returns:
SearchDetails (mid,name,role,moviename,year)

height()

array height()

Get the body height

Returns:
[imperial,metric] height in feet and inch (imperial) an meters (metric)
See also:
IMDB person page /bio

interviews()

array interviews()

Interviews

Returns:
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)
See also:
IMDB person page /publicity

magcovers()

array magcovers()

Magazine cover photos

Returns:
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)
See also:
IMDB person page /publicity

main_url()

string main_url()

Set up the URL to the movie title page

Returns:
url full URL to the current movies main page

movies_actor()

array movies_actor()

Get actors filmography

Returns:
array[0..n][mid,name,year,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)
See also:
IMDB person page / (Main page)

movies_actress()

array movies_actress()

Get actress filmography

Returns:
array[0..n][mid,name,year,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)
See also:
IMDB person page / (Main page)

movies_all()

array 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

Returns:
array[0..n][mid,name,year,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)
See also:
IMDB person page / (Main page)

movies_archive()

array movies_archive()

Get "Archive Footage" filmography

Returns:
array[0..n][mid,name,year,chid,chname], where chid is the character IMDB ID, and chname the character name
See also:
IMDB person page / (Main page)

movies_crew()

array movies_crew()

Get "Misc Crew" filmography

Returns:
array[0..n][mid,name,year]
See also:
IMDB person page / (Main page)

movies_director()

array movies_director()

Get directors filmography

Returns:
array[0..n][mid,name,year]
See also:
IMDB person page / (Main page)

movies_producer()

array movies_producer()

Get producers filmography

Returns:
array[0..n][mid,name,year,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)
See also:
IMDB person page / (Main page)

movies_self()

array movies_self()

Get "Self" filmography

Returns:
array[0..n][mid,name,year,chid,chname], where chid is the character IMDB ID, and chname the character name
See also:
IMDB person page / (Main page)

movies_soundtrack()

array movies_soundtrack()

Get soundtrack filmography

Returns:
array[0..n][mid,name,year]
See also:
IMDB person page / (Main page)

movies_thanx()

array movies_thanx()

Get "Thanx" filmography

Returns:
array[0..n][mid,name,year]
See also:
IMDB person page / (Main page)

name()

string name()

Get the name of the person

Returns:
name full name of the person
See also:
IMDB person page / (Main page)

nickname()

array nickname()

Get the nick name

Returns:
nicknames array[0..n] of strings
See also:
IMDB person page /bio

parparse()

private void parparse(string $name, array& $res)

Parse Trivia, Quotes, etc (same structs)

Parameters:
name -
res -

parsearticles()

private void parsearticles(array& $res, string $page, string $title)

Helper for article parsing

Parameters:
res - where to store the results
page - name of the page
title - title of the block
See also:
IMDB person page /publicity

parsepubmovies()

private void parsepubmovies(array& $res, string $page, string $header)

Parse movie helper

Parameters:
res - where to store the results
page - name of the page
header - header of the block on the IMDB site

photo()

mixed photo([boolean $thumb])

Get cover photo

Parameters:
thumb - get the thumbnail (100x140, default) or the bigger variant (400x600 - FALSE)
Returns:
photo (string url if found, FALSE otherwise)
See also:
IMDB person page / (Main page)

photo_localurl()

mixed photo_localurl([boolean $thumb])

Get the URL for the movies cover photo

Parameters:
thumb - get the thumbnail (100x140, default) or the bigger variant (400x600 - FALSE)
Returns:
url (string URL or FALSE if none)
See also:
IMDB person page / (Main page)

pictorials()

array pictorials()

Pictorials

Returns:
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)
See also:
IMDB person page /publicity

pubmovies()

array pubmovies()

Biographical Movies

Returns:
pubmovies array[0..n] of array[imdb,name,year]
See also:
IMDB person page /publicity

pubportraits()

array pubportraits()

List of movies protraying the person

Returns:
pubmovies array[0..n] of array[imdb,name,year]
See also:
IMDB person page /publicity

pubprints()

array pubprints()

Print media about this person

Returns:
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
See also:
IMDB person page /publicity

quotes()

array quotes()

Get the Personal Quotes

Returns:
quotes array[0..n] of string
See also:
IMDB person page /bio

reset_vars()

private void reset_vars()

Reset page vars


salary()

array salary()

Get the salary list

Returns:
salary array[0..n] of array movie[strings imdb,name,year], string salary
See also:
IMDB person page /bio

savephoto()

boolean savephoto(string $path, [boolean $thumb])

Save the photo to disk

Parameters:
path - where to store the file
thumb - get the thumbnail (100x140, default) or the bigger variant (400x600 - FALSE)
Returns:
success
See also:
IMDB person page / (Main page)

set_pagename()

private string set_pagename(string $wt)

Define page urls

Parameters:
wt - internal name of the page
Returns:
urlname page URL

setSearchDetails()

void setSearchDetails(string $role, integer $mid, string $name, integer $year)

Set some search details

Parameters:
role -
mid - IMDB ID
name - movie-name
year -

spouse()

array spouse()

Get spouse(s)

Returns:
[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
See also:
IMDB person page /bio

trademark()

array trademark()

Get the "trademarks" of the person

Returns:
trademarks array[0..n] of strings
See also:
IMDB person page /bio

trivia()

array trivia()

Get the Trivia

Returns:
trivia array[0..n] of string
See also:
IMDB person page /bio

 Overview   Package   Tree   Index 
IMDBPHP
PREV  NEXT Frames  No Frame 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Submit a bug

This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)