Translations of this page:
  • Printable version
  • Tell by mail
  • Export to OpenOffice
  • Export to PDF
  • Export to csv
  • Export to Timeline
  • Add page to book
  • Tools:

Configuration back-end

If your plugin needs to have some configuration stored into the LDAP and appearing in the configuration plugin accessible in the Addons menu, you need to create another plugin for the configuration backend, inside your plugin.

Programming a plugin for the FusionDirectory config backend

You need to create a simplePlugin inheriting class that will have the objectType 'configuration' if you want a whole config tab for your plugin or simply 'smallConfig' if you have only one or two sections that can be displayed with the other plugins in the plugins tab of the configuration.

Ldap storage for the configuration backend

To store your configuration options into the LDAP backend you will need to write your own schema. The options needs to have a name which starts by the prefix 'fd'.

They will be accessible in the PHP code using

$this->config->get_cfg_value('option_name', default_value)

with option_name being the option name without the 'fd' prefix.

Directory hirearchy for a FusionDirectory config backend plugin

en/documentation_dev/configuration_backend.txt · Last modified: 2014/06/27 22:16 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0