You are here

public function FeedsEnclosure::__destruct in Feeds 6

Destructor, clean up any temporary files.

File

plugins/FeedsParser.inc, line 231

Class

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

Code

public function __destruct() {
  if (!empty($this->file) && $this->delete_file) {
    file_delete($this->file);
  }
}