options = $options; } public function render() { $options = array(); foreach( $this->options as $k => $v ){ if( ! strlen($k) ){ $k = ' '; } $checked = ( $k == $this->value ) ? TRUE : FALSE; $this_input = $this->htmlFactory->makeInputRadio( $this->name, $v, $k, $checked ); $options[] = $this_input; } $out = $this->htmlFactory->makeListInline( $options ); if( strlen($this->label) ){ $out = $this->htmlFactory->makeLabelled( $this->label, $out, $this->htmlId() ); } return $out; } }