diff --git a/library/Icinga/Form/SendCommand.php b/library/Icinga/Form/SendCommand.php index dc363de19..26f9560ce 100644 --- a/library/Icinga/Form/SendCommand.php +++ b/library/Icinga/Form/SendCommand.php @@ -97,6 +97,20 @@ class SendCommand extends Builder { return $this->getValue($id); } + + public function addTextBox($id, $label, $value = "", $readonly = false, $multiline = false) + { + $options = array('label' => $label, 'value' => $value); + if ($readonly) { + $options['readonly'] = 1; + } + $this->addElement($multiline ? "textarea" : "text", $id, $options); + } + + public function getText($id) + { + return $this->getValue($id); + } } ?> \ No newline at end of file