Swat/SwatTableView.php
public function hasMessage()
    {
        $has_message = parent::hasMessage();

        if (!$has_message && $this->model !== null) {
            foreach ($this->model as $row) {
                foreach ($this->columns as $column) {
                    if ($column->hasMessage($row)) {
                        $has_message = true;
                        break 2;
                    }
                }

                foreach ($this->spanning_columns as $column) {
                    if ($column->hasMessage($row)) {
                        $has_message = true;
                        break 2;
                    }
                }
            }
        }

        if (!$has_message) {
            foreach ($this->extra_rows as $row) {
                if ($row->hasMessage()) {
                    $has_message = true;
                    break;
                }
            }
        }

        return $has_message;
    }
public function hasMessage()
    {
        $has_message = parent::hasMessage();

        if (!$has_message && $this->model !== null) {
            foreach ($this->model as $row) {
                foreach ($this->columns as $column) {
                    if ($column->hasMessage($row)) {
                        $has_message = true;
                        break 2;
                    }
                }

                foreach ($this->spanning_columns as $column) {
                    if ($column->hasMessage($row)) {
                        $has_message = true;
                        break 2;
                    }
                }
            }
        }

        if (!$has_message) {
            foreach ($this->extra_rows as $row) {
                if ($row->hasMessage()) {
                    $has_message = true;
                    break;
                }
            }
        }

        return $has_message;
    }
public function hasMessage ( ) { $ has_message = parent :: hasMessage ( ) ; if ( ! $ has_message && $ this -> model !== null ) { foreach ( $ this -> model as $ row ) { foreach ( $ this -> columns as $ column ) { if ( $ column -> hasMessage ( $ row ) ) { $ has_message = true ; break 2 ; } } foreach ( $ this -> spanning_columns as $ column ) { if ( $ column -> hasMessage ( $ row ) ) { $ has_message = true ; break 2 ; } } } } if ( ! $ has_message ) { foreach ( $ this -> extra_rows as $ row ) { if ( $ row -> hasMessage ( ) ) { $ has_message = true ; break ; } } } return $ has_message ; }
Gets whether or not this table-view has any messages

@return boolean true if this table-view has one or more messages and
false if it does not.
Gets whether or not this table - view has any messages