public function MediaFeedsInternetProvider::__construct in Media Feeds 7
Same name and namespace in other branches
- 7.2 includes/MediaFeedsInternetProvider.inc \MediaFeedsInternetProvider::__construct()
Construcor.
Parameters
$provider: The media_internet provider to wrap for workarounds.
Overrides MediaFeedsProvider::__construct
File
- includes/
MediaFeedsInternetProvider.inc, line 23 - Provides a wrapper class for media_internet providers.
Class
- MediaFeedsInternetProvider
- Wraps a media_internet provider to implement the interface of MediaFeedsProvider and provide workarounds for some issues. As the issues get fixed the workarounds can be removed.
Code
public function __construct($value, $config = array()) {
parent::__construct($value, $config);
$this->provider = media_internet_get_provider($this->value);
}