downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoDB::selectCollection> <MongoDB::repair
[edit] Last updated: Fri, 25 May 2012

view this page in

MongoDB::resetError

(PECL mongo >=0.9.5)

MongoDB::resetErrorデータベースで発生したすべてのエラーをクリアする

説明

public array MongoDB::resetError ( void )

通常の操作では、このメソッドは使いません。このメソッドは、データベースのエラートラッカーをリセットします (MongoDB::forceError() で増やすことができますが、このメソッドも通常は使いません)。

これは、次のコードと同じ意味です。

<?php

public function resetError() {
    return 
$this->command(array('reseterror' => 1));
}

?>

パラメータ

この関数にはパラメータはありません。

返り値

データベースからの応答を返します。



add a note add a note User Contributed Notes MongoDB::resetError
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites