Свойство | Тип | Описание | |
---|---|---|---|
$cache | CacheInterface | ||
$config | |||
$logger | Psr\Log\LoggerInterface | ||
$name | |||
$pages |
Метод | Описание | |
---|---|---|
__construct ( |
||
get ( $url ) : string | Retrieve the content of the specified $url Caching will be used where possible |
Метод | Описание | |
---|---|---|
buildRequest ( $url ) | ||
getCacheKey ( $url ) | ||
getFromCache ( $url ) | ||
requestPage ( $url ) : string | Request the page from IMDb | |
saveToCache ( $url, $page ) |
public __construct ( |
||
$config | ||
$cache | CacheInterface | |
$logger | Psr\Log\LoggerInterface |
protected requestPage ( $url ) : string | ||
$url | ||
Результат | string | Page html. Empty string on failure |
protected LoggerInterface,Psr\Log $logger | ||
Результат | Psr\Log\LoggerInterface |