[ Indice ]

Riferimento incrociato di Joomla! 1.5.14 - VM 1.1.4

Servizio fornito da VMItalia
Classe:   Funzione:   Variabile:   Costante:  
Storico Ricerche +

titolo

Corpo

[chiudi]

/libraries/pattemplate/patTemplate/Modifier/ -> QuoteLatex.php (sorgente)

   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  ?>


Generato il: Mon Oct 19 20:29:27 2009 Generato con PHPXref 0.7