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

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'product.id': $item->setId( $value ); break;
				case 'product.code': $item->setCode( $value ); break;
				case 'product.label': $item->setLabel( $value ); break;
				case 'product.typeid': $item->setTypeId( $value ); break;
				case 'product.status': $item->setStatus( $value ); break;
				case 'product.suppliercode': $item->setSupplierCode( $value ); break;
				case 'product.datestart':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'product.datestart'} = $value;
						$item->setDateStart( $value );
					}
					break;
				case 'product.dateend':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'product.dateend'} = $value;
						$item->setDateEnd( $value );
					}
					break;
			}
		}

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

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'product.id': $item->setId( $value ); break;
				case 'product.code': $item->setCode( $value ); break;
				case 'product.label': $item->setLabel( $value ); break;
				case 'product.typeid': $item->setTypeId( $value ); break;
				case 'product.status': $item->setStatus( $value ); break;
				case 'product.suppliercode': $item->setSupplierCode( $value ); break;
				case 'product.datestart':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'product.datestart'} = $value;
						$item->setDateStart( $value );
					}
					break;
				case 'product.dateend':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'product.dateend'} = $value;
						$item->setDateEnd( $value );
					}
					break;
			}
		}

		return $item;
	}
protected function _createItem ( array $ entry ) { $ item = $ this -> _manager -> createItem ( ) ; foreach ( $ entry as $ name => $ value ) { switch ( $ name ) { case 'product.id' : $ item -> setId ( $ value ) ; break ; case 'product.code' : $ item -> setCode ( $ value ) ; break ; case 'product.label' : $ item -> setLabel ( $ value ) ; break ; case 'product.typeid' : $ item -> setTypeId ( $ value ) ; break ; case 'product.status' : $ item -> setStatus ( $ value ) ; break ; case 'product.suppliercode' : $ item -> setSupplierCode ( $ value ) ; break ; case 'product.datestart' : if ( $ value != '' ) { $ value = str_replace ( 'T' , ' ' , $ value ) ; $ entry -> { 'product.datestart' } = $ value ; $ item -> setDateStart ( $ value ) ; } break ; case 'product.dateend' : if ( $ value != '' ) { $ value = str_replace ( 'T' , ' ' , $ value ) ; $ entry -> { 'product.dateend' } = $ value ; $ item -> setDateEnd ( $ value ) ; } break ; } } return $ item ; }
Creates a new product item and sets the properties from the given array.

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