File: HTMLElement.php

package info (click to toggle)
dokuwiki 0.0.20180422.a-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 29,624 kB
  • sloc: php: 175,386; sh: 665; xml: 403; perl: 216; makefile: 70
file content (29 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace dokuwiki\Form;

/**
 * Class HTMLElement
 *
 * Holds arbitrary HTML that is added as is to the Form
 *
 * @package dokuwiki\Form
 */
class HTMLElement extends ValueElement {


    /**
     * @param string $html
     */
    public function __construct($html) {
        parent::__construct('html', $html);
    }

    /**
     * The HTML representation of this element
     *
     * @return string
     */
    public function toHTML() {
        return $this->val();
    }
}