Swat/SwatTileView.php
protected function getInlineJavaScript()
    {
        $javascript = sprintf(
            "var %s = new SwatTileView('%s');",
            $this->id,
            $this->id
        );

        if ($this->tile !== null) {
            $tile_javascript = $this->tile->getRendererInlineJavaScript();
            if ($tile_javascript != '') {
                $javascript .= $tile_javascript;
            }

            $tile_javascript = $this->tile->getInlineJavaScript();
            if ($tile_javascript != '') {
                $javascript .= "\n" . $tile_javascript;
            }
        }

        if ($this->showCheckAll()) {
            $check_all = $this->getCompositeWidget('check_all');

            $renderer = $this->getCheckboxCellRenderer();
            $javascript .= "\n" . $check_all->getInlineJavascript();

            // set the controller of the check-all widget
            $javascript .= sprintf(
                "\n%s_obj.setController(%s);",
                $check_all->id,
                $renderer->id
            );
        }

        return $javascript;
    }
protected function getInlineJavaScript()
    {
        $javascript = sprintf(
            "var %s = new SwatTileView('%s');",
            $this->id,
            $this->id
        );

        if ($this->tile !== null) {
            $tile_javascript = $this->tile->getRendererInlineJavaScript();
            if ($tile_javascript != '') {
                $javascript .= $tile_javascript;
            }

            $tile_javascript = $this->tile->getInlineJavaScript();
            if ($tile_javascript != '') {
                $javascript .= "\n" . $tile_javascript;
            }
        }

        if ($this->showCheckAll()) {
            $check_all = $this->getCompositeWidget('check_all');

            $renderer = $this->getCheckboxCellRenderer();
            $javascript .= "\n" . $check_all->getInlineJavascript();

            // set the controller of the check-all widget
            $javascript .= sprintf(
                "\n%s_obj.setController(%s);",
                $check_all->id,
                $renderer->id
            );
        }

        return $javascript;
    }
protected function getInlineJavaScript ( ) { $ javascript = sprintf ( "var %s = new SwatTileView('%s');" , $ this -> id , $ this -> id ) ; if ( $ this -> tile !== null ) { $ tile_javascript = $ this -> tile -> getRendererInlineJavaScript ( ) ; if ( $ tile_javascript != '' ) { $ javascript .= $ tile_javascript ; } $ tile_javascript = $ this -> tile -> getInlineJavaScript ( ) ; if ( $ tile_javascript != '' ) { $ javascript .= "\n" . $ tile_javascript ; } } if ( $ this -> showCheckAll ( ) ) { $ check_all = $ this -> getCompositeWidget ( 'check_all' ) ; $ renderer = $ this -> getCheckboxCellRenderer ( ) ; $ javascript .= "\n" . $ check_all -> getInlineJavascript ( ) ; // set the controller of the check-all widget $ javascript .= sprintf ( "\n%s_obj.setController(%s);" , $ check_all -> id , $ renderer -> id ) ; } return $ javascript ; }
Gets the inline JavaScript required for this tile view

@return string the inline JavaScript required for this tile view.

@see SwatTile::getInlineJavaScript()
Gets the inline JavaScript required for this tile view