/** Read the config * @constructor pilotsearch */ function __construct() { parent::__construct(); if (empty($this->pilot_apikey)) { trigger_error('Please provide a valid api key or contact api@moviepilot.de.', E_USER_WARNING); } $this->search_episodes(FALSE); }
/** Initialize the class * @constructor mdb_base * @param optional object mdb_config override default config */ public function __construct(mdb_config $config = null) { parent::__construct(); if ($config) { foreach ($config as $key => $value) { $this->{$key} = $value; } } $this->lastServerResponse = ""; if ($this->storecache && $this->cache_expire > 0) { $this->purge(); } }
/** * @constructor mdb_base * @param object mdb_config $config OPTIONAL override default config */ public function __construct(mdb_config $config = null) { parent::__construct(); if ($config) { foreach ($config as $key => $value) { $this->{$key} = $value; } } $this->logger = new imdb_logger($this->debug); $this->cache = new imdb_cache($this, $this->logger); if ($this->storecache && $this->cache_expire > 0) { $this->cache->purge(); } }
/** Initialize class * @constructor mdb_base * @param string id IMDBID to use for data retrieval */ public function __construct($id) { parent::__construct(); $this->lastServerResponse = ""; if ($this->storecache && $this->cache_expire > 0) { $this->purge(); } }
/** Read the config * @constructor imdbsearch */ function __construct() { parent::__construct(); $this->search_episodes(FALSE); }