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

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