コード例 #1
0
ファイル: CheckBox.php プロジェクト: picon/picon-framework
 protected function onComponentTag(ComponentTag $tag)
 {
     parent::onComponentTag($tag);
     $this->checkComponentTag($tag, 'input');
     $this->checkComponentTagAttribute($tag, 'type', 'checkbox');
     $tag->put('value', $this->getValue());
     if ($this->isSelected($this->getValue())) {
         $tag->put('checked', 'checked');
     }
 }
コード例 #2
0
 protected function onComponentTag(ComponentTag $tag)
 {
     parent::onComponentTag($tag);
     $this->checkComponentTag($tag, 'input');
     $this->checkComponentTagAttribute($tag, 'type', 'file');
 }
コード例 #3
0
ファイル: RadioGroup.php プロジェクト: picon/picon-framework
 protected function onComponentTag(ComponentTag $tag)
 {
     parent::onComponentTag($tag);
     $tag->remove('name');
 }