Swat/SwatNoteBook.php
protected function getInlineJavaScript()
    {
        switch ($this->tab_position) {
            case self::POSITION_RIGHT:
                $position = 'right';
                break;
            case self::POSITION_LEFT:
                $position = 'left';
                break;
            case self::POSITION_BOTTOM:
                $position = 'bottom';
                break;
            case self::POSITION_TOP:
            default:
                $position = 'top';
                break;
        }

        return sprintf(
            "var %s_obj = new YAHOO.widget.TabView(" .
                "'%s', {orientation: '%s'});",
            $this->id,
            $this->id,
            $position
        );
    }
protected function getInlineJavaScript()
    {
        switch ($this->tab_position) {
            case self::POSITION_RIGHT:
                $position = 'right';
                break;
            case self::POSITION_LEFT:
                $position = 'left';
                break;
            case self::POSITION_BOTTOM:
                $position = 'bottom';
                break;
            case self::POSITION_TOP:
            default:
                $position = 'top';
                break;
        }

        return sprintf(
            "var %s_obj = new YAHOO.widget.TabView(" .
                "'%s', {orientation: '%s'});",
            $this->id,
            $this->id,
            $position
        );
    }
protected function getInlineJavaScript ( ) { switch ( $ this -> tab_position ) { case self :: POSITION_RIGHT : $ position = 'right' ; break ; case self :: POSITION_LEFT : $ position = 'left' ; break ; case self :: POSITION_BOTTOM : $ position = 'bottom' ; break ; case self :: POSITION_TOP : default : $ position = 'top' ; break ; } return sprintf ( "var %s_obj = new YAHOO.widget.TabView(" . "'%s', {orientation: '%s'});" , $ this -> id , $ this -> id , $ position ) ; }
Gets the inline JavaScript used by this notebook

@return string the inline JavaScript used by this notebook.
Gets the inline JavaScript used by this notebook