interface MediaBrowserPluginInterface

  1. cis7 sites/all/modules/ulmus/media/includes/MediaBrowserPluginInterface.inc MediaBrowserPluginInterface
  2. cle7 sites/all/modules/ulmus/media/includes/MediaBrowserPluginInterface.inc MediaBrowserPluginInterface
  3. elmsmedia7 sites/all/modules/ulmus/media/includes/MediaBrowserPluginInterface.inc MediaBrowserPluginInterface
  4. icor7 sites/all/modules/ulmus/media/includes/MediaBrowserPluginInterface.inc MediaBrowserPluginInterface
  5. meedjum_blog7 sites/all/modules/ulmus/media/includes/MediaBrowserPluginInterface.inc MediaBrowserPluginInterface
  6. mooc7 sites/all/modules/ulmus/media/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

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
MediaBrowserPluginInterface::access public function Check if a user can access this plugin.
MediaBrowserPluginInterface::__construct public function Set up the plugin class.

File

sites/all/modules/ulmus/media/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);

  // The view() method is an abstract function so it is defined in MediaBrowser
  // Plugin.
  // @todo public function view();
}