public function MigrateListCSV::validResource in Migrate 7.2
Check if resource loaded correctly.
Return value
bool
3 calls to MigrateListCSV::validResource()
- MigrateListCSV::computeCount in plugins/
sources/ csv.inc - Return a count of all available IDs from the source listing.
- MigrateListCSV::getIdList in plugins/
sources/ csv.inc - Return an array of IDs from the CSV file.
- MigrateListCSV::__construct in plugins/
sources/ csv.inc - Constructor for MigrateListCSV.
File
- plugins/
sources/ csv.inc, line 205 - Define a MigrateSource for importing from comma separated values files.
Class
- MigrateListCSV
- Implementation of MigrateList, for retrieving a list of IDs to be migrated from a CSV file.
Code
public function validResource() {
if (!$this->csvHandle) {
Migration::displayMessage(t('Could not open CSV file !url', array(
'!url' => $this->file,
)));
}
return (bool) $this->csvHandle;
}