protected function _createItem( array $entry )
	{
		$item = $this->_manager->createItem();

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'order.id': $item->setId( $value ); break;
				case 'order.type': $item->setType( $value ); break;
				case 'order.baseid': $item->setBaseId( $value ); break;
				case 'order.relatedid': $item->setRelatedId( $value ); break;
				case 'order.statuspayment': $item->setPaymentStatus( $value ); break;
				case 'order.statusdelivery': $item->setDeliveryStatus( $value ); break;
				case 'order.datepayment':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'order.datepayment'} = $value;
						$item->setDatePayment( $value );
					}
					break;
				case 'order.datedelivery':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'order.datedelivery'} = $value;
						$item->setDateDelivery( $value );
					}
					break;
			}
		}

		return $item;
	}
protected function _createItem( array $entry )
	{
		$item = $this->_manager->createItem();

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'order.id': $item->setId( $value ); break;
				case 'order.type': $item->setType( $value ); break;
				case 'order.baseid': $item->setBaseId( $value ); break;
				case 'order.relatedid': $item->setRelatedId( $value ); break;
				case 'order.statuspayment': $item->setPaymentStatus( $value ); break;
				case 'order.statusdelivery': $item->setDeliveryStatus( $value ); break;
				case 'order.datepayment':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'order.datepayment'} = $value;
						$item->setDatePayment( $value );
					}
					break;
				case 'order.datedelivery':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'order.datedelivery'} = $value;
						$item->setDateDelivery( $value );
					}
					break;
			}
		}

		return $item;
	}
protected function _createItem ( array $ entry ) { $ item = $ this -> _manager -> createItem ( ) ; foreach ( $ entry as $ name => $ value ) { switch ( $ name ) { case 'order.id' : $ item -> setId ( $ value ) ; break ; case 'order.type' : $ item -> setType ( $ value ) ; break ; case 'order.baseid' : $ item -> setBaseId ( $ value ) ; break ; case 'order.relatedid' : $ item -> setRelatedId ( $ value ) ; break ; case 'order.statuspayment' : $ item -> setPaymentStatus ( $ value ) ; break ; case 'order.statusdelivery' : $ item -> setDeliveryStatus ( $ value ) ; break ; case 'order.datepayment' : if ( $ value != '' ) { $ value = str_replace ( 'T' , ' ' , $ value ) ; $ entry -> { 'order.datepayment' } = $ value ; $ item -> setDatePayment ( $ value ) ; } break ; case 'order.datedelivery' : if ( $ value != '' ) { $ value = str_replace ( 'T' , ' ' , $ value ) ; $ entry -> { 'order.datedelivery' } = $ value ; $ item -> setDateDelivery ( $ value ) ; } break ; } } return $ item ; }
Creates a new order item and sets the properties from the given array.

@param array $entry Associative list of name and value properties using the "order" prefix
@return MShop_Order_Item_Interface Order item
Creates a new order item and sets the properties from the given array .