[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/Form/ -> HTMLElement.php (source)

   1  <?php
   2  namespace dokuwiki\Form;
   3  
   4  /**
   5   * Class HTMLElement
   6   *
   7   * Holds arbitrary HTML that is added as is to the Form
   8   *
   9   * @package dokuwiki\Form
  10   */
  11  class HTMLElement extends ValueElement {
  12  
  13  
  14      /**
  15       * @param string $html
  16       */
  17      public function __construct($html) {
  18          parent::__construct('html', $html);
  19      }
  20  
  21      /**
  22       * The HTML representation of this element
  23       *
  24       * @return string
  25       */
  26      public function toHTML() {
  27          return $this->val();
  28      }
  29  }