You are here

public function MediaFeedsProvider::__construct in Media Feeds 7

Same name and namespace in other branches
  1. 7.2 includes/MediaFeedsProvider.inc \MediaFeedsProvider::__construct()

Constructor of MediaFeedsProvider.

Parameters

$value: The value to save.

$config: An associative array of configuration options.

1 call to MediaFeedsProvider::__construct()
MediaFeedsInternetProvider::__construct in includes/MediaFeedsInternetProvider.inc
Construcor.
3 methods override MediaFeedsProvider::__construct()
MediaFeedsInternetProvider::__construct in includes/MediaFeedsInternetProvider.inc
Construcor.
MediaFeedsLibraryProvider::__construct in includes/MediaFeedsLibraryProvider.inc
Constructor of MediaFeedsProvider.
MediaFeedsRemoteProvider::__construct in includes/MediaFeedsRemoteProvider.inc
The value is the remote URI.

File

includes/MediaFeedsProvider.inc, line 47
The MediaFeedsProvider base class.

Class

MediaFeedsProvider
Base class for different Media Feeds providers.

Code

public function __construct($value, $config = array()) {

  // Explicitly support FeedsEnclosure.
  if ($value instanceof FeedsEnclosure) {
    $value = $value
      ->getValue();
  }
  $this->value = $value;
  $this->config = $config;
}