You are here

public function FeedsEnclosure::__construct in Feeds 7.2

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

Constructor, requires MIME type.

Parameters

$value: A path to a local file or a URL to a remote document.

$mimetype: The mime type of the resource.

Overrides FeedsElement::__construct

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

File

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

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;
}