public function mapAttributeCodeByHeaderMapping($attributeCode)
    {

        // load the header mappings
        $headerMappings = $this->getHeaderMappings();

        // query weather or not we've a mapping, if yes, map the attribute code
        if (isset($headerMappings[$attributeCode])) {
            $attributeCode = $headerMappings[$attributeCode];
        }

        // return the (mapped) attribute code
        return $attributeCode;
    }
public function mapAttributeCodeByHeaderMapping($attributeCode)
    {

        // load the header mappings
        $headerMappings = $this->getHeaderMappings();

        // query weather or not we've a mapping, if yes, map the attribute code
        if (isset($headerMappings[$attributeCode])) {
            $attributeCode = $headerMappings[$attributeCode];
        }

        // return the (mapped) attribute code
        return $attributeCode;
    }
public function mapAttributeCodeByHeaderMapping ( $ attributeCode ) { // load the header mappings $ headerMappings = $ this -> getHeaderMappings ( ) ; // query weather or not we've a mapping, if yes, map the attribute code if ( isset ( $ headerMappings [ $ attributeCode ] ) ) { $ attributeCode = $ headerMappings [ $ attributeCode ] ; } // return the (mapped) attribute code return $ attributeCode ; }
Map the passed attribute code, if a header mapping exists and return the
mapped mapping.

@param string $attributeCode The attribute code to map

@return string The mapped attribute code, or the original one
Map the passed attribute code if a header mapping exists and return the mapped mapping .