You are here

public function WordPressSource::count in WordPress Migrate 7

Return a count of all available source records.

Parameters

boolean $refresh: Unused at this time.

Overrides MigrateSource::count

1 method overrides WordPressSource::count()
WordPressItemSource::count in ./wordpress_item.inc
Return a count of all available source records.

File

./wordpress_source.inc, line 116
Common source support for migration from WordPress XML dumps.

Class

WordPressSource
@file Common source support for migration from WordPress XML dumps.

Code

public function count($refresh = FALSE) {
  $count = count($this->xml
    ->xpath($this->xpath));
  return $count;
}