mirror of
https://github.com/cosmocode/dokuwiki-plugin-struct.git
synced 2025-07-25 16:01:54 +00:00
26 lines
636 B
PHP
26 lines
636 B
PHP
<?php
|
|
|
|
namespace dokuwiki\plugin\struct\types;
|
|
|
|
class Wiki extends LongText
|
|
{
|
|
/**
|
|
* @param int|string $value
|
|
* @param \Doku_Renderer $R
|
|
* @param string $mode
|
|
* @return bool
|
|
*/
|
|
public function renderValue($value, \Doku_Renderer $R, $mode)
|
|
{
|
|
if ($mode === 'struct_csv') {
|
|
$R->doc .= $value;
|
|
return true;
|
|
}
|
|
|
|
$value = $this->config['prefix'] . $value . $this->config['postfix'];
|
|
$doc = p_render($mode, p_get_instructions($value), $info);
|
|
$R->doc .= $doc; // FIXME this probably does not work for all renderers
|
|
return true;
|
|
}
|
|
}
|