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.     
  15.     var $conf = array(
  16.         'css' => null
  17.     );
  18.     
  19.     function token($options)
  20.     {
  21.         extract($options)// $type, $name
  22.         
  23.         if ($type == 'start'{
  24.             $css $this->formatConf(' class="%s"''css');
  25.             $format = "<a$css id=\"%s\">'";
  26.             return sprintf($format ,$name);
  27.         }
  28.         
  29.         if ($type == 'end'{
  30.             return '</a>';
  31.         }
  32.     }
  33. }
  34.  
  35. ?>

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