Swat/SwatRadioButtonCellRenderer.php
public function getInlineJavaScript()
    {
        $view = $this->getFirstAncestor('SwatView');
        if ($view !== null) {
            $javascript = sprintf(
                "var %s = new SwatRadioButtonCellRenderer('%s', %s);",
                $this->id,
                $this->id,
                $view->id
            );
        } else {
            $javascript = '';
        }

        return $javascript;
    }
public function getInlineJavaScript()
    {
        $view = $this->getFirstAncestor('SwatView');
        if ($view !== null) {
            $javascript = sprintf(
                "var %s = new SwatRadioButtonCellRenderer('%s', %s);",
                $this->id,
                $this->id,
                $view->id
            );
        } else {
            $javascript = '';
        }

        return $javascript;
    }
public function getInlineJavaScript ( ) { $ view = $ this -> getFirstAncestor ( 'SwatView' ) ; if ( $ view !== null ) { $ javascript = sprintf ( "var %s = new SwatRadioButtonCellRenderer('%s', %s);" , $ this -> id , $ this -> id , $ view -> id ) ; } else { $ javascript = '' ; } return $ javascript ; }
Gets the inline JavaScript required by this radio button cell renderer

@return string the inline JavaScript required by this radio button cell
renderer.
Gets the inline JavaScript required by this radio button cell renderer