Text_Wiki
[ class tree: Text_Wiki ] [ index: Text_Wiki ] [ all elements ]

Source for file Anchor.php

Documentation is available at Anchor.php

  1. <?php
  2.  
  3. /**
  4. * This class renders an anchor target name in XHTML.
  5. *
  6. @author Manuel Holtgrewe <purestorm at ggnore dot net>
  7. *
  8. @author Paul M. Jones <pmjones at ciaweb dot net>
  9. *
  10. @package Text_Wiki
  11. *
  12. */
  13.  
  14. class Text_Wiki_Render_Doku_Anchor extends Text_Wiki_Render {
  15.     
  16.     function token($options)
  17.     {
  18.         extract($options)// $type, $name
  19.         
  20.         if ($options['type'== 'start'{
  21.             $css $this->formatConf(' class="%s"''css');
  22.             $format = "<html><a$css id=\"%s\"></html>";
  23.             return sprintf($format$options['name']);
  24.         }
  25.         
  26.         if ($options['type'== 'end'{
  27.             return '<html></a></html>';
  28.         }
  29.     }
  30. }
  31.  
  32. ?>

Documentation generated on Mon, 11 Mar 2019 14:12:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.