resetError() 공개 메소드

Clears any flagged errors on the database
public resetError ( ) : array
리턴 array Returns the database response.
예제 #1
0
 public function testResetError() {
     $this->object->resetError();
     $err = $this->object->lastError();
     $this->assertEquals($err['err'], null);
     $this->assertEquals($err['n'], 0);
     $this->assertEquals((bool)$err['ok'], true);
 }
예제 #2
0
 /**
  * Wrapper method for MongoDB::resetError().
  *
  * @deprecated 1.1 Deprecated in driver; will be removed for 1.2
  * @see http://php.net/manual/en/mongodb.reseterror.php
  * @return array
  */
 public function resetError()
 {
     return $this->mongoDB->resetError();
 }
예제 #3
0
 public function resetError()
 {
     return $this->_connected ? $this->_db->resetError() : NULL;
 }