Actions

ExpressionManagerStart: Difference between revisions

From LimeSurvey Manual

(Oups …)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''When'''
{{FeatureStarting|4.0.0}}


This event is fired before show the survey menu bar
== Usage ==


'''Input'''
This event is done when Expression Manager create his own function. It allow to create own Expressioon Manager function.
 
== Input ==


None
None


'''Possible output'''
== Possible output ==


* functions : array of new function for expression manager
* functions : array of new function for expression manager
* packages : array of javascript package to be registred
* packages : array of javascript package to be registered just after the expression manager javascript.


=== Function definition ===
Function is defined by an array with
* PHP function, can use complete Class name
* Javascript function
* Basic description for administration GUI
* Usage for administration GUI
* Help url
* Number of argument , -1 mean any number of arguments.


'''Example'''
== Example ==


* LimeSurvey Demo plugin : https://github.com/LimeSurvey/LimeSurvey/tree/develop/plugins/Demo/demoAddEmFunction
* [https://github.com/LimeSurvey/LimeSurvey/tree/master/plugins/Demo/demoAddEmFunction demoAddEmFunction]


[[Category:Plugins events]]
[[Category:Plugins events]]

Revision as of 18:29, 15 January 2020

 Hint: This features is available starting in version 4.0.0


Usage

This event is done when Expression Manager create his own function. It allow to create own Expressioon Manager function.

Input

None

Possible output

  • functions : array of new function for expression manager
  • packages : array of javascript package to be registered just after the expression manager javascript.

Function definition

Function is defined by an array with

  • PHP function, can use complete Class name
  • Javascript function
  • Basic description for administration GUI
  • Usage for administration GUI
  • Help url
  • Number of argument , -1 mean any number of arguments.

Example