Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

Talk:Communication Between Components: Difference between revisions

From MoodleDocs
Clarify whether subplugins can communicate
 
Damyon Wiese (talk | contribs)
No edit summary
Line 1: Line 1:
The diagram in https://docs.moodle.org/dev/Communication_Between_Components#General_rules_for_inter-component_communications seems to imply that subplugins can't communicate with each other regardless of whether they declare a dependency, which I don't think is the case. I wonder if it would be worth clarifying this by adding a third subplugin which does declare a dependency?
The diagram in https://docs.moodle.org/dev/Communication_Between_Components#General_rules_for_inter-component_communications seems to imply that subplugins can't communicate with each other regardless of whether they declare a dependency, which I don't think is the case. I wonder if it would be worth clarifying this by adding a third subplugin which does declare a dependency?
Yes sub-plugins can communicate but only if they have an explicit dependency (version.php). I went to update the diagram - but it would have made it too cluttered and less clear so I'll just add a note about it underneath.

Revision as of 01:20, 31 January 2017

The diagram in https://docs.moodle.org/dev/Communication_Between_Components#General_rules_for_inter-component_communications seems to imply that subplugins can't communicate with each other regardless of whether they declare a dependency, which I don't think is the case. I wonder if it would be worth clarifying this by adding a third subplugin which does declare a dependency?

Yes sub-plugins can communicate but only if they have an explicit dependency (version.php). I went to update the diagram - but it would have made it too cluttered and less clear so I'll just add a note about it underneath.