Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/xnpal.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.33 by youi, Wed Feb 9 11:12:39 2005 UTC revision 1.34 by youi, Thu Feb 17 02:05:48 2005 UTC
# Line 876  result_t itemToZval( const item_t *pItem Line 876  result_t itemToZval( const item_t *pItem
876          add_assoc_string( z, "doi", ( char* )pItem -> getDOI( ), 1 );          add_assoc_string( z, "doi", ( char* )pItem -> getDOI( ), 1 );
877          add_assoc_long( z, "last_update_date", pItem -> getLastUpdateDate( ) );          add_assoc_long( z, "last_update_date", pItem -> getLastUpdateDate( ) );
878          add_assoc_long( z, "creation_date", pItem -> getCreationDate( ) );          add_assoc_long( z, "creation_date", pItem -> getCreationDate( ) );
879            add_assoc_long( z, "publication_year", pItem -> getPublicationYear( ) );
880            add_assoc_long( z, "publication_month", pItem -> getPublicationMonth( ) );
881            add_assoc_long( z, "publication_mday", pItem -> getPublicationMday( ) );
882    
883          return RES_OK;          return RES_OK;
884  }  }
# Line 955  result_t zvalToItem( zval *z, item_t* pI Line 958  result_t zvalToItem( zval *z, item_t* pI
958                  convert_to_long_ex( tmp ) ;                  convert_to_long_ex( tmp ) ;
959                  pItem -> setCreationDate( (*tmp) -> value.lval );                  pItem -> setCreationDate( (*tmp) -> value.lval );
960          }          }
961            key = "publication_year";
962            if( zend_hash_find( z -> value.ht, key, strlen( key ) + 1, ( void** )&tmp ) == SUCCESS ){
963                    convert_to_long_ex( tmp ) ;
964                    pItem -> setPublicationYear( (*tmp) -> value.lval );
965            }
966            key = "publication_month";
967            if( zend_hash_find( z -> value.ht, key, strlen( key ) + 1, ( void** )&tmp ) == SUCCESS ){
968                    convert_to_long_ex( tmp ) ;
969                    pItem -> setPublicationMonth( (*tmp) -> value.lval );
970            }
971            key = "publication_mday";
972            if( zend_hash_find( z -> value.ht, key, strlen( key ) + 1, ( void** )&tmp ) == SUCCESS ){
973                    convert_to_long_ex( tmp ) ;
974                    pItem -> setPublicationMday( (*tmp) -> value.lval );
975            }
976          return RES_OK;          return RES_OK;
977  }  }
978    

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26