PHPDaemon\Clients\Mongo\Collection::findAll PHP Method

findAll() public method

Finds objects in collection and fires callback when got all objects
public findAll ( callable $cb, array $p = [] ) : void
$cb callable Callback called when response received
$p array Hash of properties (offset, limit, opts, tailable, where, col, fields, sort, hint, explain, snapshot, orderby, parse_oplog)
return void
    public function findAll($cb, $p = [])
    {
        $p['col'] = $this->name;
        $this->pool->findAll($p, $cb);
    }