colinmollenhour / mongodb-php-odm

A simple but powerful set of wrappers for using MongoDb in PHP (also a Kohana 3 module)
BSD 3-Clause "New" or "Revised" License
208 stars 50 forks source link

Updated PHPDoc #46

Closed sergeyklay closed 11 years ago

sergeyklay commented 11 years ago

Added to Mongo_Database class:

@method array execute( mixed $code, array $args = array() )
@method array getCollectionNames( bool $includeSystemCollections = FALSE )

Updated Mongo_Database class:

@method array command( array $data, array $options = array() )
@method MongoCollection createCollection( string $name, array $options = array() )
@method array createDBRef( string $collection, mixed $a )
@method array listCollections( bool $includeSystemCollections = FALSE )

Also I removed some trailing spaces

Updated Mongo_Collection class:

@method bool setReadPreference( string $read_preference, array $tags = array() )

Also I removed some trailing spaces and typos.

Thank you for your wonderful project!

Best regards, Sergey Yakovlev

sergeyklay commented 11 years ago

I will make a clean pull request