ExpressionManagerStart: Difference between revisions
From LimeSurvey Manual
DenisChenu (talk | contribs) (Add Function definition) |
DenisChenu (talk | contribs) m (→Function definition: 0 indexed array) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{FeatureStarting|4.0.0}} | |||
== Usage == | |||
This event is done when ExpressionScript create his own function. It allow to create own Expressioon Manager function. | |||
== Input == | |||
None | None | ||
== 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 | * packages : array of javascript package to be registered just after the expression manager javascript. | ||
=== Function definition === | |||
Function is defined by an array with | Function is defined by an array (0 indexed array) with | ||
* PHP function, can use complete Class name | * PHP function, can use complete Class name | ||
* Javascript function | * Javascript function: null for a static function (no javascript update) | ||
* Basic description for administration GUI | * Basic description for administration GUI | ||
* Usage for administration GUI | * Usage for administration GUI | ||
Line 21: | Line 23: | ||
* Number of argument , -1 mean any number of arguments. | * Number of argument , -1 mean any number of arguments. | ||
== Example == | |||
* [https://github.com/LimeSurvey/LimeSurvey/tree/master/plugins/Demo/demoAddEmFunction demoAddEmFunction] | * [https://github.com/LimeSurvey/LimeSurvey/tree/master/plugins/Demo/demoAddEmFunction demoAddEmFunction] | ||
* [https://github.com/LimeSurvey/LimeSurvey/tree/master/application/core/plugins/statFunctions statFunctions] | |||
[[Category:Plugins events]] | [[Category:Plugins events]] |
Revision as of 09:42, 22 April 2020
Hint: This features is available starting in version 4.0.0
Usage
This event is done when ExpressionScript 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 (0 indexed array) with
- PHP function, can use complete Class name
- Javascript function: null for a static function (no javascript update)
- Basic description for administration GUI
- Usage for administration GUI
- Help url
- Number of argument , -1 mean any number of arguments.