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

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'media.id': $item->setId( $value ); break;
				case 'media.label': $item->setLabel( $value ); break;
				case 'media.typeid': $item->setTypeId( $value ); break;
				case 'media.domain': $item->setDomain( $value ); break;
				case 'media.status': $item->setStatus( $value ); break;
				case 'media.mimetype': $item->setMimeType( $value ); break;
				case 'media.preview': $item->setPreview( $value ); break;
				case 'media.url': $item->setUrl( $value ); break;
				case 'media.languageid':
					if( $value != null ) {
						$item->setLanguageId( $value );
					}
					break;
			}
		}

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

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'media.id': $item->setId( $value ); break;
				case 'media.label': $item->setLabel( $value ); break;
				case 'media.typeid': $item->setTypeId( $value ); break;
				case 'media.domain': $item->setDomain( $value ); break;
				case 'media.status': $item->setStatus( $value ); break;
				case 'media.mimetype': $item->setMimeType( $value ); break;
				case 'media.preview': $item->setPreview( $value ); break;
				case 'media.url': $item->setUrl( $value ); break;
				case 'media.languageid':
					if( $value != null ) {
						$item->setLanguageId( $value );
					}
					break;
			}
		}

		return $item;
	}
protected function _createItem ( array $ entry ) { $ item = $ this -> _manager -> createItem ( ) ; foreach ( $ entry as $ name => $ value ) { switch ( $ name ) { case 'media.id' : $ item -> setId ( $ value ) ; break ; case 'media.label' : $ item -> setLabel ( $ value ) ; break ; case 'media.typeid' : $ item -> setTypeId ( $ value ) ; break ; case 'media.domain' : $ item -> setDomain ( $ value ) ; break ; case 'media.status' : $ item -> setStatus ( $ value ) ; break ; case 'media.mimetype' : $ item -> setMimeType ( $ value ) ; break ; case 'media.preview' : $ item -> setPreview ( $ value ) ; break ; case 'media.url' : $ item -> setUrl ( $ value ) ; break ; case 'media.languageid' : if ( $ value != null ) { $ item -> setLanguageId ( $ value ) ; } break ; } } return $ item ; }
Creates a new media item and sets the properties from the given array.

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