Plugins - advanced
From LimeSurvey Manual
Revision as of 14:41, 11 June 2013 by Mdekker
Starting from LimeSurvey 2.05, LimeSurvey will officially support plugins.
Plugins allow users to customize the functionality of their installation while still being able to benefit from regular software updates.
Plugins must implement the iPlugin interface. We recommend
extending your plugin class from the PluginBase class.
The example plugin exposes just 1 configurable setting, the message it'll show.
protected $settings = array( 'logo' => array( 'type' => 'logo', 'path' => 'assets/logo.png' ), 'message' => array( 'type' => 'string', 'label' => 'Message' ) );
The array contains a name for each setting as a key. The values are arrays containing the required meta data.
Supported types are:
Besides type a number of other keys are available:
- label, defines a label (use English, the label specified here will be passed through the translation functions)
- default, defines a value to show if no value is specified.
- current, defines the current value.
- readOnly, specifies the setting is read only.