PHP Класс Imdb\MdbBase

Автор: Georgos Giagas
Автор: Izzy (izzysoft AT qumran DOT org)
Наследование: extends Config
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$version

Защищенные свойства (Protected)

Свойство Тип Описание
$cache CacheInterface
$config Config
$imdbID 7 digit identifier for this person
$logger Psr\Log\LoggerInterface
$months
$page
$pages Pages

Открытые методы

Метод Описание
__construct ( Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null )
imdbid ( ) : string Retrieve the IMDB ID

Защищенные методы

Метод Описание
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

Описание методов

__construct() публичный Метод

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() защищенный Метод

Overrideable method to build the URL used by getPage
protected buildUrl ( string $context = null ) : string
$context string OPTIONAL
Результат string

debug_html() защищенный Метод

protected debug_html ( $html )

debug_object() защищенный Метод

protected debug_object ( $object )

debug_scalar() защищенный Метод

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

getPage() защищенный Метод

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
Результат string

imdbid() публичный Метод

Retrieve the IMDB ID
public imdbid ( ) : string
Результат string id IMDBID currently used

monthNo() защищенный Метод

Get numerical value for month name
protected monthNo ( $mon ) : integer
Результат integer month number

setid() защищенный Метод

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

Описание свойств

$cache защищенное свойство

protected CacheInterface $cache
Результат CacheInterface

$config защищенное свойство

protected Config,imdb $config
Результат Config

$imdbID защищенное свойство

7 digit identifier for this person
protected $imdbID

$logger защищенное свойство

protected LoggerInterface,Psr\Log $logger
Результат Psr\Log\LoggerInterface

$months защищенное свойство

protected $months

$page защищенное свойство

protected $page

$pages защищенное свойство

protected Pages,imdb $pages
Результат Pages

$version публичное свойство

public $version