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

		foreach( (array) $entry as $name => $value )
		{
			switch( $name )
			{
				case 'catalog.list.id': $item->setId( $value ); break;
				case 'catalog.list.domain': $item->setDomain( $value ); break;
				case 'catalog.list.parentid': $item->setParentId( $value ); break;
				case 'catalog.list.position': $item->setPosition( $value ); break;
				case 'catalog.list.config': $item->setConfig( (array) $value ); break;
				case 'catalog.list.status': $item->setStatus( $value ); break;
				case 'catalog.list.typeid': $item->setTypeId( $value ); break;
				case 'catalog.list.refid': $item->setRefId( $value ); break;
				case 'catalog.list.datestart':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'catalog.list.datestart'} = $value;
						$item->setDateStart( $value );
					}
					break;
				case 'catalog.list.dateend':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'catalog.list.dateend'} = $value;
						$item->setDateEnd( $value );
					}
					break;
			}
		}

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

		foreach( (array) $entry as $name => $value )
		{
			switch( $name )
			{
				case 'catalog.list.id': $item->setId( $value ); break;
				case 'catalog.list.domain': $item->setDomain( $value ); break;
				case 'catalog.list.parentid': $item->setParentId( $value ); break;
				case 'catalog.list.position': $item->setPosition( $value ); break;
				case 'catalog.list.config': $item->setConfig( (array) $value ); break;
				case 'catalog.list.status': $item->setStatus( $value ); break;
				case 'catalog.list.typeid': $item->setTypeId( $value ); break;
				case 'catalog.list.refid': $item->setRefId( $value ); break;
				case 'catalog.list.datestart':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'catalog.list.datestart'} = $value;
						$item->setDateStart( $value );
					}
					break;
				case 'catalog.list.dateend':
					if( $value != '' )
					{
						$value = str_replace( 'T', ' ', $value );
						$entry->{'catalog.list.dateend'} = $value;
						$item->setDateEnd( $value );
					}
					break;
			}
		}

		return $item;
	}
protected function _createItem ( array $ entry ) { $ item = $ this -> _manager -> createItem ( ) ; foreach ( ( array ) $ entry as $ name => $ value ) { switch ( $ name ) { case 'catalog.list.id' : $ item -> setId ( $ value ) ; break ; case 'catalog.list.domain' : $ item -> setDomain ( $ value ) ; break ; case 'catalog.list.parentid' : $ item -> setParentId ( $ value ) ; break ; case 'catalog.list.position' : $ item -> setPosition ( $ value ) ; break ; case 'catalog.list.config' : $ item -> setConfig ( ( array ) $ value ) ; break ; case 'catalog.list.status' : $ item -> setStatus ( $ value ) ; break ; case 'catalog.list.typeid' : $ item -> setTypeId ( $ value ) ; break ; case 'catalog.list.refid' : $ item -> setRefId ( $ value ) ; break ; case 'catalog.list.datestart' : if ( $ value != '' ) { $ value = str_replace ( 'T' , ' ' , $ value ) ; $ entry -> { 'catalog.list.datestart' } = $ value ; $ item -> setDateStart ( $ value ) ; } break ; case 'catalog.list.dateend' : if ( $ value != '' ) { $ value = str_replace ( 'T' , ' ' , $ value ) ; $ entry -> { 'catalog.list.dateend' } = $ value ; $ item -> setDateEnd ( $ value ) ; } break ; } } return $ item ; }
Creates a new catalog list item and sets the properties from the given array.

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