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

Source for file Tt.php

Documentation is available at Tt.php

  1. <?php
  2.  
  3. class Text_Wiki_Render_Xhtml_tt extends Text_Wiki_Render {
  4.     
  5.     
  6.     var $conf = array(
  7.         'css' => null
  8.     );
  9.     
  10.     /**
  11.     * 
  12.     * Renders a token into text matching the requested format.
  13.     * 
  14.     * @access public
  15.     * 
  16.     * @param array $options The "options" portion of the token (second
  17.     *  element).
  18.     * 
  19.     * @return string The text rendered from the token options.
  20.     * 
  21.     */
  22.     
  23.     function token($options)
  24.     {
  25.         if ($options['type'== 'start'{
  26.             $css $this->formatConf(' class="%s"''css');
  27.             return "<tt$css>";
  28.         }
  29.         
  30.         if ($options['type'== 'end'{
  31.             return '</tt>';
  32.         }
  33.     }
  34. }
  35. ?>

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