mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-26 22:08:55 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@317862 c90b9560-bf6c-de11-be94-00142212c4b1
181 lines
3.9 KiB
XML
181 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
|
|
<refentry xml:id="mysqlnduhconnection.listmethod" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>MysqlndUhConnection::listMethod</refname>
|
|
<refpurpose>Wrapper for assorted list commands</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<modifier>public</modifier> <type>void</type><methodname>MysqlndUhConnection::listMethod</methodname>
|
|
<methodparam><type>mysqlnd_connection</type><parameter>connection</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>query</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>achtung_wild</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>par1</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Wrapper for assorted list commands.
|
|
</para>
|
|
|
|
&warn.undocumented.func;
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>connection</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Mysqlnd connection handle. Do not modify!
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>query</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
SHOW command to be executed.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>achtung_wild</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>par1</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
TODO
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><function>MysqlndUhConnection::listMethod</function> example</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
class proxy extends MysqlndUhConnection {
|
|
public function listMethod($res, $query, $pattern, $par1) {
|
|
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
|
|
$ret = parent::listMethod($res, $query, $pattern, $par1);
|
|
printf("%s returns %s\n", __METHOD__, var_export($ret, true));
|
|
return $ret;
|
|
}
|
|
}
|
|
mysqlnd_uh_set_connection_proxy(new proxy());
|
|
|
|
$mysql = mysql_connect("localhost", "root", "");
|
|
$res = mysql_list_dbs($mysql);
|
|
printf("num_rows = %d\n", mysql_num_rows($res));
|
|
while ($row = mysql_fetch_assoc($res))
|
|
var_dump($row);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
proxy::listMethod(array (
|
|
0 => NULL,
|
|
1 => 'SHOW DATABASES',
|
|
2 => '',
|
|
3 => '',
|
|
))
|
|
proxy::listMethod returns NULL
|
|
num_rows = 6
|
|
array(1) {
|
|
["Database"]=>
|
|
string(18) "information_schema"
|
|
}
|
|
array(1) {
|
|
["Database"]=>
|
|
string(5) "mysql"
|
|
}
|
|
array(1) {
|
|
["Database"]=>
|
|
string(8) "oxid_new"
|
|
}
|
|
array(1) {
|
|
["Database"]=>
|
|
string(7) "phptest"
|
|
}
|
|
array(1) {
|
|
["Database"]=>
|
|
string(7) "pushphp"
|
|
}
|
|
array(1) {
|
|
["Database"]=>
|
|
string(4) "test"
|
|
}
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member>
|
|
<function>mysqlnd_uh_set_connection_proxy</function>
|
|
</member>
|
|
<member>
|
|
<function>mysql_list_dbs</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:"~/.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
|
|
-->
|