/** * @copydoc DBDataSet::build * @note It includes translations and information about tabs. */ public function build() { switch ($this->getState()) { case 'attachments': return $this->attachmentEditor->build(); break; case 'tags': return $this->tagEditor->build(); break; case 'lookup': return $this->lookupEditor->build(); break; default: // do nothing } if ($this->getType() == self::COMPONENT_TYPE_LIST) { $this->addTranslation('MSG_CONFIRM_DELETE'); } $result = parent::build(); if (!empty($this->filter_control)) { if ($f = $this->filter_control->build()) { $result->documentElement->appendChild($result->importNode($f, true)); } } return $result; }