public function setupControls()
 {
     $panel = new CaptionedTabPanelControl($this, $this->id);
     $panel->setCaption($this->caption);
     $sprachen = Model\Sprache::filter(['aktiv' => 1]);
     foreach ($sprachen as $sprache) {
         $tab = $panel->tabs->addTab($sprache->sp_bezeichnung);
         if ($this->text != null) {
             $text = $this->text;
         } else {
             $text = Model\Text::get($this->element, $sprache->id);
             $text = $text->te_text;
         }
         if (!$this->WYSIWYG) {
             $input = new FormControls\InputTextboxControl(null, $this->id . '[' . $sprache->id . ']');
             $input->setValue(htmlentities($text, ENT_QUOTES, 'UTF-8'));
             $content = new DataControls\EditControl($tab, '');
             $content->addRow('angezeigter Text', $input);
         } else {
             $input = new FormControls\InputEditorControl($tab, $this->id . '_' . $sprache->id);
             $input->setName($this->id . '[' . $sprache->id . ']');
             $input->setValue($text);
         }
     }
 }
 protected function getStdEditControl($readOnly = false)
 {
     $control = new InputEditorControl(null, $this->name);
     $control->setValue($this->value)->setReadOnly($readOnly);
     if ($this->validation != '') {
         $control->addCssClass($this->validation);
     }
     return $control;
 }