DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:bureaucracy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
plugin:bureaucracy [2019-08-13 07:52]
solewniczak
plugin:bureaucracy [2019-09-02 14:47] (current)
mquadrat script mode php class name bureaucracy_handler_scriptname is deprecated, replaced with helper_plugin_bureaucracy_handler_scriptname
Line 564: Line 564:
 This action gives the data to a PHP script supplied by the administrator. The script then can do whatever it wants with the data. This action gives the data to a PHP script supplied by the administrator. The script then can do whatever it wants with the data.
  
-The script must be placed in ''​conf/​plugin/​bureaucracy/''​ directory. It must contain one class that is named ''​bureaucracy_handler_//​scriptname//''​ and implements the interface ''​[[https://​github.com/​splitbrain/​dokuwiki-plugin-bureaucracy/​blob/​master/​interfaces/​bureaucracy_handler_interface.php|dokuwiki\plugin\bureaucracy\interfaces\bureaucracy_handler_interface]]''​+The script must be placed in ''​conf/​plugin/​bureaucracy/''​ directory. It must contain one class that is named ''​helper_plugin_bureaucracy_handler_//​scriptname//''​ and implements the interface ''​[[https://​github.com/​splitbrain/​dokuwiki-plugin-bureaucracy/​blob/​master/​interfaces/​bureaucracy_handler_interface.php|dokuwiki\plugin\bureaucracy\interfaces\bureaucracy_handler_interface]]''​
  
 That means the class has to have the ''​handleData($fields,​ $thanks)''​ method with the fields and the thanks-message as parameters. It returns a thanks-message on success or ''​false''​ on error. That means the class has to have the ''​handleData($fields,​ $thanks)''​ method with the fields and the thanks-message as parameters. It returns a thanks-message on success or ''​false''​ on error.
Line 584: Line 584:
 use dokuwiki\plugin\bureaucracy\interfaces\bureaucracy_handler_interface;​ use dokuwiki\plugin\bureaucracy\interfaces\bureaucracy_handler_interface;​
  
-class bureaucracy_handler_example ​implements bureaucracy_handler_interface {+class helper_plugin_bureaucracy_handler_example ​implements bureaucracy_handler_interface {
  
     /**     /**
plugin/bureaucracy.txt ยท Last modified: 2019-09-02 14:47 by mquadrat