mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
added listdbs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@294483 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
290306fbae
commit
694ac6b091
2 changed files with 54 additions and 0 deletions
53
reference/mongo/mongo/listdbs.xml
Normal file
53
reference/mongo/mongo/listdbs.xml
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="mongo.listdbs" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname><function>Mongo::listDBs</function></refname>
|
||||
<refpurpose>Lists all of the databases available.</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<modifier>public</modifier> <type>array</type><methodname>Mongo::listDBs</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
&no.function.parameters;
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns an associative array containing three fields. The first field is
|
||||
<literal>databases</literal>, which in turn contains an array. Each element
|
||||
of the array is an associative array corresponding to a database, giving the
|
||||
database's name, size, and if it's empty. The other two fields are
|
||||
<literal>totalSize</literal> (in bytes) and <literal>ok</literal>, which is 1
|
||||
if this method ran successfully.
|
||||
</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
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"~/.phpdoc/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
|
||||
-->
|
|
@ -20,6 +20,7 @@
|
|||
<function name='mongo::dropdb' from='PECL mongo >=0.9.0'/>
|
||||
<function name='mongo::selectdb' from='PECL mongo >=0.9.0'/>
|
||||
<function name='mongo::selectcollection' from='PECL mongo >=0.9.0'/>
|
||||
<function name='mongo::listdbs' from='PECL mongo >=1.0.4'/>
|
||||
<!-- MongoDB -->
|
||||
<function name='mongodb::__construct' from='PECL mongo >=0.9.0'/>
|
||||
<function name='mongodb::__tostring' from='PECL mongo >=0.9.0'/>
|
||||
|
|
Loading…
Reference in a new issue