Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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']; | ||
} | ||
} | ||
?> |