protected function initializeBundleOptionValue(array $attr)
    {

        // load and map the parent option ID
        $parentId = $this->mapSku($this->getValue(ColumnKeys::BUNDLE_PARENT_SKU));

        // load the parent ID, the name and the store ID
        $name = $this->getValue(ColumnKeys::BUNDLE_VALUE_NAME);
        $storeId = $this->getRowStoreId(StoreViewCodes::ADMIN);

        // try to load the bundle option value with the passed name/store/parent ID
        if ($this->loadBundleOptionValue($name, $storeId, $parentId)) {
            return;
        }

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

        // load and map the parent option ID
        $parentId = $this->mapSku($this->getValue(ColumnKeys::BUNDLE_PARENT_SKU));

        // load the parent ID, the name and the store ID
        $name = $this->getValue(ColumnKeys::BUNDLE_VALUE_NAME);
        $storeId = $this->getRowStoreId(StoreViewCodes::ADMIN);

        // try to load the bundle option value with the passed name/store/parent ID
        if ($this->loadBundleOptionValue($name, $storeId, $parentId)) {
            return;
        }

        // simply return the attributes
        return $attr;
    }
protected function initializeBundleOptionValue ( array $ attr ) { // load and map the parent option ID $ parentId = $ this -> mapSku ( $ this -> getValue ( ColumnKeys :: BUNDLE_PARENT_SKU ) ) ; // load the parent ID, the name and the store ID $ name = $ this -> getValue ( ColumnKeys :: BUNDLE_VALUE_NAME ) ; $ storeId = $ this -> getRowStoreId ( StoreViewCodes :: ADMIN ) ; // try to load the bundle option value with the passed name/store/parent ID if ( $ this -> loadBundleOptionValue ( $ name , $ storeId , $ parentId ) ) { return ; } // simply return the attributes return $ attr ; }
Initialize the bundle option value with the passed attributes and returns an instance.

@param array $attr The bundle option value attributes

@return array|null The initialized bundle option value, or NULL if the option value already exists
Initialize the bundle option value with the passed attributes and returns an instance .