src/Subjects/AbstractSubject.php
/**
     * 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.
@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 . @param string $columnName The column name that has to be resolved @return string|null The original column name
public function resolveOriginalColumnName($columnName)
    {
        $originalData = $this->getOriginalData();
        if (isset($originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES])) {
            if (isset($originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES][$columnName])) {
                return $originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES][$columnName];
            }
            if (isset($originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES]['*'])) {
                return $originalData[ColumnKeys::ORIGINAL_COLUMN_NAMES]['*'];
            }
        }
        return $columnName;
    }
public function resolveOriginalColumnName ( $ columnName ) { $ originalData = $ this -> getOriginalData ( ) ; if ( isset ( $ originalData [ ColumnKeys :: ORIGINAL_COLUMN_NAMES ] ) ) { if ( isset ( $ originalData [ ColumnKeys :: ORIGINAL_COLUMN_NAMES ] [ $ columnName ] ) ) { return $ originalData [ ColumnKeys :: ORIGINAL_COLUMN_NAMES ] [ $ columnName ] ; } if ( isset ( $ originalData [ ColumnKeys :: ORIGINAL_COLUMN_NAMES ] [ '*' ] ) ) { return $ originalData [ ColumnKeys :: ORIGINAL_COLUMN_NAMES ] [ '*' ] ; } } return $ columnName ; }
Resolve the original column name for the passed one.
Resolve the original column name for the passed one .
// try to load the original data // query whether or not original data is available // query whether or not the original column name is available // query whether or a wildcard column name is available // return the original column name