예제 #1
0
 protected function onComponentTag(ComponentTag $tag)
 {
     $this->checkComponentTag($tag, 'input');
     $this->checkComponentTagAttribute($tag, 'type', $this->getTypeAttribute());
     parent::onComponentTag($tag);
     $tag->put('value', $this->getValue());
 }
예제 #2
0
 protected function onComponentTag(ComponentTag $tag)
 {
     $tag->setTagType(new XmlTagType(XmlTagType::OPEN));
     $this->checkComponentTag($tag, 'textarea');
     parent::onComponentTag($tag);
 }