public function WordPressSource::rewind in WordPress Migrate 7
Implementation of Iterator::rewind() - called before beginning a foreach loop.
Overrides MigrateSource::rewind
File
- ./
wordpress_source.inc, line 124 - Common source support for migration from WordPress XML dumps.
Class
- WordPressSource
- @file Common source support for migration from WordPress XML dumps.
Code
public function rewind() {
$this->numProcessed = 0;
$this->items = $this->xml
->xpath($this->xpath);
$this->itemIndex = 0;
$this->itemCount = count($this->items);
// Load up the first row
$this
->next();
}