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.     function token($options)
  16.     {
  17.         extract($options)// $type, $name
  18.         
  19.         if ($type == 'start'{
  20.             return sprintf('<a id="%s">',$name);
  21.         }
  22.         
  23.         if ($type == 'end'{
  24.             return '</a>';
  25.         }
  26.     }
  27. }
  28.  
  29. ?>

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