xref: /plugin/struct/types/Page.php (revision 2987727967455b4335cb8dba900196317113c849)
1<?php
2namespace plugin\struct\types;
3
4use dokuwiki\Form\Form;
5
6/**
7 * Class Page
8 *
9 * Represents a single page in the wiki. Will be linked in output.
10 *
11 * @package plugin\struct\types
12 */
13class Page extends AbstractBaseType {
14
15    // FIXME we will probably want to have some prefix/postfix configuration here later
16    protected $config = array(
17    );
18
19    /**
20     * Output the stored data
21     *
22     * @param string|int $value the value stored in the database
23     * @param \Doku_Renderer $R the renderer currently used to render the data
24     * @param string $mode The mode the output is rendered in (eg. XHTML)
25     * @return bool true if $mode could be satisfied
26     */
27    public function renderValue($value, \Doku_Renderer $R, $mode) {
28        $R->internallink(":$value");
29        return true;
30    }
31
32}
33