class MediaBrowserInternet in D7 Media 7.4
Same name and namespace in other branches
- 7.2 modules/media_internet/includes/MediaBrowserInternet.inc \MediaBrowserInternet
- 7.3 modules/media_internet/includes/MediaBrowserInternet.inc \MediaBrowserInternet
Media browser plugin for Media Internet sources.
Hierarchy
- class \MediaBrowserPlugin implements MediaBrowserPluginInterface
- class \MediaBrowserInternet
Expanded class hierarchy of MediaBrowserInternet
1 string reference to 'MediaBrowserInternet'
- media_internet_media_browser_plugin_info in modules/
media_internet/ media_internet.media.inc - Implements hook_media_browser_plugin_info().
File
- modules/
media_internet/ includes/ MediaBrowserInternet.inc, line 11 - Definition of MediaBrowserInternet.
View source
class MediaBrowserInternet extends MediaBrowserPlugin {
/**
* Implements MediaBrowserPluginInterface::access().
*/
public function access($account = NULL) {
return media_internet_access($account);
}
/**
* Implements MediaBrowserPlugin::view().
*/
public function view() {
module_load_include('inc', 'file_entity', 'file_entity.pages');
$build = array();
$params = $this->params;
$params['internet_media'] = TRUE;
$build['form'] = drupal_get_form('media_internet_add_upload', $params);
return $build;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MediaBrowserInternet:: |
public | function |
Implements MediaBrowserPluginInterface::access(). Overrides MediaBrowserPlugin:: |
|
MediaBrowserInternet:: |
public | function |
Implements MediaBrowserPlugin::view(). Overrides MediaBrowserPlugin:: |
|
MediaBrowserPlugin:: |
protected | property | The plugin metadata array from hook_media_browser_plugin_info(). | |
MediaBrowserPlugin:: |
protected | property | The parameters for current media browser from media_get_browser_params(). | |
MediaBrowserPlugin:: |
public | function |
Implements MediaBrowserPluginInterface::__construct(). Overrides MediaBrowserPluginInterface:: |
1 |