Phalcon\Db\Adapter\MongoDB\Operation\ListIndexes::executeLegacy PHP Метод

executeLegacy() приватный Метод

Returns information for all indexes for this collection by querying the "system.indexes" collection (MongoDB <3.0).
private executeLegacy ( MongoDB\Driver\Server $server ) : IndexInfoIteratorIterator
$server MongoDB\Driver\Server
Результат Phalcon\Db\Adapter\MongoDB\Model\IndexInfoIteratorIterator
    private function executeLegacy(Server $server)
    {
        $filter = ['ns' => $this->databaseName . '.' . $this->collectionName];
        $options = isset($this->options['maxTimeMS']) ? ['modifiers' => ['$maxTimeMS' => $this->options['maxTimeMS']]] : [];
        $cursor = $server->executeQuery($this->databaseName . '.system.indexes', new Query($filter, $options));
        $cursor->setTypeMap(['root' => 'array', 'document' => 'array']);
        return new IndexInfoIteratorIterator($cursor);
    }