44
44
45
45
PHONGO_API zend_class_entry * php_phongo_writeresult_ce ;
46
46
47
- /* {{{ proto integer WriteResult::getNumInserted ()
47
+ /* {{{ proto integer WriteResult::getInsertedCount ()
48
48
Returns the number of documents that were inserted */
49
- PHP_METHOD (WriteResult , getNumInserted )
49
+ PHP_METHOD (WriteResult , getInsertedCount )
50
50
{
51
51
php_phongo_writeresult_t * intern ;
52
52
zend_error_handling error_handling ;
@@ -66,9 +66,9 @@ PHP_METHOD(WriteResult, getNumInserted)
66
66
RETURN_LONG (intern -> nInserted );
67
67
}
68
68
/* }}} */
69
- /* {{{ proto integer WriteResult::getNumMatched ()
69
+ /* {{{ proto integer WriteResult::getMatchedCount ()
70
70
Returns the number of documents that matched the update criteria */
71
- PHP_METHOD (WriteResult , getNumMatched )
71
+ PHP_METHOD (WriteResult , getMatchedCount )
72
72
{
73
73
php_phongo_writeresult_t * intern ;
74
74
zend_error_handling error_handling ;
@@ -88,9 +88,9 @@ PHP_METHOD(WriteResult, getNumMatched)
88
88
RETURN_LONG (intern -> nMatched );
89
89
}
90
90
/* }}} */
91
- /* {{{ proto integer WriteResult::getNumModified ()
91
+ /* {{{ proto integer WriteResult::getModifiedCount ()
92
92
Returns the number of documents that were actually modified by an update */
93
- PHP_METHOD (WriteResult , getNumModified )
93
+ PHP_METHOD (WriteResult , getModifiedCount )
94
94
{
95
95
php_phongo_writeresult_t * intern ;
96
96
zend_error_handling error_handling ;
@@ -110,9 +110,9 @@ PHP_METHOD(WriteResult, getNumModified)
110
110
RETURN_LONG (intern -> nModified );
111
111
}
112
112
/* }}} */
113
- /* {{{ proto integer WriteResult::getNumRemoved ()
113
+ /* {{{ proto integer WriteResult::getDeletedCount ()
114
114
Returns the number of documents that were deleted */
115
- PHP_METHOD (WriteResult , getNumRemoved )
115
+ PHP_METHOD (WriteResult , getDeletedCount )
116
116
{
117
117
php_phongo_writeresult_t * intern ;
118
118
zend_error_handling error_handling ;
@@ -132,9 +132,9 @@ PHP_METHOD(WriteResult, getNumRemoved)
132
132
RETURN_LONG (intern -> nRemoved );
133
133
}
134
134
/* }}} */
135
- /* {{{ proto integer WriteResult::getNumUpserted ()
135
+ /* {{{ proto integer WriteResult::getUpsertedCount ()
136
136
Returns the number of documents that were upserted */
137
- PHP_METHOD (WriteResult , getNumUpserted )
137
+ PHP_METHOD (WriteResult , getUpsertedCount )
138
138
{
139
139
php_phongo_writeresult_t * intern ;
140
140
zend_error_handling error_handling ;
@@ -289,19 +289,19 @@ PHP_METHOD(WriteResult, getWriteErrors)
289
289
*/
290
290
/* {{{ MongoDB\WriteResult */
291
291
292
- ZEND_BEGIN_ARG_INFO_EX (ai_WriteResult_getNumInserted , 0 , 0 , 0 )
292
+ ZEND_BEGIN_ARG_INFO_EX (ai_WriteResult_getInsertedCount , 0 , 0 , 0 )
293
293
ZEND_END_ARG_INFO ();
294
294
295
- ZEND_BEGIN_ARG_INFO_EX (ai_WriteResult_getNumMatched , 0 , 0 , 0 )
295
+ ZEND_BEGIN_ARG_INFO_EX (ai_WriteResult_getMatchedCount , 0 , 0 , 0 )
296
296
ZEND_END_ARG_INFO ();
297
297
298
- ZEND_BEGIN_ARG_INFO_EX (ai_WriteResult_getNumModified , 0 , 0 , 0 )
298
+ ZEND_BEGIN_ARG_INFO_EX (ai_WriteResult_getModifiedCount , 0 , 0 , 0 )
299
299
ZEND_END_ARG_INFO ();
300
300
301
- ZEND_BEGIN_ARG_INFO_EX (ai_WriteResult_getNumRemoved , 0 , 0 , 0 )
301
+ ZEND_BEGIN_ARG_INFO_EX (ai_WriteResult_getDeletedCount , 0 , 0 , 0 )
302
302
ZEND_END_ARG_INFO ();
303
303
304
- ZEND_BEGIN_ARG_INFO_EX (ai_WriteResult_getNumUpserted , 0 , 0 , 0 )
304
+ ZEND_BEGIN_ARG_INFO_EX (ai_WriteResult_getUpsertedCount , 0 , 0 , 0 )
305
305
ZEND_END_ARG_INFO ();
306
306
307
307
ZEND_BEGIN_ARG_INFO_EX (ai_WriteResult_getInfo , 0 , 0 , 0 )
@@ -321,11 +321,11 @@ ZEND_END_ARG_INFO();
321
321
322
322
323
323
static zend_function_entry php_phongo_writeresult_me [] = {
324
- PHP_ME (WriteResult , getNumInserted , ai_WriteResult_getNumInserted , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
325
- PHP_ME (WriteResult , getNumMatched , ai_WriteResult_getNumMatched , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
326
- PHP_ME (WriteResult , getNumModified , ai_WriteResult_getNumModified , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
327
- PHP_ME (WriteResult , getNumRemoved , ai_WriteResult_getNumRemoved , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
328
- PHP_ME (WriteResult , getNumUpserted , ai_WriteResult_getNumUpserted , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
324
+ PHP_ME (WriteResult , getInsertedCount , ai_WriteResult_getInsertedCount , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
325
+ PHP_ME (WriteResult , getMatchedCount , ai_WriteResult_getMatchedCount , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
326
+ PHP_ME (WriteResult , getModifiedCount , ai_WriteResult_getModifiedCount , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
327
+ PHP_ME (WriteResult , getDeletedCount , ai_WriteResult_getDeletedCount , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
328
+ PHP_ME (WriteResult , getUpsertedCount , ai_WriteResult_getUpsertedCount , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
329
329
PHP_ME (WriteResult , getInfo , ai_WriteResult_getInfo , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
330
330
PHP_ME (WriteResult , getServer , ai_WriteResult_getServer , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
331
331
PHP_ME (WriteResult , getUpsertedIds , ai_WriteResult_getUpsertedIds , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
0 commit comments