PHP 클래스 Imdb\Config

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

공개 프로퍼티들

프로퍼티 타입 설명
$cache_expire integer If 0 cached pages will never expire
$cachedir string Directory to store cached pages. This must be writable by the web server. It doesn't need to be under documentroot.
$converttozip boolean Convert non-zip cache-files to zip (check file permissions!)?
$debug boolean Enable debug mode?
$default_agent string Set the default user agent (if none is detected)
$force_agent string Enforce the use of a special user agent
$imdb_img_url string Where the local IMDB images reside (look for the "showtimes/" directory) This should be either a relative, an absolute, or an URL including the protocol (e.g. when a different server shall deliver them)
$imdbsite IMDB domain to use.
$language string If this option is specified, a Accept-Language header with this value will be included in requests to IMDb.
$photodir string This needs to be under documentroot to be able to display them on your pages.
$photoroot string URL corresponding to photodir, i.e. the URL to the images, i.e. start at your servers DOCUMENT_ROOT when specifying absolute path
$storecache boolean Store the pages retrieved for later use?
$throwHttpExceptions boolean Throw exceptions when a request to fetch some content fails?
$usecache boolean Use cached pages if available?
$usezip boolean Use zip compression for caching the retrieved html-files?

공개 메소드들

메소드 설명
__construct ( string $iniFile = null ) Constructor

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $iniFile = null )
$iniFile string *optional* Path to a config file containing any config overrides

프로퍼티 상세

$cache_expire 공개적으로 프로퍼티

If 0 cached pages will never expire
public int $cache_expire
리턴 integer

$cachedir 공개적으로 프로퍼티

Directory to store cached pages. This must be writable by the web server. It doesn't need to be under documentroot.
public string $cachedir
리턴 string

$converttozip 공개적으로 프로퍼티

Convert non-zip cache-files to zip (check file permissions!)?
public bool $converttozip
리턴 boolean

$debug 공개적으로 프로퍼티

Enable debug mode?
public bool $debug
리턴 boolean

$default_agent 공개적으로 프로퍼티

Set the default user agent (if none is detected)
public string $default_agent
리턴 string

$force_agent 공개적으로 프로퍼티

Enforce the use of a special user agent
public string $force_agent
리턴 string

$imdb_img_url 공개적으로 프로퍼티

Where the local IMDB images reside (look for the "showtimes/" directory) This should be either a relative, an absolute, or an URL including the protocol (e.g. when a different server shall deliver them)
public string $imdb_img_url
리턴 string

$imdbsite 공개적으로 프로퍼티

IMDB domain to use.
public $imdbsite

$language 공개적으로 프로퍼티

If this option is specified, a Accept-Language header with this value will be included in requests to IMDb.
public string $language
리턴 string

$photodir 공개적으로 프로퍼티

This needs to be under documentroot to be able to display them on your pages.
public string $photodir
리턴 string

$photoroot 공개적으로 프로퍼티

URL corresponding to photodir, i.e. the URL to the images, i.e. start at your servers DOCUMENT_ROOT when specifying absolute path
public string $photoroot
리턴 string

$storecache 공개적으로 프로퍼티

Store the pages retrieved for later use?
public bool $storecache
리턴 boolean

$throwHttpExceptions 공개적으로 프로퍼티

Throw exceptions when a request to fetch some content fails?
public bool $throwHttpExceptions
리턴 boolean

$usecache 공개적으로 프로퍼티

Use cached pages if available?
public bool $usecache
리턴 boolean

$usezip 공개적으로 프로퍼티

Use zip compression for caching the retrieved html-files?
public bool $usezip
리턴 boolean