You are here

public function FeedsEnclosure::getSanitizedUri in Feeds 7.2

Returns the full path to the file URI with a safe file name.

Return value

string The safe file URI.

Throws

RuntimeException Thrown if the file extension is invalid.

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

File

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

Class

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

Code

public function getSanitizedUri() {
  return drupal_dirname($this
    ->getValue()) . '/' . $this
    ->getSafeFilename();
}