Skip to content

Commit

Permalink
Smiley Latex renderer :)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@192939 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
bertrand Gugger committed Aug 10, 2005
1 parent 3a757bf commit e0199e6
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Text/Wiki/Render/Latex/Smiley.php
@@ -0,0 +1,44 @@
<?php
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
/**
* Smiley rule Latex renderer
*
* PHP versions 4 and 5
*
* @category Text
* @package Text_Wiki
* @author Bertrand Gugger <bertrand@toggg.com>
* @copyright 2005 bertrand Gugger
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @version CVS: $Id$
* @link http://pear.php.net/package/Text_Wiki
*/

/**
* Smiley rule Latex render class
*
* @category Text
* @package Text_Wiki
* @author Bertrand Gugger <bertrand@toggg.com>
* @copyright 2005 bertrand Gugger
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @version Release: @package_version@
* @link http://pear.php.net/package/Text_Wiki
* @see Text_Wiki::Text_Wiki_Render()
*/
class Text_Wiki_Render_Latex_Smiley extends Text_Wiki_Render {

/**
* Renders a token into text matching the requested format.
* process the Mileys
*
* @access public
* @param array $options The "options" portion of the token (second element).
* @return string The text rendered from the token options.
*/
function token($options)
{
return $options['symbol'];
}
}
?>

0 comments on commit e0199e6

Please sign in to comment.