1 <?php
2
3 /**
4 * class implements storage of raw html(string) as rex_form object.
5 *
6 * @package redaxo\core\form
7 */
8 class rex_form_raw_element extends rex_form_element
9 {
10 private $html;
11
12 public function __construct($html = '', rex_form_base $table = null)
13 {
14 $this->html = $html;
15
16 parent::__construct('', $table);
17 }
18
19 public function formatElement()
20 {
21 return $this->html;
22 }
23
24 public function get()
25 {
26 return $this->html;
27 }
28 }
29