public function MigrateSourceSpreadsheet::computeCount in Migrate 7.2
Returns a count of all available source records.
File
- plugins/
sources/ spreadsheet.inc, line 206 - Define a MigrateSource for importing from spreadsheet files.
Class
- MigrateSourceSpreadsheet
- Implements MigrateSource, to handle imports from XLS files.
Code
public function computeCount() {
// Subtract the non-data rows (rows before header and the header).
return $this->rows - $this->headerRows - 1;
}