includes/wikiengine/Render/Plain/Smiley.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  * Smiley rule Plain renderer
       
     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: Smiley.php,v 1.2 2005/08/10 11:42:08 toggg Exp $
       
    14  * @link       http://pear.php.net/package/Text_Wiki
       
    15  */
       
    16 
       
    17 /**
       
    18  * Smiley rule Plain render class
       
    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  * @see        Text_Wiki::Text_Wiki_Render()
       
    28  */
       
    29 class Text_Wiki_Render_Plain_Smiley extends Text_Wiki_Render {
       
    30 
       
    31     /**
       
    32       * Renders a token into text matching the requested format.
       
    33       * process the Smileys
       
    34       *
       
    35       * @access public
       
    36       * @param array $options The "options" portion of the token (second element).
       
    37       * @return string The text rendered from the token options.
       
    38       */
       
    39     function token($options)
       
    40     {
       
    41         return $options['symbol'];
       
    42     }
       
    43 }
       
    44 ?>