array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'mongodb-driver-session.isdirty.php', 1 => 'MongoDB\\Driver\\Session::isDirty', 2 => 'Returns whether the session has been marked as dirty', ), 'up' => array ( 0 => 'class.mongodb-driver-session.php', 1 => 'MongoDB\\Driver\\Session', ), 'prev' => array ( 0 => 'mongodb-driver-session.gettransactionstate.php', 1 => 'MongoDB\\Driver\\Session::getTransactionState', ), 'next' => array ( 0 => 'mongodb-driver-session.isintransaction.php', 1 => 'MongoDB\\Driver\\Session::isInTransaction', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/session/isdirty.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

MongoDB\Driver\Session::isDirty

(mongodb >=1.13.0)

MongoDB\Driver\Session::isDirtyReturns whether the session has been marked as dirty

说明

final public MongoDB\Driver\Session::isDirty(): bool

Returns whether the session has been marked as dirty (i.e. it has been used with a command that encountered a network error).

参数

此函数没有参数。

返回值

Returns whether the session has been marked as dirty.

错误/异常