protected function _addAttributes( MShop_Common_Item_Interface $item, MShop_Order_Item_Base_Product_Interface $product , array $properties )
	{
		$attributeList = $product->getAttributes();
		$itemProperties = $item->toArray();

		foreach( $properties as $current )
		{
			if( array_key_exists( $current, $itemProperties )
				&& ( $new = $this->_createAttribute( $product, $current, $itemProperties[$current] ) ) !== null
			) {
				$attributeList[] = $new;
			}
		}

		return $attributeList;
	}
protected function _addAttributes( MShop_Common_Item_Interface $item, MShop_Order_Item_Base_Product_Interface $product , array $properties )
	{
		$attributeList = $product->getAttributes();
		$itemProperties = $item->toArray();

		foreach( $properties as $current )
		{
			if( array_key_exists( $current, $itemProperties )
				&& ( $new = $this->_createAttribute( $product, $current, $itemProperties[$current] ) ) !== null
			) {
				$attributeList[] = $new;
			}
		}

		return $attributeList;
	}
protected function _addAttributes ( MShop_Common_Item_Interface $ item , MShop_Order_Item_Base_Product_Interface $ product , array $ properties ) { $ attributeList = $ product -> getAttributes ( ) ; $ itemProperties = $ item -> toArray ( ) ; foreach ( $ properties as $ current ) { if ( array_key_exists ( $ current , $ itemProperties ) && ( $ new = $ this -> _createAttribute ( $ product , $ current , $ itemProperties [ $ current ] ) ) !== null ) { $ attributeList [ ] = $ new ; } } return $ attributeList ; }
Adds attribute items to an array.

@param MShop_Common_Item_Interface $item Item containing the properties to be added as attributes
@param MShop_Order_Item_Base_Product_Interface $product Product containing attributes
@param Array $properties List of item properties to be converted
@return Array List of attributes
Adds attribute items to an array .