Actions

PluginsDependance: Difference between revisions

From LimeSurvey Manual

(Page create)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Dependance ==
== Dependance ==
=== Usage ===


* Activate a plugin if another plugin is activated
* Activate a plugin if another plugin is activated
* Disallow deactivation of a plugin if another plugin depend
* Disallow deactivation of a plugin if another plugin depend


=== Example ===
=== Example ===
* [https://framagit.org/SondagePro-LimeSurvey-plugin/maintenanceMode maintenanceMode] need [https://framagit.org/SondagePro-LimeSurvey-plugin/renderMessage renderMessage]
* [https://framagit.org/SondagePro-LimeSurvey-plugin/maintenanceMode maintenanceMode] need [https://framagit.org/SondagePro-LimeSurvey-plugin/renderMessage renderMessage]


== Order (use ?) ==


== Order (use ?) ==
=== Usage ===


* [[BeforeTokenEmail]] plugin can send email before another BeforeTokenEmail update body (for example) or send a email
* [[BeforeTokenEmail]] plugin can send email before another BeforeTokenEmail update body (for example) or send a email
Line 17: Line 19:
Need 2 plugin, but  
Need 2 plugin, but  
* [https://framagit.org/SondagePro-LimeSurvey-plugin/noMailToExample noMailToExample] can be disable if another plugin send the email (and here : beforeTokenEmail need a stop to disallow sending an email 2 times (plugin issue ?)
* [https://framagit.org/SondagePro-LimeSurvey-plugin/noMailToExample noMailToExample] can be disable if another plugin send the email (and here : beforeTokenEmail need a stop to disallow sending an email 2 times (plugin issue ?)
=== Remark ===
* A plugin can force to be first and broke all other BeforeTokenEmail plugin : but it's the plugin issue, not LS issue.
* A plugin can already use App()->end() in any other event and choose to be first or not


== Mantis ==
== Mantis ==

Latest revision as of 23:10, 15 February 2017

Dependance

Usage

  • Activate a plugin if another plugin is activated
  • Disallow deactivation of a plugin if another plugin depend

Example

Order (use ?)

Usage

  • BeforeTokenEmail plugin can send email before another BeforeTokenEmail update body (for example) or send a email
  • afterSurveySubmited can have same issue

Example

Need 2 plugin, but

  • noMailToExample can be disable if another plugin send the email (and here : beforeTokenEmail need a stop to disallow sending an email 2 times (plugin issue ?)

Remark

  • A plugin can force to be first and broke all other BeforeTokenEmail plugin : but it's the plugin issue, not LS issue.
  • A plugin can already use App()->end() in any other event and choose to be first or not

Mantis