1<?php
2
3namespace dokuwiki\plugin\struct\types;
4
5use dokuwiki\plugin\struct\meta\QueryBuilder;
6use dokuwiki\plugin\struct\meta\QueryBuilderWhere;
7
8class Text extends AbstractMultiBaseType
9{
10    use TraitFilterPrefix;
11
12    protected $config = array(
13        'prefix' => '',
14        'postfix' => '',
15    );
16
17    /**
18     * Output the stored data
19     *
20     * @param string|int $value the value stored in the database
21     * @param \Doku_Renderer $R the renderer currently used to render the data
22     * @param string $mode The mode the output is rendered in (eg. XHTML)
23     * @return bool true if $mode could be satisfied
24     */
25    public function renderValue($value, \Doku_Renderer $R, $mode)
26    {
27        $R->cdata($this->config['prefix'] . $value . $this->config['postfix']);
28        return true;
29    }
30}
31