[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libraries/ -> plugin_interface.lib.php (sommaire)

Generic plugin interface.

Poids: 370 lignes (14 kb)
Inclus ou requis: 3 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 12 fonctions

  PMA_getPlugins()
  PMA_getString()
  PMA_pluginCheckboxCheck()
  PMA_pluginGetDefault()
  PMA_pluginIsActive()
  PMA_pluginGetChoice()
  PMA_pluginGetOneOption()
  PMA_pluginGetOptions()
  PMA_pluginGetJavascript()
  hide_them_all()
  init_options()
  match_file()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

PMA_getPlugins($plugins_dir, $plugin_param)   X-Ref
array PMA_getPlugins(string $plugins_dir, mixed $plugin_param)

Reads all plugin information from directory $plugins_dir.

param: string  $plugins_dir    directrory with plugins
param: mixed   $plugin_param   parameter to plugin by which they can decide whether they can work
return: array                   list of plugins

PMA_getString($name)   X-Ref
string PMA_getString(string $name)

returns locale string for $name or $name if no locale is found

param: string  $name   for local string
return: string          locale string for $name

PMA_pluginCheckboxCheck($section, $opt)   X-Ref
string PMA_pluginCheckboxCheck(string $section, string $opt)

returns html input tag option 'checked' if plugin $opt should be set by config or request

param: string  $section    name of config section in
param: string  $opt        name of option
return: string              hmtl input tag option 'checked'

PMA_pluginGetDefault($section, $opt)   X-Ref
string PMA_pluginGetDefault(string $section, string $opt)

returns default value for option $opt

param: string  $section    name of config section in
param: string  $opt        name of option
return: string              default value for option $opt

PMA_pluginIsActive($section, $opt, $val)   X-Ref
string PMA_pluginIsActive(string $section, string $opt, string $val)

returns html input tag option 'checked' if option $opt should be set by config or request

param: string  $section    name of config section in
param: string  $opt        name of option
param: string  $val        value of option to check against
return: string              html input tag option 'checked'

PMA_pluginGetChoice($section, $name, &$list, $cfgname = NULL)   X-Ref
string PMA_pluginGetChoice(string $section, string $name, array &$list, string $cfgname)

returns html radio form element for plugin choice

param: string  $section    name of config section in
param: string  $name       name of radio element
param: array   &$list      array with plugin configuration defined in plugin file
param: string  $cfgname    name of config value, if none same as $name
return: string              html input radio tag

PMA_pluginGetOneOption($section, $plugin_name, $id, &$opt)   X-Ref
string PMA_pluginGetOneOption(string $section, string $plugin_name, string $id, array &$opt)

returns single option in a table row

param: string  $section        name of config section in
param: string  $plugin_name    unique plugin name
param: string  $id             option id
param: array   &$opt           plugin option details
return: string                  table row with option

PMA_pluginGetOptions($section, &$list)   X-Ref
string PMA_pluginGetOptions(string $section, array &$list)

return html fieldset with editable options for plugin

param: string  $section    name of config section in $GLOBALS['cfg'][$section]
param: array   &$list      array with plugin configuration defined in plugin file
return: string              html fieldset with plugin options

PMA_pluginGetJavascript(&$list)   X-Ref
string PMA_pluginGetJavascript(array &$list)

return html/javascript code which is needed for handling plugin stuff

param: array   &$list      array with plugin configuration defined in plugin file
return: string              html fieldset with plugin options

hide_them_all()   X-Ref
Pas de description

init_options()   X-Ref
Pas de description

match_file(fname)   X-Ref
Pas de description



Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics