PHPDaemon\Clients\Mongo\Pool::findAll PHP Метод

findAll() публичный Метод

Finds objects in collection and fires callback when got all objects
public findAll ( array $p, callable $cb ) : void
$p array Hash of properties (offset, limit, opts, tailable, await, where, col, fields, sort, hint, explain, snapshot, orderby, parse_oplog)
$cb callable Callback called when response received
Результат void
    public function findAll($p, $cb)
    {
        $this->find($p, function ($cursor) use($cb) {
            if (!$cursor->isFinished()) {
                $cursor->getMore();
            } else {
                $cb($cursor);
            }
        });
    }