Skip to content

Commit 786471a

Browse files
committed
PHPLIB-69: Prototypes for index drop methods
1 parent 2754378 commit 786471a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/Collection.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,32 @@ public function __construct(Manager $manager, $ns, WriteConcern $wc = null, Read
6464
list($this->dbname, $this->collname) = explode(".", $ns, 2);
6565
}
6666

67+
/**
68+
* Drop a single index in the collection.
69+
*
70+
* @see http://docs.mongodb.org/manual/reference/command/dropIndexes/
71+
* @see http://docs.mongodb.org/manual/reference/method/db.collection.dropIndex/
72+
* @param string $indexName
73+
* @return Result
74+
* @throws InvalidArgumentException if "*" is specified
75+
*/
76+
public function dropIndex($indexName)
77+
{
78+
// TODO
79+
}
80+
81+
/**
82+
* Drop all indexes in the collection.
83+
*
84+
* @see http://docs.mongodb.org/manual/reference/command/dropIndexes/
85+
* @see http://docs.mongodb.org/manual/reference/method/db.collection.dropIndexes/
86+
* @return Result
87+
*/
88+
public function dropIndexes()
89+
{
90+
// TODO
91+
}
92+
6793
/**
6894
* Performs a find (query) on the collection
6995
*

0 commit comments

Comments
 (0)