array restoreCheckpoint(
)
|
|
Restores the internal state from the file iterate_status.txt in the
result dir such that the next call to nextPages will pick up from just after the last checkpoint. Each iterator should make a call to restoreCheckpoint at the end of the constructor method after the instance members have been initialized.
Tags:
Overridden in child classes as:
- MixArchiveBundleIterator::restoreCheckpoint()
- Restores state from a previous instantiation, after the last batch of pages extracted.
- WebArchiveBundleIterator::restoreCheckpoint()
- Restores state from a previous instantiation, after the last batch of pages extracted.
void saveCheckpoint(
[array
$info = array()])
|
|
Stores the current progress to the file iterate_status.txt in the result
dir such that a new instance of the iterator could be constructed and return the next set of pages without having to process all of the pages that came before. Each iterator should make a call to saveCheckpoint after extracting a batch of pages.
Overridden in child classes as:
- MixArchiveBundleIterator::saveCheckpoint()
- Saves the current state so that a new instantiation can pick up just after the last batch of pages extracted.
- WebArchiveBundleIterator::saveCheckpoint()
- Saves the current state so that a new instantiation can pick up just after the last batch of pages extracted.
Parameters: