You are here

interface MediaBrowserPluginInterface in D7 Media 7.3

Same name and namespace in other branches
  1. 7.4 includes/MediaBrowserPluginInterface.inc \MediaBrowserPluginInterface
  2. 7.2 includes/MediaBrowserPluginInterface.inc \MediaBrowserPluginInterface

Defines a Media browser plugin.

Extends the MediaBrowserPluginInterface with methods expected by all Media browser classes.

Hierarchy

Expanded class hierarchy of MediaBrowserPluginInterface

All classes that implement MediaBrowserPluginInterface

File

includes/MediaBrowserPluginInterface.inc, line 14
Definition of MediaBrowserPluginInterface.

View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
MediaBrowserPluginInterface::access public function Check if a user can access this plugin. 1
MediaBrowserPluginInterface::__construct public function Set up the plugin class. 1