Пример #1
0
    function toHtml() {
        $textarea = parent::toHtml();

        return $this->{
            $this->wikiformat."Editor"}
            ($textarea);
    }
 /**
  * Returns HTML for this form element.
  */
 public function toHtml()
 {
     global $PAGE;
     $jsargs = array($this->getButtonId(), $this->getTextareaId());
     $PAGE->requires->js_init_call('M.poasquestion_text_and_button.set_handler', $jsargs, true, $this->jsmodule);
     return parent::toHtml() . '<a href="#" name="button_' . $this->getTextareaId() . '" id="' . $this->getButtonId() . '" title="' . $this->getTooltip() . '" style="margin-left: 5px" >' . '<img src="' . $this->linkToBtnImage . '" />' . '</a>';
 }