OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / include / lib / patTemplate / patTemplate / Reader / String.php
1 <?PHP
2 /**
3  * patTemplate Reader that reads from a string
4  *
5  * $Id: String.php 2 2007-11-03 04:59:01Z fishbone $
6  *
7  * @package             patTemplate
8  * @subpackage  Readers
9  * @author              Stephan Schmidt <schst@php.net>
10  */
11
12 /**
13  * patTemplate Reader that reads from a string
14  *
15  * @package             patTemplate
16  * @subpackage  Readers
17  * @author              Stephan Schmidt <schst@php.net>
18  */
19 class patTemplate_Reader_String extends patTemplate_Reader
20 {
21    /**
22     * Read templates from a string
23         *
24         * @final
25         * @access       public
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
29         */
30         function readTemplates( $input )
31         {
32                 $this->_currentInput = $input;
33
34                 $templates      =       $this->parseString( $input );
35                 
36                 return  $templates;
37         }
38 }
39 ?>