3 * patTemplate Reader that reads from a string
5 * $Id: String.php 2 2007-11-03 04:59:01Z fishbone $
9 * @author Stephan Schmidt <schst@php.net>
13 * patTemplate Reader that reads from a string
15 * @package patTemplate
17 * @author Stephan Schmidt <schst@php.net>
19 class patTemplate_Reader_String extends patTemplate_Reader
22 * Read templates from a string
26 * @param string string to parse
27 * @param array options, not implemented in current versions, but future versions will allow passing of options
28 * @return array templates
30 function readTemplates( $input )
32 $this->_currentInput = $input;
34 $templates = $this->parseString( $input );