loadDefaultDecoratorsIsDisabled()) { return; } $decorators = $this->getDecorators(); if (empty($decorators)) { $this->addDecorator('Fpl') ->addDecorator('Errors') ->addDecorator('Description', array('tag' => 'p', 'class' => 'description')) ->addDecorator('HtmlTag', array('tag' => 'dd', 'id' => $this->getName() . '-element')) ->addDecorator('Label', array('tag' => 'dt')); } } public function getClass() { $class = $this->getAttrib('class'); if (empty($class)) { return 'period'; } return $class; } public function getItemName() { return $this->_itemName; } public function setItemName($name) { $this->_itemName = $name; return $this; } }