diff --git a/reference/mongo/functions/mongo-connect.xml b/reference/mongo/functions/mongo-connect.xml index 858e3c506d..93db6f7dff 100644 --- a/reference/mongo/functions/mongo-connect.xml +++ b/reference/mongo/functions/mongo-connect.xml @@ -1,5 +1,5 @@ - + @@ -11,8 +11,12 @@ &reftitle.description; resourcemongo_connect - stringhost - boolauto_reconnect + stringserver + stringusername + stringpassword + boolpersistent + boolpaired + boollazy Creates a new database connection object. @@ -35,12 +39,56 @@ - auto_reconnect + username - If the driver should attempt to reconnect if - the database connection is lost. + An identifier for the connection. Only necessary for + persistent, authenticated connections, otherwise it can + be set to "". + + + + + + password + + + + An identifier for the connection. Only necessary for + persistent, authenticated connections, otherwise it can + be set to "". + + + + + + persistent + + + + If the connection should be persistent. + + + + + + paired + + + + If the paired database servers are being used. + + + + + + lazy + + + + If persistent and lazy are set and no existing + database connection is found, do not connect. @@ -75,9 +123,9 @@ ]]> diff --git a/reference/mongo/functions/mongo-gridchunk-data.xml b/reference/mongo/functions/mongo-gridchunk-data.xml deleted file mode 100644 index edec58bf94..0000000000 --- a/reference/mongo/functions/mongo-gridchunk-data.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - mongo_gridchunk_data - Returns the contents of a chunk - - - - &reftitle.description; - - stringmongo_gridchunk_data - resourcechunk - - - Returns the contents of a chunk. - - - - - &reftitle.parameters; - - - - - chunk - - - - The chunk from which to fetch data. - - - - - - - - - &reftitle.returnvalues; - - Returns the contents of a chunk. - - - - - &reftitle.seealso; - - - mongo_gridchunk_get - - - - - - - diff --git a/reference/mongo/functions/mongo-gridchunk-get.xml b/reference/mongo/functions/mongo-gridchunk-get.xml deleted file mode 100644 index 78a708fbd9..0000000000 --- a/reference/mongo/functions/mongo-gridchunk-get.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - mongo_gridchunk_get - Return a chunk of a given file - - - - &reftitle.description; - - resourcemongo_gridchunk_get - resourcefile - intnum - - - Return a chunk of a given file. - - - - - &reftitle.parameters; - - - - - file - - - - The file from which to fetch the chunk. - - - - - - num - - - - The number of the chunk to fetch. - - - - - - - - - &reftitle.returnvalues; - - Returns a Gridfs file chunk. - - - - - &reftitle.seealso; - - - mongo_gridfile_chunk_num - - - - - - - diff --git a/reference/mongo/functions/mongo-gridchunk-size.xml b/reference/mongo/functions/mongo-gridchunk-size.xml deleted file mode 100644 index f11829f2b3..0000000000 --- a/reference/mongo/functions/mongo-gridchunk-size.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - mongo_gridchunk_size - The size of a given chunk - - - - &reftitle.description; - - intmongo_gridchunk_size - resourcegridchunk - - - The size of a given chunk. - - - - - &reftitle.parameters; - - - - gridchunk - - - The grid chunk. - - - - - - - - - &reftitle.returnvalues; - - Returns the size of a chunk. - - - - - - diff --git a/reference/mongo/functions/mongo-gridfile-chunk-num.xml b/reference/mongo/functions/mongo-gridfile-chunk-num.xml deleted file mode 100644 index 807db18d1d..0000000000 --- a/reference/mongo/functions/mongo-gridfile-chunk-num.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - mongo_gridfile_chunk_num - Returns the number of chunks a file is composed of - - - - &reftitle.description; - - intmongo_gridfile_chunk_num - resourcegridfile - - - Returns the number of chunks a file is composed of. - - - - - &reftitle.parameters; - - - - gridfile - - - The grid file. - - - - - - - - - &reftitle.returnvalues; - - Returns the number of chunks. - - - - - - diff --git a/reference/mongo/functions/mongo-gridfile-chunk-size.xml b/reference/mongo/functions/mongo-gridfile-chunk-size.xml deleted file mode 100644 index 8b9d6caeeb..0000000000 --- a/reference/mongo/functions/mongo-gridfile-chunk-size.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - mongo_gridfile_chunk_size - Finds the size of chunks used by a grid file - - - - &reftitle.description; - - intmongo_gridfile_chunk_size - resourcegridfile - - - Finds the size of chunks used by a grid file. - - - - - &reftitle.parameters; - - - - gridfile - - - The grid file. - - - - - - - - - &reftitle.returnvalues; - - Returns the size of the chunks in this file. - - - - - - diff --git a/reference/mongo/functions/mongo-gridfile-exists.xml b/reference/mongo/functions/mongo-gridfile-exists.xml deleted file mode 100644 index 8a311433c4..0000000000 --- a/reference/mongo/functions/mongo-gridfile-exists.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - mongo_gridfile_exists - Checks if a gridfile exists - - - - &reftitle.description; - - boolmongo_gridfile_exists - resourcegridfile - - - Checks if a gridfile exists. - - - - - &reftitle.parameters; - - - - gridfile - - - The grid file. - - - - - - - - - &reftitle.returnvalues; - - Returns if the grid file exists. - - - - - - diff --git a/reference/mongo/functions/mongo-gridfile-filename.xml b/reference/mongo/functions/mongo-gridfile-filename.xml deleted file mode 100644 index 26dc46ac2a..0000000000 --- a/reference/mongo/functions/mongo-gridfile-filename.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - mongo_gridfile_filename - Returns the name of a grid file - - - - &reftitle.description; - - stringmongo_gridfile_filename - resourcegridfile - - - Returns the name of a grid file. - - - - - &reftitle.parameters; - - - - gridfile - - - The grid file. - - - - - - - - - &reftitle.returnvalues; - - Returns the filename. - - - - - - diff --git a/reference/mongo/functions/mongo-gridfile-size.xml b/reference/mongo/functions/mongo-gridfile-size.xml deleted file mode 100644 index 5847b8d841..0000000000 --- a/reference/mongo/functions/mongo-gridfile-size.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - mongo_gridfile_size - Returns the size of a grid file - - - - &reftitle.description; - - intmongo_gridfile_size - resourcegridfile - - - Returns the size of a grid file. - - - - - &reftitle.parameters; - - - - gridfile - - - The grid file. - - - - - - - - - &reftitle.returnvalues; - - Returns the size of the file. - - - - - - diff --git a/reference/mongo/functions/mongo-gridfs-find.xml b/reference/mongo/functions/mongo-gridfs-find.xml deleted file mode 100644 index 47758bccc8..0000000000 --- a/reference/mongo/functions/mongo-gridfs-find.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - mongo_gridfs_find - Find a file in the database - - - - &reftitle.description; - - resourcemongo_gridfs_find - resourcegridfs - arrayquery - - - Find a file in the database. - - - - - &reftitle.parameters; - - - - gridfs - - - The gridfs connection to use. - - - - - query - - - The file qualities for which to query. - - - - - - - - - &reftitle.returnvalues; - - A grid file. - - - - - &reftitle.seealso; - - - mongo_gridfs_init - mongo_gridfs_list - mongo_gridfs_store - - - - - - - diff --git a/reference/mongo/functions/mongo-gridfs-list.xml b/reference/mongo/functions/mongo-gridfs-list.xml deleted file mode 100644 index 083a29b225..0000000000 --- a/reference/mongo/functions/mongo-gridfs-list.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - mongo_gridfs_list - Query for files in the grid collection - - - - &reftitle.description; - - resourcemongo_gridfs_list - resourcegridfs - arrayquery - - - Query for files in the grid collection. - - - - - &reftitle.parameters; - - - - gridfs - - - The gridfs connection to use. - - - - - query - - - The file qualities for which to query. - - - - - - - - - &reftitle.returnvalues; - - Returns a cursor to information about the matching gridfs files. - - - - - &reftitle.examples; - - - <function>mongo_gridfs_list</function> example - - This example shows how to list the files in a grid collection. - - - "profilePic.jpg")); - -while (mongo_has_next($cursor)) { - $f = mongo_next($cursor); - echo $f["filename"] . "\n"; -} - -?> -]]> - - &example.outputs.similar; - - - - - depending on what is in the database. - - - - - - - &reftitle.seealso; - - - mongo_gridfs_init - mongo_gridfs_find - mongo_gridfs_store - - - - - - -