loadDefaultDecoratorsIsDisabled()) { return; } $decorators = $this->getDecorators(); if (empty($decorators)) { $this->addDecorator('MultiText') ->addDecorator('Errors') ->addDecorator('Description', array('tag' => 'p', 'class' => 'description')) ->addDecorator('HtmlTag', array('tag' => 'dd', 'id' => $this->getName() . '-element')) ->addDecorator('Label', [ 'tag' => 'dt', 'disableFor' => true, ]); } } public function getClass() { $class = $this->getAttrib('class'); if (empty($class)) { return 'multitext'; } return $class; } public function setAddText($text) { $this->_addText = $text; return $this; } public function getAddText() { return $this->_addText; } public function setDeleteText($text) { $this->_deleteText = $text; return $this; } public function getDeleteText() { return $this->_deleteText; } public function getItemName() { return $this->_itemName; } public function setItemName($name) { $this->_itemName = $name; return $this; } public function getNumeringFormat() { return $this->_numeringFormat; } public function setNumeringFormat($format) { $this->_numeringFormat = $format; return $this; } public function isNumering() { return $this->_isNumbering; } public function setIsNumering($flag) { $this->_isNumbering = (bool) $flag; return $this; } public function hasAddLink() { return $this->_hasAddLink; } public function setHasAddLink($flag) { $this->_hasAddLink = (bool) $flag; return $this; } public function getItemsCount() { return $this->_itemsCount; } public function setItemsCount($value) { $this->_itemsCount = $value; return $this; } public function setSortable($flag = true) { $this->_sortable = (bool) $flag; } public function isSortable() { return $this->_sortable; } }