protected function _getColumnIndexInSelectQuery($col)
    {
        $_columns = $this->_extractColumnsFromSelectQuery();

        $_columnIndex = false;
        foreach ($_columns as $index => $column) {
            if ($col == $column) {
                $_columnIndex = $index;
                break;
            }
        }
        return $_columnIndex;
    }
protected function _getColumnIndexInSelectQuery($col)
    {
        $_columns = $this->_extractColumnsFromSelectQuery();

        $_columnIndex = false;
        foreach ($_columns as $index => $column) {
            if ($col == $column) {
                $_columnIndex = $index;
                break;
            }
        }
        return $_columnIndex;
    }
protected function _getColumnIndexInSelectQuery ( $ col ) { $ _columns = $ this -> _extractColumnsFromSelectQuery ( ) ; $ _columnIndex = false ; foreach ( $ _columns as $ index => $ column ) { if ( $ col == $ column ) { $ _columnIndex = $ index ; break ; } } return $ _columnIndex ; }
Returns the index of selected column in the select query
@param string $col
@return integer
Returns the index of selected column in the select query