@@ -34,12 +34,12 @@ public function __construct()
3434 */
3535 public function register (EventHandler $ controller )
3636 {
37- $ controller ->register_hook ('IO_WIKIPAGE_WRITE ' , 'BEFORE ' , $ this , '_handle ' );
38- $ controller ->register_hook ('HTML_SECEDIT_BUTTON ' , 'BEFORE ' , $ this , '_editbutton ' );
39- $ controller ->register_hook ('HTML_EDIT_FORMSELECTION ' , 'BEFORE ' , $ this , '_editform ' ); // deprecated
40- $ controller ->register_hook ('EDIT_FORM_ADDTEXTAREA ' , 'BEFORE ' , $ this , '_editform ' ); // replacement
41- $ controller ->register_hook ('ACTION_ACT_PREPROCESS ' , 'BEFORE ' , $ this , '_handle_edit_post ' );
42- $ controller ->register_hook ('AJAX_CALL_UNKNOWN ' , 'BEFORE ' , $ this , '_handle_ajax ' );
37+ $ controller ->register_hook ('IO_WIKIPAGE_WRITE ' , 'BEFORE ' , $ this , 'handle ' );
38+ $ controller ->register_hook ('HTML_SECEDIT_BUTTON ' , 'BEFORE ' , $ this , 'editButton ' );
39+ $ controller ->register_hook ('HTML_EDIT_FORMSELECTION ' , 'BEFORE ' , $ this , 'editForm ' ); // deprecated
40+ $ controller ->register_hook ('EDIT_FORM_ADDTEXTAREA ' , 'BEFORE ' , $ this , 'editForm ' ); // replacement
41+ $ controller ->register_hook ('ACTION_ACT_PREPROCESS ' , 'BEFORE ' , $ this , 'handleEditPost ' );
42+ $ controller ->register_hook ('AJAX_CALL_UNKNOWN ' , 'BEFORE ' , $ this , 'handleAjax ' );
4343 }
4444
4545 /**
@@ -49,12 +49,12 @@ public function register(EventHandler $controller)
4949 * @param Event $event
5050 * @param null $param
5151 */
52- public function _handle (Event $ event , $ param )
52+ public function handle (Event $ event , $ param )
5353 {
5454 $ data = $ event ->data ;
5555 if (strpos ($ data [0 ][1 ], 'dataentry ' ) !== false ) return ; // plugin seems still to be there
5656
57- $ sqlite = $ this ->dthlp ->_getDB ();
57+ $ sqlite = $ this ->dthlp ->getDB ();
5858 if (!$ sqlite ) return ;
5959 $ id = ltrim ($ data [1 ] . ': ' . $ data [2 ], ': ' );
6060
@@ -70,7 +70,7 @@ public function _handle(Event $event, $param)
7070 * @param Event $event
7171 * @param null $param
7272 */
73- public function _editbutton ($ event , $ param )
73+ public function editButton ($ event , $ param )
7474 {
7575 if ($ event ->data ['target ' ] !== 'plugin_data ' ) {
7676 return ;
@@ -83,7 +83,7 @@ public function _editbutton($event, $param)
8383 * @param Event $event
8484 * @param null $param
8585 */
86- public function _editform (Event $ event , $ param )
86+ public function editForm (Event $ event , $ param )
8787 {
8888 global $ TEXT ;
8989 if ($ event ->data ['target ' ] !== 'plugin_data ' ) {
@@ -113,7 +113,7 @@ public function _editform(Event $event, $param)
113113 /**
114114 * @param Event $event
115115 */
116- public function _handle_edit_post (Event $ event )
116+ public function handleEditPost (Event $ event )
117117 {
118118 if (!isset ($ _POST ['data_edit ' ])) {
119119 return ;
@@ -127,7 +127,7 @@ public function _handle_edit_post(Event $event)
127127 /**
128128 * @param Event $event
129129 */
130- public function _handle_ajax (Event $ event )
130+ public function handleAjax (Event $ event )
131131 {
132132 if ($ event ->data !== 'data_page ' ) {
133133 return ;
@@ -137,7 +137,7 @@ public function _handle_ajax(Event $event)
137137 $ event ->preventDefault ();
138138
139139 $ type = substr ($ _REQUEST ['aliastype ' ], 10 );
140- $ aliases = $ this ->dthlp ->_aliases ();
140+ $ aliases = $ this ->dthlp ->aliases ();
141141
142142 if (!isset ($ aliases [$ type ])) {
143143 echo 'Unknown type ' ;
0 commit comments