Swat/SwatRating.php
protected function getInlineJavaScript()
    {
        $quoted_string = SwatString::quoteJavaScriptString($this->id);
        return sprintf(
            'var %s_obj = new SwatRating(%s, %s);',
            $this->id,
            $quoted_string,
            intval($this->maximum_value)
        );
    }
protected function getInlineJavaScript()
    {
        $quoted_string = SwatString::quoteJavaScriptString($this->id);
        return sprintf(
            'var %s_obj = new SwatRating(%s, %s);',
            $this->id,
            $quoted_string,
            intval($this->maximum_value)
        );
    }
protected function getInlineJavaScript ( ) { $ quoted_string = SwatString :: quoteJavaScriptString ( $ this -> id ) ; return sprintf ( 'var %s_obj = new SwatRating(%s, %s);' , $ this -> id , $ quoted_string , intval ( $ this -> maximum_value ) ) ; }
Gets the inline JavaScript for this rating control

@return string the inline JavaScript required for this rating control.
Gets the inline JavaScript for this rating control