public static function Reader::importFile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Reader/Reader.php \Zend\Feed\Reader\Reader::importFile()
Imports a feed from a file located at $filename.
Parameters
string $filename:
Return value
Feed\FeedInterface
Throws
Exception\RuntimeException
Overrides ReaderImportInterface::importFile
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Reader.php, line 354
Class
Namespace
Zend\Feed\ReaderCode
public static function importFile($filename) {
ErrorHandler::start();
$feed = file_get_contents($filename);
$err = ErrorHandler::stop();
if ($feed === false) {
throw new Exception\RuntimeException("File '{$filename}' could not be loaded", 0, $err);
}
return static::importString($feed);
}