mirror of
https://github.com/php/doc-ru.git
synced 2025-08-15 23:42:35 +00:00
upd
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@343238 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 1c4dd2621d3ca108c43be836cf8399689c40223f Maintainer: mch Status: ready -->
|
||||
<!-- EN-Revision: 71dcffaddf2651b50951c1e27c7e47c2cdb82d0c Maintainer: mch Status: ready -->
|
||||
<!-- Reviewed: yes -->
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="pdo.construct" xmlns="http://docbook.org/ns/docbook">
|
||||
@ -15,7 +15,7 @@
|
||||
<modifier>public</modifier> <methodname>PDO::__construct</methodname>
|
||||
<methodparam><type>string</type><parameter>dsn</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>username</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>password</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>passwd</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam>
|
||||
</constructorsynopsis>
|
||||
<para>
|
||||
@ -90,7 +90,7 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry><term>password</term>
|
||||
<varlistentry><term>passwd</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Пароль для строки DSN. Этот параметр опционален для
|
||||
@ -108,14 +108,14 @@
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Возвращает объект PDO в случае успеха.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
@ -123,7 +123,7 @@
|
||||
соединения с необходимой базой данных не удается.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
@ -188,8 +188,8 @@ try {
|
||||
псевдоним<literal>mydb</literal>:
|
||||
</para>
|
||||
<programlisting role="ini">
|
||||
[PDO]
|
||||
pdo.dsn.mydb="mysql:dbname=testdb;host=localhost"
|
||||
[PDO]
|
||||
pdo.dsn.mydb="mysql:dbname=testdb;host=localhost"
|
||||
</programlisting>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
|
Reference in New Issue
Block a user