blob: 3ff11340af808b85caea2f5516c95c8eaee7dd30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<?php
/**
* @file
* Definition of MediaBrowserPluginInterface.
*/
/**
* Defines a Media browser plugin.
*
* Extends the MediaBrowserPluginInterface with methods expected by all
* Media browser classes.
*/
interface MediaBrowserPluginInterface {
/**
* Set up the plugin class.
*
* @param array $info
* An array of plugin info from hook_media_browser_plugin_info()
* implementations.
* @param array $params
* An array of parameters which came in is $_GET['params']. The expected
* parameters are still being defined.
* - 'types': array of media types to support
* - 'multiselect': boolean; TRUE enables multiselect
*/
public function __construct($info, $params);
/**
* Check if a user can access this plugin.
*
* @param object $account
* An optional user account object from user_load(). Defaults to the current
* global user.
*
* @return bool
* TRUE if the user can access this plugin, or FALSE otherwise.
*/
public function access($account = NULL);
// The view() method is an abstract function so it is defined in MediaBrowser
// Plugin.
// @todo public function view();
}
|