You are here

public function FeedsEnclosure::__construct in Feeds 6

Same name and namespace in other branches
  1. 7.2 plugins/FeedsParser.inc \FeedsEnclosure::__construct()
  2. 7 plugins/FeedsParser.inc \FeedsEnclosure::__construct()

Constructor, requires MIME type.

Overrides FeedsElement::__construct

1 method overrides FeedsEnclosure::__construct()
FeedsSimplePieEnclosure::__construct in plugins/FeedsSimplePieParser.inc
Constructor requires SimplePie enclosure object.

File

plugins/FeedsParser.inc, line 222

Class

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

Code

public function __construct($value, $mime_type) {
  parent::__construct($value);
  $this->mime_type = $mime_type;
  $this->delete_file = FALSE;
}