DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:tab

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
plugin:tab [2014-03-20 17:50] Aleksandrplugin:tab [2018-02-06 16:29] Juergen_aus_Zuendorf
Line 6: Line 6:
 email      : timskoch@hotmail.com email      : timskoch@hotmail.com
 type       : syntax type       : syntax
-lastupdate : 2006-08-16+lastupdate : 2018-02-06
 compatible : compatible :
 depends    : depends    :
Line 102: Line 102:
      * Handle the match      * Handle the match
      */      */
-    function handle($match, $state, $pos, &$handler){+    function handle($match, $state, $pos, Doku_Handler $handler){
         switch ($state) {         switch ($state) {
           case DOKU_LEXER_ENTER :            case DOKU_LEXER_ENTER : 
Line 121: Line 121:
      * Create output      * Create output
      */      */
-    function render($mode, &$renderer, $data) {+    function render($mode, Doku_Renderer $renderer, $data) {
         if($mode == 'xhtml'){         if($mode == 'xhtml'){
             $renderer->doc .= "     ";            // ptype = 'normal'             $renderer->doc .= "     ";            // ptype = 'normal'
Line 132: Line 132:
    
 //Setup VIM: ex: et ts=4 enc=utf-8 : //Setup VIM: ex: et ts=4 enc=utf-8 :
- 
 </code> </code>
  
 +--- [[user>Juergen_aus_Zuendorf|Juergen_aus_Zuendorf]] //2018-02-06 16:27//\\
 +-> Changes for PHP7: \\ "&$handler" and "&$renderer" to "Doku_Handler $handler" and "Doku_Renderer $renderer"
 ===== Installation ===== ===== Installation =====
  
plugin/tab.txt · Last modified: 2020-05-14 22:36 by Juergen_aus_Zuendorf

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki