Page tree

Using controller in plug-ins [DraftMode]

  • Plugin_Bootstrap class must not be named "Bootstrap" but for example "Init", otherwise you get Zend Issues
  • As Example see class editor_Plugins_MatchAnalysis_Init
  • An ACL entry must be added for the controller resource: "editor_plugin_matchanalysis_name"

Localization of plug-ins

See MatchAnalysis Plug-In for reference

Hooking in plug-ins

Plug-ins reside in their own plug-in folder. They are NOT intermingled with the core code of translate5. They hook into the translate5 core code by using events thrown by the translate5 core code.

Decision helper for new features

New features can be implemented as core feature or as plug-in.

The following questions shall help in a non dogmatic manner to find the best way of implementation:

QuestionAs plug inAs core feature
Can translate5 be used without this feature?YesNo
Does only a few clients need this feature?YesNo
Does the feature provide events where other features can hook in?NoYes
Is the implementation technically clearly dividable from the core code?YesNo

 

 

More content has to be added. Until then please visit our source code repository and look for the plug-in documentation in the docs-folder of Zf_Extended.

An overview over already existing plug-ins you can find here.

  • No labels