From 6f1097db0212e33e56a63cfb8d10ec93b3ba6c3b Mon Sep 17 00:00:00 2001 From: Kristina Chodorow <kristina@php.net> Date: Mon, 27 Apr 2009 15:45:17 +0000 Subject: [PATCH] modified connection params, removed dead files git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@279444 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/functions/mongo-connect.xml | 64 +++++++-- .../mongo/functions/mongo-gridchunk-data.xml | 76 ---------- .../mongo/functions/mongo-gridchunk-get.xml | 87 ------------ .../mongo/functions/mongo-gridchunk-size.xml | 65 --------- .../functions/mongo-gridfile-chunk-num.xml | 65 --------- .../functions/mongo-gridfile-chunk-size.xml | 65 --------- .../mongo/functions/mongo-gridfile-exists.xml | 65 --------- .../functions/mongo-gridfile-filename.xml | 65 --------- .../mongo/functions/mongo-gridfile-size.xml | 65 --------- .../mongo/functions/mongo-gridfs-find.xml | 85 ------------ .../mongo/functions/mongo-gridfs-list.xml | 130 ------------------ 11 files changed, 56 insertions(+), 776 deletions(-) delete mode 100644 reference/mongo/functions/mongo-gridchunk-data.xml delete mode 100644 reference/mongo/functions/mongo-gridchunk-get.xml delete mode 100644 reference/mongo/functions/mongo-gridchunk-size.xml delete mode 100644 reference/mongo/functions/mongo-gridfile-chunk-num.xml delete mode 100644 reference/mongo/functions/mongo-gridfile-chunk-size.xml delete mode 100644 reference/mongo/functions/mongo-gridfile-exists.xml delete mode 100644 reference/mongo/functions/mongo-gridfile-filename.xml delete mode 100644 reference/mongo/functions/mongo-gridfile-size.xml delete mode 100644 reference/mongo/functions/mongo-gridfs-find.xml delete mode 100644 reference/mongo/functions/mongo-gridfs-list.xml 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 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.mongo-connect" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -11,8 +11,12 @@ &reftitle.description; <methodsynopsis> <type>resource</type><methodname>mongo_connect</methodname> - <methodparam><type>string</type><parameter>host</parameter></methodparam> - <methodparam><type>bool</type><parameter>auto_reconnect</parameter></methodparam> + <methodparam><type>string</type><parameter>server</parameter></methodparam> + <methodparam><type>string</type><parameter>username</parameter></methodparam> + <methodparam><type>string</type><parameter>password</parameter></methodparam> + <methodparam><type>bool</type><parameter>persistent</parameter></methodparam> + <methodparam><type>bool</type><parameter>paired</parameter></methodparam> + <methodparam><type>bool</type><parameter>lazy</parameter></methodparam> </methodsynopsis> <para> Creates a new database connection object. @@ -35,12 +39,56 @@ </varlistentry> <varlistentry> <term> - <parameter>auto_reconnect</parameter> + <parameter>username</parameter> </term> <listitem> <para> - 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 "". + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <parameter>password</parameter> + </term> + <listitem> + <para> + An identifier for the connection. Only necessary for + persistent, authenticated connections, otherwise it can + be set to "". + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <parameter>persistent</parameter> + </term> + <listitem> + <para> + If the connection should be persistent. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <parameter>paired</parameter> + </term> + <listitem> + <para> + If the paired database servers are being used. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <parameter>lazy</parameter> + </term> + <listitem> + <para> + If persistent and lazy are set and no existing + database connection is found, do not connect. </para> </listitem> </varlistentry> @@ -75,9 +123,9 @@ <![CDATA[ <?php -$connection = mongo_connect("localhost", true); +$connection = mongo_connect("localhost", "", "", false, false, false); // or, equivalently -$connection = mongo_connect("localhost:27017", true); +$connection = mongo_connect("localhost:27017", "", "", false, false, false); ?> ]]> 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 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> - -<refentry xml:id="function.mongo-gridchunk-data" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>mongo_gridchunk_data</refname> - <refpurpose>Returns the contents of a chunk</refpurpose> - </refnamediv> - - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>mongo_gridchunk_data</methodname> - <methodparam><type>resource</type><parameter>chunk</parameter></methodparam> - </methodsynopsis> - <para> - Returns the contents of a chunk. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term> - <parameter>chunk</parameter> - </term> - <listitem> - <para> - The chunk from which to fetch data. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Returns the contents of a chunk. - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>mongo_gridchunk_get</function></member> - </simplelist> - </para> - </refsect1> - -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> 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 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> - -<refentry xml:id="function.mongo-gridchunk-get" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>mongo_gridchunk_get</refname> - <refpurpose>Return a chunk of a given file</refpurpose> - </refnamediv> - - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>resource</type><methodname>mongo_gridchunk_get</methodname> - <methodparam><type>resource</type><parameter>file</parameter></methodparam> - <methodparam><type>int</type><parameter>num</parameter></methodparam> - </methodsynopsis> - <para> - Return a chunk of a given file. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term> - <parameter>file</parameter> - </term> - <listitem> - <para> - The file from which to fetch the chunk. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <parameter>num</parameter> - </term> - <listitem> - <para> - The number of the chunk to fetch. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Returns a Gridfs file chunk. - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>mongo_gridfile_chunk_num</function></member> - </simplelist> - </para> - </refsect1> - -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> 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 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> - -<refentry xml:id="function.mongo-gridchunk-size" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>mongo_gridchunk_size</refname> - <refpurpose>The size of a given chunk</refpurpose> - </refnamediv> - - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>mongo_gridchunk_size</methodname> - <methodparam><type>resource</type><parameter>gridchunk</parameter></methodparam> - </methodsynopsis> - <para> - The size of a given chunk. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>gridchunk</parameter></term> - <listitem> - <para> - The grid chunk. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Returns the size of a chunk. - </para> - </refsect1> - -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> 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 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> - -<refentry xml:id="function.mongo-gridfile-chunk-num" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>mongo_gridfile_chunk_num</refname> - <refpurpose>Returns the number of chunks a file is composed of</refpurpose> - </refnamediv> - - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>mongo_gridfile_chunk_num</methodname> - <methodparam><type>resource</type><parameter>gridfile</parameter></methodparam> - </methodsynopsis> - <para> - Returns the number of chunks a file is composed of. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>gridfile</parameter></term> - <listitem> - <para> - The grid file. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Returns the number of chunks. - </para> - </refsect1> - -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> 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 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> - -<refentry xml:id="function.mongo-gridfile-chunk-size" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>mongo_gridfile_chunk_size</refname> - <refpurpose>Finds the size of chunks used by a grid file</refpurpose> - </refnamediv> - - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>mongo_gridfile_chunk_size</methodname> - <methodparam><type>resource</type><parameter>gridfile</parameter></methodparam> - </methodsynopsis> - <para> - Finds the size of chunks used by a grid file. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>gridfile</parameter></term> - <listitem> - <para> - The grid file. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Returns the size of the chunks in this file. - </para> - </refsect1> - -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> 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 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> - -<refentry xml:id="function.mongo-gridfile-exists" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>mongo_gridfile_exists</refname> - <refpurpose>Checks if a gridfile exists</refpurpose> - </refnamediv> - - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>mongo_gridfile_exists</methodname> - <methodparam><type>resource</type><parameter>gridfile</parameter></methodparam> - </methodsynopsis> - <para> - Checks if a gridfile exists. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>gridfile</parameter></term> - <listitem> - <para> - The grid file. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Returns if the grid file exists. - </para> - </refsect1> - -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> 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 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> - -<refentry xml:id="function.mongo-gridfile-filename" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>mongo_gridfile_filename</refname> - <refpurpose>Returns the name of a grid file</refpurpose> - </refnamediv> - - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>mongo_gridfile_filename</methodname> - <methodparam><type>resource</type><parameter>gridfile</parameter></methodparam> - </methodsynopsis> - <para> - Returns the name of a grid file. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>gridfile</parameter></term> - <listitem> - <para> - The grid file. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Returns the filename. - </para> - </refsect1> - -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> 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 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> - -<refentry xml:id="function.mongo-gridfile-size" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>mongo_gridfile_size</refname> - <refpurpose>Returns the size of a grid file</refpurpose> - </refnamediv> - - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>mongo_gridfile_size</methodname> - <methodparam><type>resource</type><parameter>gridfile</parameter></methodparam> - </methodsynopsis> - <para> - Returns the size of a grid file. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>gridfile</parameter></term> - <listitem> - <para> - The grid file. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Returns the size of the file. - </para> - </refsect1> - -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> 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 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> - -<refentry xml:id="function.mongo-gridfs-find" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>mongo_gridfs_find</refname> - <refpurpose>Find a file in the database</refpurpose> - </refnamediv> - - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>resource</type><methodname>mongo_gridfs_find</methodname> - <methodparam><type>resource</type><parameter>gridfs</parameter></methodparam> - <methodparam><type>array</type><parameter>query</parameter></methodparam> - </methodsynopsis> - <para> - Find a file in the database. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>gridfs</parameter></term> - <listitem> - <para> - The gridfs connection to use. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>query</parameter></term> - <listitem> - <para> - The file qualities for which to query. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - A grid file. - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>mongo_gridfs_init</function></member> - <member><function>mongo_gridfs_list</function></member> - <member><function>mongo_gridfs_store</function></member> - </simplelist> - </para> - </refsect1> - -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> 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 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> - -<refentry xml:id="function.mongo-gridfs-list" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>mongo_gridfs_list</refname> - <refpurpose>Query for files in the grid collection</refpurpose> - </refnamediv> - - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>resource</type><methodname>mongo_gridfs_list</methodname> - <methodparam><type>resource</type><parameter>gridfs</parameter></methodparam> - <methodparam><type>array</type><parameter>query</parameter></methodparam> - </methodsynopsis> - <para> - Query for files in the grid collection. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>gridfs</parameter></term> - <listitem> - <para> - The gridfs connection to use. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>query</parameter></term> - <listitem> - <para> - The file qualities for which to query. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Returns a cursor to information about the matching gridfs files. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title><function>mongo_gridfs_list</function> example</title> - <para> - This example shows how to list the files in a grid collection. - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$conn = mongo_connect("localhost", true); -if (!$conn) { - die("Could not connect."); -} -// create a new grid connection -$gridfs = mongo_gridfs_init($conn, "blog", "fs"); - -// query for the filename -$cursor = mongo_gridfs_list($gridfs, array("filename" => "profilePic.jpg")); - -while (mongo_has_next($cursor)) { - $f = mongo_next($cursor); - echo $f["filename"] . "\n"; -} - -?> -]]> - </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -file1.txt -file2.txt -mypic.jpg -]]> - </screen> - <para> - depending on what is in the database. - </para> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>mongo_gridfs_init</function></member> - <member><function>mongo_gridfs_find</function></member> - <member><function>mongo_gridfs_store</function></member> - </simplelist> - </para> - </refsect1> - -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->