Hooks system: Difference between revisions

Tag: 2017 source edit
Tag: 2017 source edit
Line 10: Line 10:
{{TemplateDocDevEn}}
{{TemplateDocDevEn}}


=Introduction=
=Einführung=
Hooks sind eine Funktion für Entwickler, mit der sie benutzerdefinierten Code zu den Standardseiten von Dolibarr hinzufügen können, ohne die Kerndateien von Dolibarr ändern zu müssen. Im Gegensatz zum Trigger-System (eine andere Möglichkeit, mit dem Code von Dolibarr zu interagieren), das an Ereignisse in Dolibarr gebunden ist, können Hooks überall und jederzeit ausgeführt werden, wenn sie im Kern von Dolibarr vorgesehen sind. Sie sind Einfügungsstellen im Programm.
 
Hooks sind abhängig von einem Kontext aktiv oder nicht (häufig ein Kontext pro Modul: zum Beispiel „productcard“ für Produkte, „invoicecard“ für Rechnungen...). Um vorhandene Hooks zu finden, suchen Sie nach " initHooks( "
 
Every business always requires something "extra" or different to the Dolibarr core functionality.
Every business always requires something "extra" or different to the Dolibarr core functionality.
While all improvements and extensions to the Dolibarr code should be contributed back via Github to be included in a future version, some modifications will be too specific to be of interest to all.
While all improvements and extensions to the Dolibarr code should be contributed back via Github to be included in a future version, some modifications will be too specific to be of interest to all.
265

edits