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.35 by tani, Mon Feb 21 05:45:20 2005 UTC revision 1.36 by tani, Fri Feb 25 09:45:45 2005 UTC
# Line 517  private: Line 517  private:
517                  if ( hashGetLong  ( ht, "notice_mail"       , &l ) ) setNoticeMail       ( l );                  if ( hashGetLong  ( ht, "notice_mail"       , &l ) ) setNoticeMail       ( l );
518                  if ( hashGetLong  ( ht, "notice_mail_since" , &l ) ) setNoticeMailSince  ( l );                  if ( hashGetLong  ( ht, "notice_mail_since" , &l ) ) setNoticeMailSince  ( l );
519                  if ( hashGetLong  ( ht, "private_index_id " , &l ) ) setPrivateIndexID   ( l );                  if ( hashGetLong  ( ht, "private_index_id " , &l ) ) setPrivateIndexID   ( l );
520                    if ( hashGetLong  ( ht, "item_number_limit" , &l ) ) setItemNumberLimit  ( l );
521                    if ( hashGetLong  ( ht, "index_number_limit", &l ) ) setIndexNumberLimit ( l );
522                    if ( hashGetDouble( ht, "item_storage_limit", &d ) ) setItemStorageLimit ( d );
523    
524                  result = RES_OK;                  result = RES_OK;
525          }          }
# Line 1032  result_t accountToZval( const account_t Line 1035  result_t accountToZval( const account_t
1035          add_assoc_long( z, "notice_mail", pAccount -> getNoticeMail( ) );          add_assoc_long( z, "notice_mail", pAccount -> getNoticeMail( ) );
1036          add_assoc_long( z, "notice_mail_since", pAccount -> getNoticeMailSince( ) );          add_assoc_long( z, "notice_mail_since", pAccount -> getNoticeMailSince( ) );
1037          add_assoc_long( z, "private_index_id", pAccount -> getPrivateIndexID( ) );          add_assoc_long( z, "private_index_id", pAccount -> getPrivateIndexID( ) );
1038            add_assoc_long( z, "item_number_limit",  pAccount -> getItemNumberLimit( ) );
1039            add_assoc_long( z, "index_number_limit",  pAccount -> getIndexNumberLimit( ) );
1040            add_assoc_double( z, "item_storage_limit",  pAccount -> getItemStorageLimit( ) );
1041          return RES_OK;          return RES_OK;
1042  }  }
1043    
# Line 1102  result_t groupsToZval( const group_t *pG Line 1108  result_t groupsToZval( const group_t *pG
1108                  add_assoc_string( new_array, "gname", ( char* )pGroups[ i ].getGname( ), 1 );                  add_assoc_string( new_array, "gname", ( char* )pGroups[ i ].getGname( ), 1 );
1109                  add_assoc_string( new_array, "gdesc", ( char* )pGroups[ i ].getDesc( ), 1 );                  add_assoc_string( new_array, "gdesc", ( char* )pGroups[ i ].getDesc( ), 1 );
1110                  add_assoc_long( new_array, "group_index_id",  pGroups[ i ].getGroupIndexID( ) );                  add_assoc_long( new_array, "group_index_id",  pGroups[ i ].getGroupIndexID( ) );
1111                    add_assoc_long( new_array, "item_number_limit",  pGroups[ i ].getItemNumberLimit( ) );
1112                    add_assoc_long( new_array, "index_number_limit",  pGroups[ i ].getIndexNumberLimit( ) );
1113                    add_assoc_double( new_array, "item_storage_limit",  pGroups[ i ].getItemStorageLimit( ) );
1114          }          }
1115          return RES_OK;          return RES_OK;
1116  }  }
# Line 1122  result_t groupToZval( const group_t *pGr Line 1131  result_t groupToZval( const group_t *pGr
1131          add_assoc_string( z, "gname", ( char* )pGroup -> getGname( ), 1 );          add_assoc_string( z, "gname", ( char* )pGroup -> getGname( ), 1 );
1132          add_assoc_string( z, "gdesc", ( char* )pGroup -> getDesc( ), 1 );          add_assoc_string( z, "gdesc", ( char* )pGroup -> getDesc( ), 1 );
1133          add_assoc_long( z, "group_index_id",  pGroup -> getGroupIndexID( ) );          add_assoc_long( z, "group_index_id",  pGroup -> getGroupIndexID( ) );
1134            add_assoc_long( z, "item_number_limit",  pGroup -> getItemNumberLimit( ) );
1135            add_assoc_long( z, "index_number_limit",  pGroup -> getIndexNumberLimit( ) );
1136            add_assoc_double( z, "item_storage_limit",  pGroup -> getItemStorageLimit( ) );
1137          return RES_OK;          return RES_OK;
1138  }  }
1139    
# Line 1159  result_t zvalToGroup( zval *z, group_t * Line 1171  result_t zvalToGroup( zval *z, group_t *
1171                  convert_to_long_ex( tmp ) ;                  convert_to_long_ex( tmp ) ;
1172                  pGroup -> setGroupIndexID( (*tmp) -> value.lval );                  pGroup -> setGroupIndexID( (*tmp) -> value.lval );
1173          }          }
1174            key = "item_number_limit";
1175            if( zend_hash_find( z -> value.ht, key, strlen( key ) + 1, ( void** )&tmp ) == SUCCESS ){
1176                    convert_to_long_ex( tmp ) ;
1177                    pGroup -> setItemNumberLimit( (*tmp) -> value.lval );
1178            }
1179            key = "index_number_limit";
1180            if( zend_hash_find( z -> value.ht, key, strlen( key ) + 1, ( void** )&tmp ) == SUCCESS ){
1181                    convert_to_long_ex( tmp ) ;
1182                    pGroup -> setIndexNumberLimit( (*tmp) -> value.lval );
1183            }
1184            key = "item_storage_limit";
1185            if( zend_hash_find( z -> value.ht, key, strlen( key ) + 1, ( void** )&tmp ) == SUCCESS ){
1186                    convert_to_double_ex( tmp ) ;
1187                    pGroup -> setItemStorageLimit( (*tmp) -> value.dval );
1188            }
1189          return RES_OK;          return RES_OK;
1190  }  }
1191    

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

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