fusionpbx/resources/templates/engine/smarty/sysplugins/smarty_internal_parsetree_t...

58 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2018-11-07 08:18:14 +01:00
<?php
/**
* Smarty Internal Plugin Templateparser Parse Tree
* These are classes to build parse tree in the template parser
*
* @package Smarty
* @subpackage Compiler
* @author Thue Kristensen
* @author Uwe Tews
* *
* template text
* @package Smarty
* @subpackage Compiler
* @ignore
*/
class Smarty_Internal_ParseTree_Text extends Smarty_Internal_ParseTree
{
2023-05-08 17:50:42 +02:00
/**
* Wether this section should be stripped on output to smarty php
* @var bool
*/
private $toBeStripped = false;
2018-11-07 08:18:14 +01:00
/**
* Create template text buffer
*
* @param string $data text
2023-05-08 17:50:42 +02:00
* @param bool $toBeStripped wether this section should be stripped on output to smarty php
2018-11-07 08:18:14 +01:00
*/
2023-05-08 17:50:42 +02:00
public function __construct($data, $toBeStripped = false)
2018-11-07 08:18:14 +01:00
{
$this->data = $data;
2023-05-08 17:50:42 +02:00
$this->toBeStripped = $toBeStripped;
}
/**
* Wether this section should be stripped on output to smarty php
* @return bool
*/
public function isToBeStripped() {
return $this->toBeStripped;
2018-11-07 08:18:14 +01:00
}
/**
* Return buffer content
*
* @param \Smarty_Internal_Templateparser $parser
*
* @return string text
*/
public function to_smarty_php(Smarty_Internal_Templateparser $parser)
{
return $this->data;
}
}