public function getIndexs($collection, $options = [])
    {
        if (! $this->hasCollection($collection)) {
            return [];
        }

        $list = [];
        foreach ($this->db->selectCollection($collection)->listIndexes($options) as $index) {
            $list[] = $index->getName();
        }

        return $list;
    }
public function getIndexs($collection, $options = [])
    {
        if (! $this->hasCollection($collection)) {
            return [];
        }

        $list = [];
        foreach ($this->db->selectCollection($collection)->listIndexes($options) as $index) {
            $list[] = $index->getName();
        }

        return $list;
    }
public function getIndexs ( $ collection , $ options = [ ] ) { if ( ! $ this -> hasCollection ( $ collection ) ) { return [ ] ; } $ list = [ ] ; foreach ( $ this -> db -> selectCollection ( $ collection ) -> listIndexes ( $ options ) as $ index ) { $ list [ ] = $ index -> getName ( ) ; } return $ list ; }
Get index list in collection.

@param string $collection
@param array $options
@return array
Get index list in collection .