public function resolveOriginalColumnName($columnName)
    {

        // try to load the original data
        $originalData = $this->getOriginalData();

        // query whether or not original data is available
        if (isset($originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES])) {
            // query whether or not the original column name is available
            if (isset($originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES][$columnName])) {
                return $originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES][$columnName];
            }

            // query whether or a wildcard column name is available
            if (isset($originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES]['*'])) {
                return $originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES]['*'];
            }
        }

        // return the original column name
        return $columnName;
    }
public function resolveOriginalColumnName($columnName)
    {

        // try to load the original data
        $originalData = $this->getOriginalData();

        // query whether or not original data is available
        if (isset($originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES])) {
            // query whether or not the original column name is available
            if (isset($originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES][$columnName])) {
                return $originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES][$columnName];
            }

            // query whether or a wildcard column name is available
            if (isset($originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES]['*'])) {
                return $originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES]['*'];
            }
        }

        // return the original column name
        return $columnName;
    }
public function resolveOriginalColumnName ( $ columnName ) { // try to load the original data $ originalData = $ this -> getOriginalData ( ) ; // query whether or not original data is available if ( isset ( $ originalData [ ColumnKeys :: ORIGINAL_COLUMN_NAMES ] ) ) { // query whether or not the original column name is available if ( isset ( $ originalData [ ColumnKeys :: ORIGINAL_COLUMN_NAMES ] [ $ columnName ] ) ) { return $ originalData [ ColumnKeys :: ORIGINAL_COLUMN_NAMES ] [ $ columnName ] ; } // query whether or a wildcard column name is available if ( isset ( $ originalData [ ColumnKeys :: ORIGINAL_COLUMN_NAMES ] [ '*' ] ) ) { return $ originalData [ ColumnKeys :: ORIGINAL_COLUMN_NAMES ] [ '*' ] ; } } // return the original column name return $ columnName ; }
Resolve the original column name for the passed one.

@param string $columnName The column name that has to be resolved

@return string|null The original column name
Resolve the original column name for the passed one .