Swat/SwatCellRenderer.php
final public function getInheritanceCSSClassNames()
    {
        $php_class_name = get_class($this);
        $css_class_names = array();

        // get the ancestors that are swat classes
        while ($php_class_name !== 'SwatCellRenderer') {
            if (strncmp($php_class_name, 'Swat', 4) === 0) {
                $css_class_name = mb_strtolower(
                    preg_replace('/([A-Z])/u', '-\1', $php_class_name)
                );

                if (mb_substr($css_class_name, 0, 1) === '-') {
                    $css_class_name = mb_substr($css_class_name, 1);
                }

                array_unshift($css_class_names, $css_class_name);
            }
            $php_class_name = get_parent_class($php_class_name);
        }

        return $css_class_names;
    }
final public function getInheritanceCSSClassNames()
    {
        $php_class_name = get_class($this);
        $css_class_names = array();

        // get the ancestors that are swat classes
        while ($php_class_name !== 'SwatCellRenderer') {
            if (strncmp($php_class_name, 'Swat', 4) === 0) {
                $css_class_name = mb_strtolower(
                    preg_replace('/([A-Z])/u', '-\1', $php_class_name)
                );

                if (mb_substr($css_class_name, 0, 1) === '-') {
                    $css_class_name = mb_substr($css_class_name, 1);
                }

                array_unshift($css_class_names, $css_class_name);
            }
            $php_class_name = get_parent_class($php_class_name);
        }

        return $css_class_names;
    }
final public function getInheritanceCSSClassNames ( ) { $ php_class_name = get_class ( $ this ) ; $ css_class_names = array ( ) ; // get the ancestors that are swat classes while ( $ php_class_name !== 'SwatCellRenderer' ) { if ( strncmp ( $ php_class_name , 'Swat' , 4 ) === 0 ) { $ css_class_name = mb_strtolower ( preg_replace ( '/([A-Z])/u' , '-\1' , $ php_class_name ) ) ; if ( mb_substr ( $ css_class_name , 0 , 1 ) === '-' ) { $ css_class_name = mb_substr ( $ css_class_name , 1 ) ; } array_unshift ( $ css_class_names , $ css_class_name ) ; } $ php_class_name = get_parent_class ( $ php_class_name ) ; } return $ css_class_names ; }
Gets the CSS class names of this cell renderer based on the inheritance
tree for this cell renderer

For example, a class with the following ancestry:

SwatCellRenderer -> SwatTextCellRenderer -> SwatNullTextCellRenderer

will return the following array of class names:

<code>
array(
'swat-cell-renderer',
'swat-text-cell-renderer',
'swat-null-text-cell-renderer',
);
</code>

@return array the array of CSS class names based on an inheritance tree
for this cell renderer.
Gets the CSS class names of this cell renderer based on the inheritance tree for this cell renderer