Files
oav/dotclear._no/inc/libs/clearbricks/template/class.tplnodetext.php
2023-03-20 12:18:38 +01:00

34 lines
584 B
PHP

<?php
/**
* @class tplNodeText
* @brief Text node, for any non-tpl content
*
* @package Clearbricks
* @subpackage Template
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/
class tplNodeText extends tplNode
{
// Simple text node, only holds its content
protected $content;
public function __construct($text)
{
parent::__construct();
$this->content = $text;
}
public function compile($tpl)
{
return $this->content;
}
public function getTag()
{
return "TEXT";
}
}