svn: /phpdoc/ doc-base/trunk/entities/global.ent en/trunk/reference/mysqli/constants.xml en/trunk/reference/mysqli/mysqli/refresh.xml
en/trunk/reference/mysqli/summary.xml

From: Date: Fri, 09 Dec 2011 07:55:19 +0000
Subject: svn: /phpdoc/ doc-base/trunk/entities/global.ent en/trunk/reference/mysqli/constants.xml en/trunk/reference/mysqli/mysqli/refresh.xml
en/trunk/reference/mysqli/summary.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9200@lists.php.net to get a copy of this message
philip Fri, 09 Dec 2011 07:55:19 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=320747 Log: Documented mysqli_refresh(), closes PHP bug #55860 Bug: https://bugs.php.net/55860 (Assigned) mysqli_refresh still exists and is undocumented Changed paths: U phpdoc/doc-base/trunk/entities/global.ent U phpdoc/en/trunk/reference/mysqli/constants.xml A phpdoc/en/trunk/reference/mysqli/mysqli/refresh.xml U phpdoc/en/trunk/reference/mysqli/summary.xml Modified: phpdoc/doc-base/trunk/entities/global.ent =================================================================== --- phpdoc/doc-base/trunk/entities/global.ent 2011-12-09 07:38:43 UTC (rev 320746) +++ phpdoc/doc-base/trunk/entities/global.ent 2011-12-09 07:55:19 UTC (rev 320747) @@ -352,6 +352,7 @@ <!ENTITY url.mysql.docs.date "http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html"> <!ENTITY url.mysql.docs.error "http://dev.mysql.com/doc/mysql/en/error-handling.html"> <!ENTITY url.mysql.docs.error.msg "http://dev.mysql.com/doc/mysql/en/error-handling.html"> +<!ENTITY url.mysql.docs.refresh "http://dev.mysql.com/doc/mysql/en/mysql-refresh.html"> <!ENTITY url.mysql.docs.replication "http://dev.mysql.com/doc/mysql/en/replication.html"> <!ENTITY url.mysql.example "http://downloads.mysql.com/docs/world.sql.gz"> <!ENTITY url.mysql.charsets "http://dev.mysql.com/doc/refman/5.1/en/charset-charsets.html"> Modified: phpdoc/en/trunk/reference/mysqli/constants.xml =================================================================== --- phpdoc/en/trunk/reference/mysqli/constants.xml 2011-12-09 07:38:43 UTC (rev 320746) +++ phpdoc/en/trunk/reference/mysqli/constants.xml 2011-12-09 07:55:19 UTC (rev 320747) @@ -621,6 +621,7 @@ <term><constant>MYSQLI_REFRESH_GRANT</constant></term> <listitem> <para> + Refreshes the grant tables. </para> </listitem> </varlistentry> @@ -628,6 +629,8 @@ <term><constant>MYSQLI_REFRESH_LOG</constant></term> <listitem> <para> + Flushes the logs, like executing the + <literal>FLUSH LOGS</literal> <acronym>SQL</acronym> statement. </para> </listitem> </varlistentry> @@ -635,6 +638,8 @@ <term><constant>MYSQLI_REFRESH_TABLES</constant></term> <listitem> <para> + Flushes the table cache, like executing the + <literal>FLUSH TABLES</literal> <acronym>SQL</acronym> statement. </para> </listitem> </varlistentry> @@ -642,6 +647,8 @@ <term><constant>MYSQLI_REFRESH_HOSTS</constant></term> <listitem> <para> + Flushes the host cache, like executing the + <literal>FLUSH HOSTS</literal> <acronym>SQL</acronym> statement. </para> </listitem> </varlistentry> @@ -649,6 +656,8 @@ <term><constant>MYSQLI_REFRESH_STATUS</constant></term> <listitem> <para> + Reset the status variables, like executing the + <literal>FLUSH STATUS</literal> <acronym>SQL</acronym> statement. </para> </listitem> </varlistentry> @@ -656,6 +665,7 @@ <term><constant>MYSQLI_REFRESH_THREADS</constant></term> <listitem> <para> + Flushes the thread cache. </para> </listitem> </varlistentry> @@ -663,6 +673,9 @@ <term><constant>MYSQLI_REFRESH_SLAVE</constant></term> <listitem> <para> + On a slave replication server: resets the master server information, and + restarts the slave. Like executing the <literal>RESET SLAVE</literal> + <acronym>SQL</acronym> statement. </para> </listitem> </varlistentry> @@ -670,6 +683,9 @@ <term><constant>MYSQLI_REFRESH_MASTER</constant></term> <listitem> <para> + On a master replication server: removes the binary log files listed in the + binary log index, and truncates the index file. Like executing the + <literal>RESET MASTER</literal> <acronym>SQL</acronym> statement. </para> </listitem> </varlistentry> Added: phpdoc/en/trunk/reference/mysqli/mysqli/refresh.xml =================================================================== --- phpdoc/en/trunk/reference/mysqli/mysqli/refresh.xml (rev 0) +++ phpdoc/en/trunk/reference/mysqli/mysqli/refresh.xml 2011-12-09 07:55:19 UTC (rev 320747) @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: $ --> +<refentry xml:id="mysqli.refresh" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv> + <refname>mysqli::refresh</refname> + <refname>mysqli_refresh</refname> + <refpurpose>Refreshes</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <para>&style.oop;</para> + <methodsynopsis> + <modifier>public</modifier> <type>bool</type><methodname>mysqli::refresh</methodname> + <methodparam><type>int</type><parameter>options</parameter></methodparam> + </methodsynopsis> + <para>&style.procedural;</para> + <methodsynopsis> + <type>int</type><methodname>mysqli_refresh</methodname> + <methodparam><type>resource</type><parameter>link</parameter></methodparam> + <methodparam><type>int</type><parameter>options</parameter></methodparam> + </methodsynopsis> + <para> + Flushes tables or caches, or resets the replication server information. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + &mysqli.link.description; + <varlistentry> + <term><parameter>options</parameter></term> + <listitem> + <para> + The options to refresh, using the MYSQLI_REFRESH_* constants as documented + within the <link linkend="mysqli.constants">MySQLi constants</link> documentation. + </para> + <para> + See also the official <link xlink:href="&url.mysql.docs.refresh;">MySQL Refresh</link> + documentation. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &true; if the refresh was a success, otherwise &false; + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>mysqli_poll</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 +--> Modified: phpdoc/en/trunk/reference/mysqli/summary.xml =================================================================== --- phpdoc/en/trunk/reference/mysqli/summary.xml 2011-12-09 07:38:43 UTC (rev 320746) +++ phpdoc/en/trunk/reference/mysqli/summary.xml 2011-12-09 07:55:19 UTC (rev 320747) @@ -289,6 +289,12 @@ <entry>Execute an SQL query</entry> </row> <row> + <entry><methodname>mysqli::refresh</methodname></entry> + <entry><function>mysqli_refresh</function></entry> + <entry>N/A</entry> + <entry>Flushes tables or caches, or resets the replication server information</entry> + </row> + <row> <entry><methodname>mysqli::rollback</methodname></entry> <entry><function>mysqli_rollback</function></entry> <entry>N/A</entry>

« previous php.doc.cvs (#9200) next »