You are here

public function FeedsEnclosure::getLocalValue in Feeds 7.2

Returns the file name transformed for better local saving.

Return value

string Value with space characters changed to underscores.

Throws

RuntimeException Thrown if the file extension is invalid.

1 call to FeedsEnclosure::getLocalValue()
FeedsEnclosure::getFile in plugins/FeedsParser.inc
Get a Drupal file object of the enclosed resource, download if necessary.

File

plugins/FeedsParser.inc, line 393
Contains FeedsParser and related classes.

Class

FeedsEnclosure
Enclosure element, can be part of the result array.

Code

public function getLocalValue() {
  return str_replace(' ', '_', $this
    ->getSafeFilename());
}