PHP 클래스 Imdb\MdbBase

저자: Georgos Giagas
저자: Izzy (izzysoft AT qumran DOT org)
상속: extends Config
파일 보기 프로젝트 열기: tboothman/imdbphp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$version

보호된 프로퍼티들

프로퍼티 타입 설명
$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