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

IMDB
Class pilotsearch

- mdb_config
-

class pilotsearch
extends mdb_config

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

Authors:
Izzy (izzysoft AT qumran DOT org)
Version:
$Revision: 286 $ $Date: 2009-11-29 21:08:15 +0100 (So, 29. Nov 2009) $
Copyright:
(c) 2002-2004 by Giorgos Giagas and (c) 2004-2008 by Itzchak Rehberg and IzzySoft

Constructor Summary
void pilotsearch()
Read the config

Method Summary
private 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])
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

pilotsearch()

void pilotsearch()

Read the config


Method Detail

mkurl()

private 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])

Setup search results

Parameters:
URL - Replace search URL by your own
Returns:
results array of objects (instances of the imdb class)
To Do:
  • Since the returned JSON file is a collection of complete movie records, these records should be placed into the cache dir for later use, if the cache is enabled

search_episodes()

void search_episodes(boolean $enabled)

Search for episodes or movies

Parameters:
enabled - TRUE: Search for episodes; FALSE: Search for movies (default)
Version:
no episodes here, so this is a dummy for compatibility only

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)