[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/pattemplate/patTemplate/Reader/ -> String.php (source)

   1  <?PHP
   2  /**
   3   * patTemplate Reader that reads from a string
   4   *
   5   * $Id: String.php 10381 2008-06-01 03:35:53Z pasamio $
   6   *
   7   * @package        patTemplate
   8   * @subpackage    Readers
   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 Reader that reads from a string
  17   *
  18   * @package        patTemplate
  19   * @subpackage    Readers
  20   * @author        Stephan Schmidt <schst@php.net>
  21   */
  22  class patTemplate_Reader_String extends patTemplate_Reader
  23  {
  24      /**
  25      * Read templates from a string
  26      *
  27      * @final
  28      * @access    public
  29      * @param    string    string to parse
  30      * @param    array    options, not implemented in current versions, but future versions will allow passing of options
  31      * @return    array    templates
  32      */
  33  	function readTemplates( $input )
  34      {
  35          $this->_currentInput = $input;
  36  
  37          $templates    =    $this->parseString( $input );
  38  
  39          return    $templates;
  40      }
  41  }
  42  ?>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1