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

Source for file Paragraph.php

Documentation is available at Paragraph.php

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

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