public function FeedsOAIHTTPFetcherResult::__construct in Feeds OAI-PMH Fetcher and Parser 7
Constructor.
Overrides FeedsFetcherResult::__construct
File
- ./
FeedsOAIHTTPFetcher.inc, line 17
Class
- FeedsOAIHTTPFetcherResult
- Definition of the import batch object created on the fetching stage by FeedsOAIHTTPFetcher.
Code
public function __construct($oai_endpoint_url, $from_timestamp, $until_timestamp, $resumption_token, $set) {
$this->oai_endpoint_url = $oai_endpoint_url;
$this->from_timestamp = $from_timestamp;
$this->until_timestamp = $until_timestamp;
$this->set = $set;
$this->resumption_token = $resumption_token;
// Run identify request to fill this repository's information.
require_once drupal_get_path('module', 'feeds_oai_pmh') . '/feeds_oai_pmh.inc';
$repository = feeds_oai_pmh_identify($oai_endpoint_url);
$this->repository = $repository['repository'];
parent::__construct('');
}