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

IMDB
Class imdbsearch

- mdb_config
-
Direct Known Subclasses:
imdbpsearch

class imdbsearch
extends mdb_config

Search the IMDB for a title and obtain the movies IMDB ID

Authors:
Izzy (izzysoft AT qumran DOT org)
Version:
$Revision: 642 $ $Date: 2014-01-25 19:28:01 +0100 (Sa, 25. Jan 2014) $
Copyright:
(c) 2002-2004 by Giorgos Giagas and (c) 2004-2008 by Itzchak Rehberg and IzzySoft

Constructor Summary
void imdbsearch()
Read the config

Method Summary
protected string mkurl()
Create the IMDB URL for the movie search
void reset()
Reset search results This empties the collected search results.
array results([string $URL], [boolean $series], [boolean $s_episodes], [boolean $s_games], [boolean $s_video], [boolean $s_short], [boolean $s_special])
Setup search results
void search_episodes(boolean $enabled)
Search for episodes or movies
void setsearchname(string $searchstring)
Set the name (title) to search for
void seturl(string $URL)
Set the URL (overwrite default search URL and run your own) This URL will be reset if you call the setsearchname() method

Constructor Detail

imdbsearch()

void imdbsearch()

Read the config


Method Detail

mkurl()

protected string mkurl()

Create the IMDB URL for the movie search

Returns:
url

reset()

void reset()

Reset search results This empties the collected search results. Without calling this, every new search appends its results to the ones collected by the previous search.


results()

array results([string $URL], [boolean $series], [boolean $s_episodes], [boolean $s_games], [boolean $s_video], [boolean $s_short], [boolean $s_special])

Setup search results

Parameters:
URL - Replace search URL by your own (Default: empty string)
series - whether to include TV series in search results (default: TRUE)
s_episodes - whether to include TV episodes in search results (default: TRUE)
s_games - whether to include games in search results (default: TRUE)
s_video - whether to include videos in search results (default: TRUE). These are often Making Ofs and the like
s_short - whether to include shorts in search results (default: TRUE)
s_special - whether to include specials in search results (default: TRUE)
Returns:
results array of objects (instances of the imdb class)

search_episodes()

void search_episodes(boolean $enabled)

Search for episodes or movies

Parameters:
enabled - TRUE: Search for episodes; FALSE: Search for movies (default)

setsearchname()

void setsearchname(string $searchstring)

Set the name (title) to search for

Parameters:
searchstring - what to search for - (part of) the movie name

seturl()

void seturl(string $URL)

Set the URL (overwrite default search URL and run your own) This URL will be reset if you call the setsearchname() method

Parameters:
URL - to use

 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)