Swat/SwatAccordion.php
protected function getInlineJavaScript()
    {
        $javascript = sprintf(
            "var %1\$s_obj = new %2\$s('%1\$s', %3\$s);",
            $this->id,
            $this->getJavascriptClassName(),
            $this->animate ? 'true' : 'false'
        );

        $javascript .= sprintf(
            "\n%s_obj.animate = %s;",
            $this->id,
            $this->animate ? 'true' : 'false'
        );

        $javascript .= sprintf(
            "\n%s_obj.always_open = %s;",
            $this->id,
            $this->always_open ? 'true' : 'false'
        );

        return $javascript;
    }
protected function getInlineJavaScript()
    {
        $javascript = sprintf(
            "var %1\$s_obj = new %2\$s('%1\$s', %3\$s);",
            $this->id,
            $this->getJavascriptClassName(),
            $this->animate ? 'true' : 'false'
        );

        $javascript .= sprintf(
            "\n%s_obj.animate = %s;",
            $this->id,
            $this->animate ? 'true' : 'false'
        );

        $javascript .= sprintf(
            "\n%s_obj.always_open = %s;",
            $this->id,
            $this->always_open ? 'true' : 'false'
        );

        return $javascript;
    }
protected function getInlineJavaScript ( ) { $ javascript = sprintf ( "var %1\$s_obj = new %2\$s('%1\$s', %3\$s);" , $ this -> id , $ this -> getJavascriptClassName ( ) , $ this -> animate ? 'true' : 'false' ) ; $ javascript .= sprintf ( "\n%s_obj.animate = %s;" , $ this -> id , $ this -> animate ? 'true' : 'false' ) ; $ javascript .= sprintf ( "\n%s_obj.always_open = %s;" , $ this -> id , $ this -> always_open ? 'true' : 'false' ) ; return $ javascript ; }
Gets the inline JavaScript used by this accordion view

@return string the inline JavaScript used by this accordion view.
Gets the inline JavaScript used by this accordion view