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

IMDB
Class imdbsearch


class imdbsearch

Search IMDB

Version:
$Revision: 690 $ $Date: 2014-08-05 09:29:19 +0200 (Di, 05. Aug 2014) $

Method Summary
void reset()
Reset variables
array results([string $URL], [boolean $series], [boolean $s_episodes], [boolean $s_games], [boolean $s_video], [boolean $s_short], [boolean $s_special])
DEPRECATED Perform the search
array search(string $searchTerms, array $wantedTypes, integer $maxResults)
Search IMDb for titles matching $searchTerms
void search_episodes(boolean $enabled)
DEPRECATED Search for episodes or movies
void setsearchname(string $searchstring)
DEPRECATED Set the name (title) to search for

Method Detail

reset()

void reset()

Reset variables

Deprecated:
since version 2.2.4

results()

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

DEPRECATED Perform the search

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)
Deprecated:
since version 2.2.4

search()

array search(string $searchTerms, array $wantedTypes, integer $maxResults)

Search IMDb for titles matching $searchTerms

Parameters:
searchTerms -
wantedTypes - *optional* imdb types that should be returned. Defaults to returning all types. The class constants MOVIE,GAME etc should be used e.g. [imdbsearch::MOVIE, imdbsearch::TV_SERIES]
maxResults - *optional* The maximum number of results to retrieve from IMDB. 0 for unlimited. Defaults to mdb_config::$maxresults
Returns:
array of imdb objects

search_episodes()

void search_episodes(boolean $enabled)

DEPRECATED Search for episodes or movies

Parameters:
enabled - TRUE: Search for episodes; FALSE: Search for movies (default)
Deprecated:
since version 2.2.4

setsearchname()

void setsearchname(string $searchstring)

DEPRECATED Set the name (title) to search for

Parameters:
searchstring - what to search for - (part of) the movie name
Deprecated:
since version 2.2.4

 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 Stephane GALLAND (under the GNU General Public License)