3 * Smarty Internal Plugin Templateparser Parse Tree
4 * These are classes to build parse trees in the template parser
8 * @author Thue Kristensen
13 * Code fragment inside a tag .
16 * @subpackage Compiler
19 class Smarty_Internal_ParseTree_Code extends Smarty_Internal_ParseTree
22 * Create parse tree buffer for code fragment
24 * @param string $data content
26 public function __construct($data)
32 * Return buffer content in parentheses
34 * @param \Smarty_Internal_Templateparser $parser
36 * @return string content
38 public function to_smarty_php(Smarty_Internal_Templateparser $parser)
40 return sprintf("(%s)", $this->data);