Swat/SwatTableView.php
protected function getRowClasses($row, $count)
    {
        $classes = array();

        if ($count % 2 === 1) {
            $classes[] = 'odd';
        }

        if ($count === 1) {
            $classes[] = 'first';
        }

        if ($count === count($this->model)) {
            $classes[] = 'last';
        }

        return $classes;
    }
protected function getRowClasses($row, $count)
    {
        $classes = array();

        if ($count % 2 === 1) {
            $classes[] = 'odd';
        }

        if ($count === 1) {
            $classes[] = 'first';
        }

        if ($count === count($this->model)) {
            $classes[] = 'last';
        }

        return $classes;
    }
protected function getRowClasses ( $ row , $ count ) { $ classes = array ( ) ; if ( $ count % 2 === 1 ) { $ classes [ ] = 'odd' ; } if ( $ count === 1 ) { $ classes [ ] = 'first' ; } if ( $ count === count ( $ this -> model ) ) { $ classes [ ] = 'last' ; } return $ classes ; }
Gets CSS classes for the XHTML tr tag

@param mixed $row a data object containing the data to be displayed in
this row.
@param integer $count the ordinal position of this row in the table.

@return array CSS class names.
Gets CSS classes for the XHTML tr tag