Swat/SwatTableViewColumn.php
protected function getCSSClassNames()
    {
        $classes = array();

        // instance specific class
        if ($this->id !== null && !$this->has_auto_id) {
            $column_class = str_replace('_', '-', $this->id);
            $classes[] = $column_class;
        }

        // base classes
        $classes = array_merge($classes, $this->getBaseCSSClassNames());

        // user-specified classes
        $classes = array_merge($classes, $this->classes);

        $first_renderer = $this->renderers->getFirst();
        if (
            $this->show_renderer_classes &&
            $first_renderer instanceof SwatCellRenderer
        ) {
            // renderer inheritance classes
            $classes = array_merge(
                $classes,
                $first_renderer->getInheritanceCSSClassNames()
            );

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

            // renderer data specific classes
            if ($this->renderers->mappingsApplied()) {
                $classes = array_merge(
                    $classes,
                    $first_renderer->getDataSpecificCSSClassNames()
                );
            }

            // renderer user-specified classes
            $classes = array_merge($classes, $first_renderer->classes);
        }

        return $classes;
    }
protected function getCSSClassNames()
    {
        $classes = array();

        // instance specific class
        if ($this->id !== null && !$this->has_auto_id) {
            $column_class = str_replace('_', '-', $this->id);
            $classes[] = $column_class;
        }

        // base classes
        $classes = array_merge($classes, $this->getBaseCSSClassNames());

        // user-specified classes
        $classes = array_merge($classes, $this->classes);

        $first_renderer = $this->renderers->getFirst();
        if (
            $this->show_renderer_classes &&
            $first_renderer instanceof SwatCellRenderer
        ) {
            // renderer inheritance classes
            $classes = array_merge(
                $classes,
                $first_renderer->getInheritanceCSSClassNames()
            );

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

            // renderer data specific classes
            if ($this->renderers->mappingsApplied()) {
                $classes = array_merge(
                    $classes,
                    $first_renderer->getDataSpecificCSSClassNames()
                );
            }

            // renderer user-specified classes
            $classes = array_merge($classes, $first_renderer->classes);
        }

        return $classes;
    }
protected function getCSSClassNames ( ) { $ classes = array ( ) ; // instance specific class if ( $ this -> id !== null && ! $ this -> has_auto_id ) { $ column_class = str_replace ( '_' , '-' , $ this -> id ) ; $ classes [ ] = $ column_class ; } // base classes $ classes = array_merge ( $ classes , $ this -> getBaseCSSClassNames ( ) ) ; // user-specified classes $ classes = array_merge ( $ classes , $ this -> classes ) ; $ first_renderer = $ this -> renderers -> getFirst ( ) ; if ( $ this -> show_renderer_classes && $ first_renderer instanceof SwatCellRenderer ) { // renderer inheritance classes $ classes = array_merge ( $ classes , $ first_renderer -> getInheritanceCSSClassNames ( ) ) ; // renderer base classes $ classes = array_merge ( $ classes , $ first_renderer -> getBaseCSSClassNames ( ) ) ; // renderer data specific classes if ( $ this -> renderers -> mappingsApplied ( ) ) { $ classes = array_merge ( $ classes , $ first_renderer -> getDataSpecificCSSClassNames ( ) ) ; } // renderer user-specified classes $ classes = array_merge ( $ classes , $ first_renderer -> classes ) ; } return $ classes ; }
Gets the array of CSS classes that are applied to this table-view column

CSS classes are added to this column in the following order:

1. a CSS class representing cells in this column's instance if this
column has an id set,
2. hard-coded CSS classes from column subclasses,
3. user-specified CSS classes on this column,

If {@link SwatTableViewColumn::$show_renderer_classes} is true, the
following extra CSS classes are added:

4. the inheritance classes of the first cell renderer in this column,
5. hard-coded CSS classes from the first cell renderer in this column,
6. hard-coded data-specific CSS classes from the first cell renderer in
this column if this column has data mappings applied,
7. user-specified CSS classes on the first cell renderer in this column.

@return array the array of CSS classes that are applied to this
table-view column.

@see SwatCellRenderer::getInheritanceCSSClassNames()
@see SwatCellRenderer::getBaseCSSClassNames()
@see SwatUIObject::getCSSClassNames()
Gets the array of CSS classes that are applied to this table - view column