Method |
Description |
|
__toString ( ) |
|
|
aggregate ( $collection_name ) |
|
|
batch_insert ( $collection_name, array $a, array $options = [] ) |
Data Management |
|
command ( array $data ) |
|
|
connect ( ) |
Connect to database |
|
connected ( ) |
Returns connection status |
|
count ( $collection_name, array $query = [] ) |
|
|
create_collection ( $name, $capped = FALSE, $size, $max ) |
Collection management |
|
db ( ) |
|
|
disconnect ( ) |
Disconnect from database |
|
drop_collection ( $name ) |
|
|
ensure_index ( $collection_name, $keys, $options = [] ) |
|
|
execute ( $code, array $args = [] ) |
|
|
find ( $collection_name, array $query = [], array $fields = [] ) |
|
|
find_one ( $collection_name, array $query = [], array $fields = [] ) |
|
|
get_file ( array $criteria = [] ) |
|
|
get_files ( array $query = [], array $fields = [] ) |
|
|
gridFS ( ) |
File management |
|
group ( $collection_name, $keys, array $initial, $reduce, array $condition = [] ) |
|
|
insert ( $collection_name, array $a, $options = [] ) |
|
|
instance ( $name = NULL, array $config = NULL ) : Database |
Get a singleton MangoDB instance. If configuration is not specified,
it will be loaded from the MangoDB configuration file using the same
group as the name. |
|
last_error ( ) |
Database Management |
|
prev_error ( ) |
|
|
remove ( $collection_name, array $criteria, $options = [] ) |
|
|
remove_file ( array $criteria = [], array $options = [] ) |
|
|
reset_error ( ) |
|
|
save ( $collection_name, array $a, $options = [] ) |
|
|
set_file ( $filename, array $extra = [], array $options = [] ) |
|
|
set_file_bytes ( $bytes, array $extra = [], array $options = [] ) |
|
|
update ( $collection_name, array $criteria, array $newObj, $options = [] ) |
|
|