public function getColumn($name, $use_alias = false)
    {
        if ($use_alias) {
            foreach ($this->columns as $column) {
                if (0 === strcasecmp($name, $column->getName($use_alias))) {
                    return $column;
                }
            }
        } else {
            $key = strtolower($name);
            if (isset($this->columns[$key])) {
                return $this->columns[$key];
            }
        }

        return null;
    }
public function getColumn($name, $use_alias = false)
    {
        if ($use_alias) {
            foreach ($this->columns as $column) {
                if (0 === strcasecmp($name, $column->getName($use_alias))) {
                    return $column;
                }
            }
        } else {
            $key = strtolower($name);
            if (isset($this->columns[$key])) {
                return $this->columns[$key];
            }
        }

        return null;
    }
public function getColumn ( $ name , $ use_alias = false ) { if ( $ use_alias ) { foreach ( $ this -> columns as $ column ) { if ( 0 === strcasecmp ( $ name , $ column -> getName ( $ use_alias ) ) ) { return $ column ; } } } else { $ key = strtolower ( $ name ) ; if ( isset ( $ this -> columns [ $ key ] ) ) { return $ this -> columns [ $ key ] ; } } return null ; }
Gets the named column metadata.

@param string $name column name
@param bool   $use_alias

@return ColumnSchema metadata of the named column. Null if the named column does not exist.
Gets the named column metadata .