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

Api
Class imdbsearch

- imdb_config
-

class imdbsearch
extends imdb_config

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


Constructor Summary
void imdbsearch()
Read the config

Method Summary
private string mkurl()
Create the IMDB URL for the movie search
array results([string $URL])
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()

private string mkurl()

Create the IMDB URL for the movie search

Returns:
url

results()

array results([string $URL])

Setup search results

Parameters:
URL - Replace search URL by your own
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.16.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)