Class TVDB

Description

Base TVDB library class, provides universal functions and variables

Located in /TVDB/TVDB.class.php (line 8)


	
			
Direct descendents
Class Description
TV_Episode TV_Episode class. Class for single tv episode for a TV show.
TV_Show Base class for interacting with TV shows
TV_Shows TV shows class, basic searching functionality
Class Constant Summary
 apiKey = PHPTVDB_API_KEY
 apiUrl = 'http://thetvdb.com/api/'
Method Summary
string fetchData ($url $url)
array removeEmptyIndexes (array $array)
string request ($params $params)
Methods
fetchData (line 33)

Fetches data via curl and returns result

  • return: The data
  • access: protected
string fetchData ($url $url)
  • $url $url: string The url to fetch data from
removeEmptyIndexes (line 94)

Removes indexes from an array if they are zero length after trimming

  • return: An array with all empty indexes removed
  • access: public
array removeEmptyIndexes (array $array)
  • array $array: The array to remove empty indexes from
request (line 51)

Fetches data from thetvdb.com api based on action

  • return: The data from thetvdb.com
  • access: protected
string request ($params $params)
  • $params $params: An array containing parameters for the request to thetvdb.com
Class Constants
apiKey = PHPTVDB_API_KEY (line 24)

API key for thetvdb.com

apiUrl = 'http://thetvdb.com/api/' (line 16)

Base url for api requests

Documentation generated on Wed, 26 Mar 2008 22:32:01 -0700 by phpDocumentor 1.4.0