src/Subjects/AbstractProductSubject.php
public function mapLinkTypeCodeToLinkTypeId($linkTypeCode)
    {

        // query weather or not the link type code has been mapped
        if (isset($this->linkTypes[$linkTypeCode])) {
            return $this->linkTypes[$linkTypeCode][MemberNames::LINK_TYPE_ID];
        }

        // throw an exception if the link type code has not been mapped yet
        throw new MapLinkTypeCodeToIdException(
            $this->appendExceptionSuffix(
                sprintf('Found not mapped link type code %s', $linkTypeCode)
            )
        );
    }
public function mapLinkTypeCodeToLinkTypeId($linkTypeCode)
    {

        // query weather or not the link type code has been mapped
        if (isset($this->linkTypes[$linkTypeCode])) {
            return $this->linkTypes[$linkTypeCode][MemberNames::LINK_TYPE_ID];
        }

        // throw an exception if the link type code has not been mapped yet
        throw new MapLinkTypeCodeToIdException(
            $this->appendExceptionSuffix(
                sprintf('Found not mapped link type code %s', $linkTypeCode)
            )
        );
    }
public function mapLinkTypeCodeToLinkTypeId ( $ linkTypeCode ) { // query weather or not the link type code has been mapped if ( isset ( $ this -> linkTypes [ $ linkTypeCode ] ) ) { return $ this -> linkTypes [ $ linkTypeCode ] [ MemberNames :: LINK_TYPE_ID ] ; } // throw an exception if the link type code has not been mapped yet throw new MapLinkTypeCodeToIdException ( $ this -> appendExceptionSuffix ( sprintf ( 'Found not mapped link type code %s' , $ linkTypeCode ) ) ) ; }
Return's the link type ID for the passed link type code.

@param string $linkTypeCode The link type code to return the link type ID for

@return integer The mapped link type ID
@throws \TechDivision\Import\Product\Exceptions\MapLinkTypeCodeToIdException Is thrown if the link type code is not mapped yet
Return s the link type ID for the passed link type code .