framework/web/widgets/CStarRating.php
public function registerClientScript($id)
	{
		$jsOptions=$this->getClientOptions();
		$jsOptions=empty($jsOptions) ? '' : CJavaScript::encode($jsOptions);
		$js="jQuery('#{$id} > input').rating({$jsOptions});";
		$cs=Yii::app()->getClientScript();
		$cs->registerCoreScript('rating');
		$cs->registerScript('Yii.CStarRating#'.$id,$js);

		if($this->cssFile!==false)
			self::registerCssFile($this->cssFile);
	}
public function registerClientScript($id)
	{
		$jsOptions=$this->getClientOptions();
		$jsOptions=empty($jsOptions) ? '' : CJavaScript::encode($jsOptions);
		$js="jQuery('#{$id} > input').rating({$jsOptions});";
		$cs=Yii::app()->getClientScript();
		$cs->registerCoreScript('rating');
		$cs->registerScript('Yii.CStarRating#'.$id,$js);

		if($this->cssFile!==false)
			self::registerCssFile($this->cssFile);
	}
public function registerClientScript ( $ id ) { $ jsOptions = $ this -> getClientOptions ( ) ; $ jsOptions = empty ( $ jsOptions ) ? '' : CJavaScript :: encode ( $ jsOptions ) ; $ js = "jQuery('#{$id} > input').rating({$jsOptions});" ; $ cs = Yii :: app ( ) -> getClientScript ( ) ; $ cs -> registerCoreScript ( 'rating' ) ; $ cs -> registerScript ( 'Yii.CStarRating#' . $ id , $ js ) ; if ( $ this -> cssFile !== false ) self :: registerCssFile ( $ this -> cssFile ) ; }
Registers the necessary javascript and css scripts.
@param string $id the ID of the container
Registers the necessary javascript and css scripts .