Projet

Général

Profil

Paste
Télécharger (1,15 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / media / includes / MediaBrowserPluginInterface.inc @ e4215af7

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