|
MongoCursor::setFlagSets arbitrary flags in case there is no method available the specific flag Description
public MongoCursor MongoCursor::setFlag
( int
$flag
[, bool $set = true
] )The MongoCursor class has several methods for setting flags on the query object. This method is available in case the MongoDB wire protocol has acquired a new flag, and the driver has not been updated with a method for this new flag. In all other cases, the method should be used. See the "See also" section for available methods. Parameters
Return ValuesReturns this cursor. Errors/ExceptionsShows a warning when an unsupport flag is attempted to be set. Changelog
ExamplesExample #1 MongoCursor::setFlag example
<?php See Also
|