PHP Класс Imdb\Config

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

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

Свойство Тип Описание
$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