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

        // map the link type code => ID
        $linkTypeId = $this->mapLinkTypeCodeToLinkTypeId($linkTypeCode);

        // initialize the array for the link attributes
        $linkAttributes = array();

        // try to load the link attribute with the passed link type ID and attribute code
        foreach ($this->linkAttributes as $linkAttribute) {
            if ($linkAttribute[MemberNames::LINK_TYPE_ID] === $linkTypeId) {
                // return the matching link attribute
                $linkAttributes[] = $linkAttribute;
            }
        }

        // return the link attributes
        return $linkAttributes;
    }
public function getProductLinkAttributes($linkTypeCode)
    {

        // map the link type code => ID
        $linkTypeId = $this->mapLinkTypeCodeToLinkTypeId($linkTypeCode);

        // initialize the array for the link attributes
        $linkAttributes = array();

        // try to load the link attribute with the passed link type ID and attribute code
        foreach ($this->linkAttributes as $linkAttribute) {
            if ($linkAttribute[MemberNames::LINK_TYPE_ID] === $linkTypeId) {
                // return the matching link attribute
                $linkAttributes[] = $linkAttribute;
            }
        }

        // return the link attributes
        return $linkAttributes;
    }
public function getProductLinkAttributes ( $ linkTypeCode ) { // map the link type code => ID $ linkTypeId = $ this -> mapLinkTypeCodeToLinkTypeId ( $ linkTypeCode ) ; // initialize the array for the link attributes $ linkAttributes = array ( ) ; // try to load the link attribute with the passed link type ID and attribute code foreach ( $ this -> linkAttributes as $ linkAttribute ) { if ( $ linkAttribute [ MemberNames :: LINK_TYPE_ID ] === $ linkTypeId ) { // return the matching link attribute $ linkAttributes [ ] = $ linkAttribute ; } } // return the link attributes return $ linkAttributes ; }
Returns the product link attributes for the passed link type code.

@param string $linkTypeCode The link type code

@return array The product link types
Returns the product link attributes for the passed link type code .