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. * 
  5. * This class renders an anchor target name in XHTML.
  6. *
  7. * @author Manuel Holtgrewe <purestorm at ggnore dot net>
  8. *
  9. * @author Paul M. Jones <pmjones at ciaweb dot net>
  10. *
  11. * @package Text_Wiki
  12. *
  13. */
  14.  
  15.     
  16.     var $conf = array(
  17.         'css' => null
  18.     );
  19.     
  20.     function token($options)
  21.     {
  22.         extract($options); // $type, $name
  23.         
  24.         if ($type == 'start') {
  25.             $css = $this->formatConf(' class="%s"', 'css');
  26.             $format = "<a$css id=\"%s\">'";
  27.             return sprintf($format ,$name);
  28.         }
  29.         
  30.         if ($type == 'end') {
  31.             return '</a>';
  32.         }
  33.     }
  34. }
  35.  
  36. ?>

Documentation generated on Mon, 11 Mar 2019 13:56:51 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.