includes/wikiengine/Render/Plain/Preformatted.php
changeset 1 fe660c52c48f
equal deleted inserted replaced
0:902822492a68 1:fe660c52c48f
       
     1 <?php
       
     2 // vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
       
     3 /**
       
     4  * Preformatted rule end renderer for Plain
       
     5  *
       
     6  * PHP versions 4 and 5
       
     7  *
       
     8  * @category   Text
       
     9  * @package    Text_Wiki
       
    10  * @author     Bertrand Gugger <bertrand@toggg.com>
       
    11  * @copyright  2005 bertrand Gugger
       
    12  * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
       
    13  * @version    CVS: $Id: Preformatted.php,v 1.1 2005/08/15 06:15:41 toggg Exp $
       
    14  * @link       http://pear.php.net/package/Text_Wiki
       
    15  */
       
    16 
       
    17 /**
       
    18  * This class renders preformated text in Plain.
       
    19  *
       
    20  * @category   Text
       
    21  * @package    Text_Wiki
       
    22  * @author     Bertrand Gugger <bertrand@toggg.com>
       
    23  * @copyright  2005 bertrand Gugger
       
    24  * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
       
    25  * @version    Release: @package_version@
       
    26  * @link       http://pear.php.net/package/Text_Wiki
       
    27  */
       
    28 class Text_Wiki_Render_Plain_Preformatted extends Text_Wiki_Render {
       
    29 
       
    30     /**
       
    31     *
       
    32     * Renders a token into text matching the requested format.
       
    33     *
       
    34     * @access public
       
    35     *
       
    36     * @param array $options The "options" portion of the token (second
       
    37     * element).
       
    38     *
       
    39     * @return string The text rendered from the token options.
       
    40     *
       
    41     */
       
    42 
       
    43     function token($options)
       
    44     {
       
    45         return $options['text'];
       
    46     }
       
    47 }
       
    48 ?>