|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<refentry xml:id="pdo.connect" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 3 | + <refnamediv> |
| 4 | + <refname>PDO::connect</refname> |
| 5 | + <refpurpose>Description</refpurpose> |
| 6 | + </refnamediv> |
| 7 | + |
| 8 | + <refsect1 role="description"> |
| 9 | + &reftitle.description; |
| 10 | + <methodsynopsis role="PDO"> |
| 11 | + <modifier>public</modifier> <modifier>static</modifier> <type>static</type><methodname>PDO::connect</methodname> |
| 12 | + <methodparam><type>string</type><parameter>dsn</parameter></methodparam> |
| 13 | + <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>username</parameter><initializer>&null;</initializer></methodparam> |
| 14 | + <methodparam choice="opt"><modifier role="attribute">#[\SensitiveParameter]</modifier><type class="union"><type>string</type><type>null</type></type><parameter>password</parameter><initializer>&null;</initializer></methodparam> |
| 15 | + <methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam> |
| 16 | + </methodsynopsis> |
| 17 | + <simpara> |
| 18 | + Creates an instance of a <classname>PDO</classname> subclass for the |
| 19 | + database being connection if it exists, |
| 20 | + otherwise return a generic <classname>PDO</classname> instance. |
| 21 | + </simpara> |
| 22 | + </refsect1> |
| 23 | + |
| 24 | + <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('pdo.construct')/db:refsect1[@role='parameters']/.)"> |
| 25 | + <xi:fallback/> |
| 26 | + </xi:include> |
| 27 | + |
| 28 | + <refsect1 role="returnvalues"> |
| 29 | + &reftitle.returnvalues; |
| 30 | + <simpara> |
| 31 | + Returns an instance of a <classname>PDO</classname> subclass for database |
| 32 | + drivers that support it, or a generic <classname>PDO</classname> instance. |
| 33 | + </simpara> |
| 34 | + </refsect1> |
| 35 | + |
| 36 | + <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('pdo.construct')/db:refsect1[@role='errors']/.)"> |
| 37 | + <xi:fallback/> |
| 38 | + </xi:include> |
| 39 | + |
| 40 | + <refsect1 role="seealso"> |
| 41 | + &reftitle.seealso; |
| 42 | + <simplelist> |
| 43 | + <member><classname>Pdo\Dblib</classname></member> |
| 44 | + <member><classname>Pdo\Firebird</classname></member> |
| 45 | + <member><classname>Pdo\Mysql</classname></member> |
| 46 | + <member><classname>Pdo\Odbc</classname></member> |
| 47 | + <member><classname>Pdo\Pgsql</classname></member> |
| 48 | + <member><classname>Pdo\Sqlite</classname></member> |
| 49 | + <member><methodname>PDO::__construct</methodname></member> |
| 50 | + </simplelist> |
| 51 | + </refsect1> |
| 52 | + |
| 53 | +</refentry> |
| 54 | +<!-- Keep this comment at the end of the file |
| 55 | +Local variables: |
| 56 | +mode: sgml |
| 57 | +sgml-omittag:t |
| 58 | +sgml-shorttag:t |
| 59 | +sgml-minimize-attributes:nil |
| 60 | +sgml-always-quote-attributes:t |
| 61 | +sgml-indent-step:1 |
| 62 | +sgml-indent-data:t |
| 63 | +indent-tabs-mode:nil |
| 64 | +sgml-parent-document:nil |
| 65 | +sgml-default-dtd-file:"~/.phpdoc/manual.ced" |
| 66 | +sgml-exposed-tags:nil |
| 67 | +sgml-local-catalogs:nil |
| 68 | +sgml-local-ecat-files:nil |
| 69 | +End: |
| 70 | +vim600: syn=xml fen fdm=syntax fdl=2 si |
| 71 | +vim: et tw=78 syn=sgml |
| 72 | +vi: ts=1 sw=1 |
| 73 | +--> |
0 commit comments