/** * {@inheritdoc} */ public function prepareAttributesCollection(AttributeCollection $collection) { parent::prepareAttributesCollection($collection); $collection->add(new Attribute('sValue', $this->value)); $collection->add(new Attribute('sComment', $this->getOption('comment'))); }
/** * {@inheritdoc} */ public function prepareAttributesCollection(AttributeCollection $collection) { parent::prepareAttributesCollection($collection); $collection->add(new Attribute('sFormName', $this->getName())); $collection->add(new Attribute('sAction', $this->getOption('action'))); $collection->add(new Attribute('sMethod', $this->getOption('method'))); $collection->add(new Attribute('sClass', $this->getOption('class'))); $collection->add(new Attribute('bEnableAjax', $this->getOption('ajax_enabled'))); $collection->add(new Attribute('iTabs', $this->getOption('tabs'), Attribute::TYPE_INTEGER)); $collection->add(new Attribute('oValues', $this->getValue(), Attribute::TYPE_ARRAY)); $collection->add(new Attribute('oErrors', $this->getError(), Attribute::TYPE_ARRAY)); $collection->remove('sName'); $collection->remove('fType'); }