Swat/SwatTableView.php
protected function validateColumn(SwatTableViewColumn $column)
    {
        // note: This works because the id property is set before children are
        // added to parents in SwatUI.
        if ($column->id !== null) {
            if (array_key_exists($column->id, $this->columns_by_id)) {
                throw new SwatDuplicateIdException(
                    "A column with the id '{$column->id}' already exists " .
                        'in this table view.',
                    0,
                    $column->id
                );
            }
        }
    }
protected function validateColumn(SwatTableViewColumn $column)
    {
        // note: This works because the id property is set before children are
        // added to parents in SwatUI.
        if ($column->id !== null) {
            if (array_key_exists($column->id, $this->columns_by_id)) {
                throw new SwatDuplicateIdException(
                    "A column with the id '{$column->id}' already exists " .
                        'in this table view.',
                    0,
                    $column->id
                );
            }
        }
    }
protected function validateColumn ( SwatTableViewColumn $ column ) { // note: This works because the id property is set before children are // added to parents in SwatUI. if ( $ column -> id !== null ) { if ( array_key_exists ( $ column -> id , $ this -> columns_by_id ) ) { throw new SwatDuplicateIdException ( "A column with the id '{$column->id}' already exists " . 'in this table view.' , 0 , $ column -> id ) ; } } }
Ensures a column added to this table-view is valid for this table-view

@param SwatTableViewColumn $column the column to check.

@throws SwatDuplicateIdException if the column has the same id as a
column already in this table-view.
Ensures a column added to this table - view is valid for this table - view