PHP Class Imdb\MdbBase

Author: Georgos Giagas
Author: Izzy (izzysoft AT qumran DOT org)
Inheritance: extends Config
Afficher le fichier Open project: tboothman/imdbphp Class Usage Examples

Méthodes publiques

Свойство Type Description
$version

Protected Properties

Свойство Type Description
$cache CacheInterface
$config Config
$imdbID 7 digit identifier for this person
$logger Psr\Log\LoggerInterface
$months
$page
$pages Pages

Méthodes publiques

Méthode Description
__construct ( Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null )
imdbid ( ) : string Retrieve the IMDB ID

Méthodes protégées

Méthode Description
buildUrl ( string $context = null ) : string Overrideable method to build the URL used by getPage
debug_html ( $html )
debug_object ( $object )
debug_scalar ( $scalar ) #---------------------------------------------------------[ Debug helpers ]---
getPage ( string $context = null ) : string Get a page from IMDb, which will be cached in memory for repeated use
monthNo ( $mon ) : integer Get numerical value for month name
setid ( $id ) Set and validate the IMDb ID

Method Details

__construct() public méthode

public __construct ( Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null )
$config Config OPTIONAL override default config
$logger Psr\Log\LoggerInterface OPTIONAL override default logger
$cache CacheInterface OPTIONAL override default cache

buildUrl() protected méthode

Overrideable method to build the URL used by getPage
protected buildUrl ( string $context = null ) : string
$context string OPTIONAL
Résultat string

debug_html() protected méthode

protected debug_html ( $html )

debug_object() protected méthode

protected debug_object ( $object )

debug_scalar() protected méthode

#---------------------------------------------------------[ Debug helpers ]---
protected debug_scalar ( $scalar )

getPage() protected méthode

Get a page from IMDb, which will be cached in memory for repeated use
protected getPage ( string $context = null ) : string
$context string Name of the page or some other context to build the URL with to retrieve the page
Résultat string

imdbid() public méthode

Retrieve the IMDB ID
public imdbid ( ) : string
Résultat string id IMDBID currently used

monthNo() protected méthode

Get numerical value for month name
protected monthNo ( $mon ) : integer
Résultat integer month number

setid() protected méthode

Set and validate the IMDb ID
protected setid ( $id )

Property Details

$cache protected_oe property

protected CacheInterface $cache
Résultat CacheInterface

$config protected_oe property

protected Config,imdb $config
Résultat Config

$imdbID protected_oe property

7 digit identifier for this person
protected $imdbID

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
Résultat Psr\Log\LoggerInterface

$months protected_oe property

protected $months

$page protected_oe property

protected $page

$pages protected_oe property

protected Pages,imdb $pages
Résultat Pages

$version public_oe property

public $version