mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Document PHP 5.5 MySQLi parameters
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330227 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e3e6f51c9e
commit
577ff9add3
3 changed files with 126 additions and 2 deletions
|
@ -698,6 +698,42 @@
|
|||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constantmysqli-trans-cor-and-chain">
|
||||
<term><constant>MYSQLI_TRANS_COR_AND_CHAIN</constant></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Appends "AND CHAIN" to <function>mysqli_commit</function> or
|
||||
<function>mysqli_rollback</function>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constantmysqli-trans-cor-and-no-chain">
|
||||
<term><constant>MYSQLI_TRANS_COR_AND_NO_CHAIN</constant></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Appends "AND NO CHAIN" to <function>mysqli_commit</function> or
|
||||
<function>mysqli_rollback</function>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constantmysqli-trans-cor-release">
|
||||
<term><constant>MYSQLI_TRANS_COR_RELEASE</constant></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Appends "RELEASE" to <function>mysqli_commit</function> or
|
||||
<function>mysqli_rollback</function>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constantmysqli-trans-cor-no-release">
|
||||
<term><constant>MYSQLI_TRANS_COR_NO_RELEASE</constant></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Appends "NO RELEASE" to <function>mysqli_commit</function> or
|
||||
<function>mysqli_rollback</function>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</appendix>
|
||||
|
|
|
@ -12,12 +12,15 @@
|
|||
<para>&style.oop;</para>
|
||||
<methodsynopsis role="oop">
|
||||
<type>bool</type><methodname>mysqli::commit</methodname>
|
||||
<void />
|
||||
<methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>&style.procedural;</para>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>mysqli_commit</methodname>
|
||||
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Commits the current transaction for the database connection.
|
||||
|
@ -29,6 +32,22 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
&mysqli.link.description;
|
||||
<varlistentry>
|
||||
<term><parameter>flags</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
A bitmask of <constant>MYSQLI_TRANS_COR_*</constant> constants.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>name</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
If provided then <literal>COMMIT/*name*/</literal> is executed.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -40,6 +59,31 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.5.0</entry>
|
||||
<entry>
|
||||
Added <parameter>flags</parameter> and <parameter>name</parameter>
|
||||
parameters.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<example>
|
||||
|
|
|
@ -12,12 +12,15 @@
|
|||
<para>&style.oop;</para>
|
||||
<methodsynopsis role="oop">
|
||||
<type>bool</type><methodname>mysqli::rollback</methodname>
|
||||
<void/>
|
||||
<methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>&style.procedural;</para>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>mysqli_rollback</methodname>
|
||||
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Rollbacks the current transaction for the database.
|
||||
|
@ -29,6 +32,22 @@
|
|||
<para>
|
||||
<variablelist>
|
||||
&mysqli.link.description;
|
||||
<varlistentry>
|
||||
<term><parameter>flags</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
A bitmask of <constant>MYSQLI_TRANS_COR_*</constant> constants.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>name</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
If provided then <literal>ROLLBACK/*name*/</literal> is executed.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -40,6 +59,31 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.5.0</entry>
|
||||
<entry>
|
||||
Added <parameter>flags</parameter> and <parameter>name</parameter>
|
||||
parameters.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<example>
|
||||
|
|
Loading…
Reference in a new issue