x

Main chapters

  1. LimeSurvey Cloud vs LimeSurvey CE
  2. LimeSurvey Cloud - Quick start guide
  3. LimeSurvey CE - Installation
  4. How to design a good survey (Guide)
  5. Getting started
  6. LimeSurvey configuration
  7. Introduction - Surveys
  8. View survey settings
  9. View survey menu
  10. View survey structure
  11. Introduction - Questions
  12. Introduction - Question Groups
  13. Introduction - Surveys - Management
  14. Survey toolbar options
  15. Multilingual survey
  16. Quick start guide - ExpressionScript
  17. Advanced features
  18. General FAQ
  19. Troubleshooting
  20. Workarounds
  21. License
  22. Version change log
  23. Plugins - Advanced
 Actions

Plugins - advanced

From LimeSurvey Manual

Revision as of 12:31, 5 March 2013 by Sammousa (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

This documentation is meant for developers that are extending Limesurvey for their own use or for their clients; end users will not be helped by this documentation.

Plugins must implement the iPlugin interface. We recommend

extending your plugin class from the PluginBase class.

By extending you benefit from common functionality required by plugins that we already have implemented for you. One of these function is the implementation of the getPluginSettings function. This function must return an array describing the configuration options for the user.

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:

- logo

- string

- html

- choice

- relevance

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.