protected function get_row_attributes($capability) {
        $rowattributes = parent::get_row_attributes($capability);
        if ($this->permissions[$capability->name] !== 0) {
            if (empty($rowattributes['class'])) {
                $rowattributes['class'] = "overriddenpermission";
            } else {
                $rowattributes['class'] .= " overriddenpermission";
            }
        }
        return $rowattributes;
    }
protected function get_row_attributes($capability) {
        $rowattributes = parent::get_row_attributes($capability);
        if ($this->permissions[$capability->name] !== 0) {
            if (empty($rowattributes['class'])) {
                $rowattributes['class'] = "overriddenpermission";
            } else {
                $rowattributes['class'] .= " overriddenpermission";
            }
        }
        return $rowattributes;
    }
protected function get_row_attributes ( $ capability ) { $ rowattributes = parent :: get_row_attributes ( $ capability ) ; if ( $ this -> permissions [ $ capability -> name ] !== 0 ) { if ( empty ( $ rowattributes [ 'class' ] ) ) { $ rowattributes [ 'class' ] = "overriddenpermission" ; } else { $ rowattributes [ 'class' ] .= " overriddenpermission" ; } } return $ rowattributes ; }
This method adds an additional class to a row if capability is other than inherited.

@param stdClass $capability
@return array
This method adds an additional class to a row if capability is other than inherited .