public function radioButtonGroup($model, $attribute, $options = array()) {
		
		$this->initOptions($options);
		$widgetOptions = $options['widgetOptions']['htmlOptions'];
		
		self::addCssClass($options['labelOptions'], 'radio');
		if( $this->type == self::TYPE_INLINE || (isset($options['inline']) && $options['inline']) )
			self::addCssClass($options['labelOptions'], 'radio-inline');
		
		$field = $this->radioButton($model, $attribute, $widgetOptions);
		if ((!array_key_exists('uncheckValue', $widgetOptions) || isset($widgetOptions['uncheckValue']))
			&& preg_match('/\<input.*?type="hidden".*?\>/', $field, $matches)
		) {
			$hiddenField = $matches[0];
			$field = str_replace($hiddenField, '', $field);
		}

		$realAttribute = $attribute;
		CHtml::resolveName($model, $realAttribute);

		ob_start();
		if (isset($hiddenField)) echo $hiddenField;
		echo CHtml::tag('label', $options['labelOptions'], false, false);
		echo $field;
		if (isset($options['label'])) {
			if ($options['label'])
				echo $options['label'];
		} else
			echo $model->getAttributeLabel($realAttribute);
		echo CHtml::closeTag('label');
		$fieldData = ob_get_clean();

		$widgetOptions['label'] = '';

		return $this->customFieldGroupInternal($fieldData, $model, $attribute, $options);
	}
public function radioButtonGroup($model, $attribute, $options = array()) {
		
		$this->initOptions($options);
		$widgetOptions = $options['widgetOptions']['htmlOptions'];
		
		self::addCssClass($options['labelOptions'], 'radio');
		if( $this->type == self::TYPE_INLINE || (isset($options['inline']) && $options['inline']) )
			self::addCssClass($options['labelOptions'], 'radio-inline');
		
		$field = $this->radioButton($model, $attribute, $widgetOptions);
		if ((!array_key_exists('uncheckValue', $widgetOptions) || isset($widgetOptions['uncheckValue']))
			&& preg_match('/\<input.*?type="hidden".*?\>/', $field, $matches)
		) {
			$hiddenField = $matches[0];
			$field = str_replace($hiddenField, '', $field);
		}

		$realAttribute = $attribute;
		CHtml::resolveName($model, $realAttribute);

		ob_start();
		if (isset($hiddenField)) echo $hiddenField;
		echo CHtml::tag('label', $options['labelOptions'], false, false);
		echo $field;
		if (isset($options['label'])) {
			if ($options['label'])
				echo $options['label'];
		} else
			echo $model->getAttributeLabel($realAttribute);
		echo CHtml::closeTag('label');
		$fieldData = ob_get_clean();

		$widgetOptions['label'] = '';

		return $this->customFieldGroupInternal($fieldData, $model, $attribute, $options);
	}
public function radioButtonGroup ( $ model , $ attribute , $ options = array ( ) ) { $ this -> initOptions ( $ options ) ; $ widgetOptions = $ options [ 'widgetOptions' ] [ 'htmlOptions' ] ; self :: addCssClass ( $ options [ 'labelOptions' ] , 'radio' ) ; if ( $ this -> type == self :: TYPE_INLINE || ( isset ( $ options [ 'inline' ] ) && $ options [ 'inline' ] ) ) self :: addCssClass ( $ options [ 'labelOptions' ] , 'radio-inline' ) ; $ field = $ this -> radioButton ( $ model , $ attribute , $ widgetOptions ) ; if ( ( ! array_key_exists ( 'uncheckValue' , $ widgetOptions ) || isset ( $ widgetOptions [ 'uncheckValue' ] ) ) && preg_match ( '/\<input.*?type="hidden".*?\>/' , $ field , $ matches ) ) { $ hiddenField = $ matches [ 0 ] ; $ field = str_replace ( $ hiddenField , '' , $ field ) ; } $ realAttribute = $ attribute ; CHtml :: resolveName ( $ model , $ realAttribute ) ; ob_start ( ) ; if ( isset ( $ hiddenField ) ) echo $ hiddenField ; echo CHtml :: tag ( 'label' , $ options [ 'labelOptions' ] , false , false ) ; echo $ field ; if ( isset ( $ options [ 'label' ] ) ) { if ( $ options [ 'label' ] ) echo $ options [ 'label' ] ; } else echo $ model -> getAttributeLabel ( $ realAttribute ) ; echo CHtml :: closeTag ( 'label' ) ; $ fieldData = ob_get_clean ( ) ; $ widgetOptions [ 'label' ] = '' ; return $ this -> customFieldGroupInternal ( $ fieldData , $ model , $ attribute , $ options ) ; }
Generates a radio button group for a model attribute.

This method is a wrapper for {@link CActiveForm::radioButton} and {@link customFieldGroup}.
Please check {@link CActiveForm::radioButton} for detailed information about $htmlOptions argument.
About $options argument parameters see {@link TbActiveForm} documentation.

@param CModel $model The data model.
@param string $attribute The attribute.
@param array $options Group attributes.
@return string The generated radio button group.
@see CActiveForm::radioButton
@see customFieldGroup
Generates a radio button group for a model attribute .