| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?PHP 2 /** 3 * patTemplate modifier that quotes LaTeX special chars 4 * 5 * $Id: QuoteLatex.php 10381 2008-06-01 03:35:53Z pasamio $ 6 * 7 * @package patTemplate 8 * @subpackage Modifiers 9 * @author Stephan Schmidt <schst@php.net> 10 */ 11 12 // Check to ensure this file is within the rest of the framework 13 defined('JPATH_BASE') or die(); 14 15 /** 16 * patTemplate modifier that quotes LaTeX special chars 17 * 18 * This is useful when creating PDF documents with patTemplate 19 * 20 * @package patTemplate 21 * @subpackage Modifiers 22 * @author Stephan Schmidt <schst@php.net> 23 * @link http://www.php.net/manual/en/function.strftime.php 24 */ 25 class patTemplate_Modifier_QuoteLatex extends patTemplate_Modifier 26 { 27 /** 28 * 29 * 30 */ 31 var $_chars = array( 32 '%' => '\%', 33 '&' => '\&', 34 '_' => '\_', 35 '$' => '\$' 36 ); 37 38 /** 39 * modify the value 40 * 41 * @access public 42 * @param string value 43 * @return string modified value 44 */ 45 function modify( $value, $params = array() ) 46 { 47 return strtr($value, $this->_chars); 48 } 49 } 50 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |