60 parent::initializeArguments();
61 $this->
registerTagAttribute(
'disabled',
'string',
'Specifies that the input element should be disabled when the page loads');
62 $this->
registerArgument(
'errorClass',
'string',
'CSS class to set if there are errors for this view helper', FALSE,
'f3-form-error');
63 $this->
overrideArgument(
'value',
'string',
'Value of input tag. Required for radio buttons', TRUE);
74 public function render($checked = NULL) {
75 $this->tag->addAttribute(
'type',
'radio');
77 $nameAttribute = $this->
getName();
87 $checked = $propertyValue == $valueAttribute;
91 $this->tag->addAttribute(
'name', $nameAttribute);
92 $this->tag->addAttribute(
'value', $valueAttribute);
94 $this->tag->addAttribute(
'checked',
'checked');
99 return $this->tag->render();
registerTagAttribute($name, $type, $description, $required=FALSE, $default=NULL)
registerArgument($name, $type, $description, $required=FALSE, $defaultValue=NULL)
overrideArgument($name, $type, $description, $required=FALSE, $defaultValue=NULL)
registerUniversalTagAttributes()