Swat/SwatTableViewColumn.php
protected function displayRenderersInternal($data)
    {
        if (count($this->renderers) === 1) {
            $this->renderers->getFirst()->render();
        } else {
            $div_tag = new SwatHtmlTag('div');

            $first = true;
            foreach ($this->renderers as $renderer) {
                if (!$renderer->visible) {
                    continue;
                }

                if ($first) {
                    $first = false;
                } else {
                    echo ' ';
                }

                // get renderer class names
                $classes = array('swat-table-view-column-renderer');
                $classes = array_merge(
                    $classes,
                    $renderer->getInheritanceCSSClassNames()
                );

                $classes = array_merge(
                    $classes,
                    $renderer->getBaseCSSClassNames()
                );

                $classes = array_merge(
                    $classes,
                    $renderer->getDataSpecificCSSClassNames()
                );

                $classes = array_merge($classes, $renderer->classes);

                $div_tag->class = implode(' ', $classes);
                $div_tag->open();
                $renderer->render();
                $div_tag->close();
            }
        }
    }
protected function displayRenderersInternal($data)
    {
        if (count($this->renderers) === 1) {
            $this->renderers->getFirst()->render();
        } else {
            $div_tag = new SwatHtmlTag('div');

            $first = true;
            foreach ($this->renderers as $renderer) {
                if (!$renderer->visible) {
                    continue;
                }

                if ($first) {
                    $first = false;
                } else {
                    echo ' ';
                }

                // get renderer class names
                $classes = array('swat-table-view-column-renderer');
                $classes = array_merge(
                    $classes,
                    $renderer->getInheritanceCSSClassNames()
                );

                $classes = array_merge(
                    $classes,
                    $renderer->getBaseCSSClassNames()
                );

                $classes = array_merge(
                    $classes,
                    $renderer->getDataSpecificCSSClassNames()
                );

                $classes = array_merge($classes, $renderer->classes);

                $div_tag->class = implode(' ', $classes);
                $div_tag->open();
                $renderer->render();
                $div_tag->close();
            }
        }
    }
protected function displayRenderersInternal ( $ data ) { if ( count ( $ this -> renderers ) === 1 ) { $ this -> renderers -> getFirst ( ) -> render ( ) ; } else { $ div_tag = new SwatHtmlTag ( 'div' ) ; $ first = true ; foreach ( $ this -> renderers as $ renderer ) { if ( ! $ renderer -> visible ) { continue ; } if ( $ first ) { $ first = false ; } else { echo ' ' ; } // get renderer class names $ classes = array ( 'swat-table-view-column-renderer' ) ; $ classes = array_merge ( $ classes , $ renderer -> getInheritanceCSSClassNames ( ) ) ; $ classes = array_merge ( $ classes , $ renderer -> getBaseCSSClassNames ( ) ) ; $ classes = array_merge ( $ classes , $ renderer -> getDataSpecificCSSClassNames ( ) ) ; $ classes = array_merge ( $ classes , $ renderer -> classes ) ; $ div_tag -> class = implode ( ' ' , $ classes ) ; $ div_tag -> open ( ) ; $ renderer -> render ( ) ; $ div_tag -> close ( ) ; } } }
Renders each cell renderer in this column

If there is once cell renderer in this column, it is rendered by itself.
If there is more than one cell renderer in this column, cell renderers
are rendered in order inside separate <i>div</i> elements. Each
<i>div</i> element is separated with a breaking space character and the
div elements are displayed inline by default.

@param mixed $data the data object being used to render the cell
renderers of this field.
Renders each cell renderer in this column