protected function initializeProductSuperAttributeLabel(array $attr)
    {

        // load product super attribute/store ID
        $storeId = $attr[MemberNames::STORE_ID];
        $productSuperAttributeId = $attr[MemberNames::PRODUCT_SUPER_ATTRIBUTE_ID];

        // query whether or not, the product super attribute label already exists
        if ($entity = $this->loadProductSuperAttributeLabel($productSuperAttributeId, $storeId)) {
            return $this->mergeEntity($entity, $attr);
        }

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

        // load product super attribute/store ID
        $storeId = $attr[MemberNames::STORE_ID];
        $productSuperAttributeId = $attr[MemberNames::PRODUCT_SUPER_ATTRIBUTE_ID];

        // query whether or not, the product super attribute label already exists
        if ($entity = $this->loadProductSuperAttributeLabel($productSuperAttributeId, $storeId)) {
            return $this->mergeEntity($entity, $attr);
        }

        // simply return the attributes
        return $attr;
    }
protected function initializeProductSuperAttributeLabel ( array $ attr ) { // load product super attribute/store ID $ storeId = $ attr [ MemberNames :: STORE_ID ] ; $ productSuperAttributeId = $ attr [ MemberNames :: PRODUCT_SUPER_ATTRIBUTE_ID ] ; // query whether or not, the product super attribute label already exists if ( $ entity = $ this -> loadProductSuperAttributeLabel ( $ productSuperAttributeId , $ storeId ) ) { return $ this -> mergeEntity ( $ entity , $ attr ) ; } // simply return the attributes return $ attr ; }
Initialize the product super attribute label with the passed attributes and returns an instance.

@param array $attr The product super attribute label attributes

@return array The initialized product super attribute label
Initialize the product super attribute label with the passed attributes and returns an instance .