protected function initializeProductSuperLink(array $attr)
    {

        // laod parent/product ID
        $parentId = $attr[MemberNames::PARENT_ID];
        $productId = $attr[MemberNames::PRODUCT_ID];

        // query whether or not the product super link already exists
        if ($this->loadProductSuperLink($productId, $parentId)) {
            return;
        }

        // simply return the attributes
        return $attr;
    }
protected function initializeProductSuperLink(array $attr)
    {

        // laod parent/product ID
        $parentId = $attr[MemberNames::PARENT_ID];
        $productId = $attr[MemberNames::PRODUCT_ID];

        // query whether or not the product super link already exists
        if ($this->loadProductSuperLink($productId, $parentId)) {
            return;
        }

        // simply return the attributes
        return $attr;
    }
protected function initializeProductSuperLink ( array $ attr ) { // laod parent/product ID $ parentId = $ attr [ MemberNames :: PARENT_ID ] ; $ productId = $ attr [ MemberNames :: PRODUCT_ID ] ; // query whether or not the product super link already exists if ( $ this -> loadProductSuperLink ( $ productId , $ parentId ) ) { return ; } // simply return the attributes return $ attr ; }
Initialize the product super link with the passed attributes and returns an instance.

@param array $attr The product super link attributes

@return array|null The initialized product super link, or null if the super link already exsist
Initialize the product super link with the passed attributes and returns an instance .