public function hasColumnAtPosition($pos, $name, $size = null, $caseInsensitive = false)
    {
        if (!isset($this->indexColumns[$pos])) {
            return false;
        }
        $test = $caseInsensitive ?
            strtolower($this->indexColumns[$pos]) != strtolower($name) :
            $this->indexColumns[$pos] != $name;
        if ($test) {
            return false;
        }
        if (null !== $size && $this->indexColumnSizes[$name] != $size) {
            return false;
        }

        return true;
    }
public function hasColumnAtPosition($pos, $name, $size = null, $caseInsensitive = false)
    {
        if (!isset($this->indexColumns[$pos])) {
            return false;
        }
        $test = $caseInsensitive ?
            strtolower($this->indexColumns[$pos]) != strtolower($name) :
            $this->indexColumns[$pos] != $name;
        if ($test) {
            return false;
        }
        if (null !== $size && $this->indexColumnSizes[$name] != $size) {
            return false;
        }

        return true;
    }
public function hasColumnAtPosition ( $ pos , $ name , $ size = null , $ caseInsensitive = false ) { if ( ! isset ( $ this -> indexColumns [ $ pos ] ) ) { return false ; } $ test = $ caseInsensitive ? strtolower ( $ this -> indexColumns [ $ pos ] ) != strtolower ( $ name ) : $ this -> indexColumns [ $ pos ] != $ name ; if ( $ test ) { return false ; } if ( null !== $ size && $ this -> indexColumnSizes [ $ name ] != $ size ) { return false ; } return true ; }
Check whether 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 the comparison is case insensitive.
False by default.

@return boolean
Check whether this index has a given column at a given position