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: 194 $ $Date: 2009-01-23 16:23:51 +0100 (Fr, 23. Jan 2009) $
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, 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,year,full] (full: as displayed on the IMDB site)

bio()

array bio()

Get the person's mini bio

Returns:
bio array [0..n] of array[string desc, array author[url,name]]

birthname()

string birthname()

Get the birth name

Returns:
birthname

born()

array born()

Get Birthday

Returns:
birthday [day,month.year,place]

died()

array died()

Get Deathday

Returns:
deathday [day,month.year,place,cause]

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)

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,year,full] (full: as displayed on the IMDB site)

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,year,full] (full: as displayed on the IMDB site)

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)

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)

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)

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

movies_crew()

array movies_crew()

Get "Misc Crew" filmography

Returns:
array[0..n][mid,name,year]

movies_director()

array movies_director()

Get directors filmography

Returns:
array[0..n][mid,name,year]

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)

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

movies_soundtrack()

array movies_soundtrack()

Get soundtrack filmography

Returns:
array[0..n][mid,name,year]

movies_thanx()

array movies_thanx()

Get "Thanx" filmography

Returns:
array[0..n][mid,name,year]

name()

string name()

Get the name of the person

Returns:
name full name of the person

nickname()

array nickname()

Get the nick name

Returns:
nicknames array[0..n] of strings

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

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)

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)

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,year,full] (full: as displayed on the IMDB site)

pubmovies()

array pubmovies()

Biographical Movies

Returns:
pubmovies array[0..n] of array[imdb,name,year]

pubportraits()

array pubportraits()

List of movies protraying the person

Returns:
pubmovies array[0..n] of array[imdb,name,year]

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

quotes()

array quotes()

Get the Personal Quotes

Returns:
quotes array[0..n] of string

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

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

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,year], comment usually is "divorced" (ouch), children is the number of children

trademark()

array trademark()

Get the "trademarks" of the person

Returns:
trademarks array[0..n] of strings

trivia()

array trivia()

Get the Trivia

Returns:
trivia array[0..n] of string

 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.16.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)