public function hasColumnAtPosition($pos, $name, $size = null, $caseInsensitive = false)
    {
        if (!isset($this->columns[$pos])) {
            return false;
        }

        if ($caseInsensitive) {
            $test = 0 === strcasecmp($this->columns[$pos], $name);
        } else {
            $test = $this->columns[$pos] == $name;
        }

        if (!$test) {
            return false;
        }

        if ($this->getColumnSize($name, $caseInsensitive) != $size) {
            return false;
        }

        return true;
    }
public function hasColumnAtPosition($pos, $name, $size = null, $caseInsensitive = false)
    {
        if (!isset($this->columns[$pos])) {
            return false;
        }

        if ($caseInsensitive) {
            $test = 0 === strcasecmp($this->columns[$pos], $name);
        } else {
            $test = $this->columns[$pos] == $name;
        }

        if (!$test) {
            return false;
        }

        if ($this->getColumnSize($name, $caseInsensitive) != $size) {
            return false;
        }

        return true;
    }
public function hasColumnAtPosition ( $ pos , $ name , $ size = null , $ caseInsensitive = false ) { if ( ! isset ( $ this -> columns [ $ pos ] ) ) { return false ; } if ( $ caseInsensitive ) { $ test = 0 === strcasecmp ( $ this -> columns [ $ pos ] , $ name ) ; } else { $ test = $ this -> columns [ $ pos ] == $ name ; } if ( ! $ test ) { return false ; } if ( $ this -> getColumnSize ( $ name , $ caseInsensitive ) != $ size ) { return false ; } return true ; }
Returns whether or not this index has a given column at a given position.

@param  integer $pos             Position in the column list
@param  string  $name            Column name
@param  integer $size            Optional size check
@param  boolean $caseInsensitive Whether or not the comparison is case insensitive (false by default)
@return boolean
Returns whether or not this index has a given column at a given position .