protected function _addRefItems( array $entry, $id )
	{
		if( isset( $entry['stock'] ) ) {
			$this->_addProductStock( $id, $entry['stock'] );
		}

		if( isset( $entry['attribute'] ) ) {
			$this->_addAttributes( $id, $entry['attribute'], 'product' );
		}

		if( isset( $entry['media'] ) ) {
			$this->_addMedia( $id, $entry['media'], 'product' );
		}

		if( isset( $entry['price'] ) ) {
			$this->_addPrices( $id, $entry['price'], 'product' );
		}

		if( isset( $entry['text'] ) ) {
			$this->_addTexts( $id, $entry['text'], 'product' );
		}

		if( isset( $entry['product'] ) ) {
			$this->_addProducts( $id, $entry['product'], 'product' );
		}
	}
protected function _addRefItems( array $entry, $id )
	{
		if( isset( $entry['stock'] ) ) {
			$this->_addProductStock( $id, $entry['stock'] );
		}

		if( isset( $entry['attribute'] ) ) {
			$this->_addAttributes( $id, $entry['attribute'], 'product' );
		}

		if( isset( $entry['media'] ) ) {
			$this->_addMedia( $id, $entry['media'], 'product' );
		}

		if( isset( $entry['price'] ) ) {
			$this->_addPrices( $id, $entry['price'], 'product' );
		}

		if( isset( $entry['text'] ) ) {
			$this->_addTexts( $id, $entry['text'], 'product' );
		}

		if( isset( $entry['product'] ) ) {
			$this->_addProducts( $id, $entry['product'], 'product' );
		}
	}
protected function _addRefItems ( array $ entry , $ id ) { if ( isset ( $ entry [ 'stock' ] ) ) { $ this -> _addProductStock ( $ id , $ entry [ 'stock' ] ) ; } if ( isset ( $ entry [ 'attribute' ] ) ) { $ this -> _addAttributes ( $ id , $ entry [ 'attribute' ] , 'product' ) ; } if ( isset ( $ entry [ 'media' ] ) ) { $ this -> _addMedia ( $ id , $ entry [ 'media' ] , 'product' ) ; } if ( isset ( $ entry [ 'price' ] ) ) { $ this -> _addPrices ( $ id , $ entry [ 'price' ] , 'product' ) ; } if ( isset ( $ entry [ 'text' ] ) ) { $ this -> _addTexts ( $ id , $ entry [ 'text' ] , 'product' ) ; } if ( isset ( $ entry [ 'product' ] ) ) { $ this -> _addProducts ( $ id , $ entry [ 'product' ] , 'product' ) ; } }
Adds the referenced items from the given entry data.

@param array $entry Associative list of data with stock, attribute, media, price, text and product sections
@param string $id Parent ID for inserting the items
Adds the referenced items from the given entry data .