-
Notifications
You must be signed in to change notification settings - Fork 824
Document new PDO classes and methods #4115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
da3e260
PHP 8.4: Document PDO::connect()
Girgias e5a8662
PHP 8.4: Start documenting Pdo\Sqlite class
Girgias 6d504b0
PHP 8.4: Document Pdo\Odbc class
Girgias eeaa6cc
PHP 8.4: Document Pdo\Dblib class
Girgias 7ad512b
PHP 8.4: Document Pdo\Firebird class
Girgias 3145aad
PHP 8.4: Start documenting Pdo\Pgsql class
Girgias 898ec3e
Document new Pdo\Pgsql methods which did not exist previously
Girgias a015f16
PHP 8.4: Document Pdo\Mysql class
Girgias File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<refentry xml:id="pdo.connect" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<refnamediv> | ||
<refname>PDO::connect</refname> | ||
<refpurpose>Connect to a database and return a PDO subclass for drivers that support it</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis role="PDO"> | ||
<modifier>public</modifier> <modifier>static</modifier> <type>static</type><methodname>PDO::connect</methodname> | ||
<methodparam><type>string</type><parameter>dsn</parameter></methodparam> | ||
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>username</parameter><initializer>&null;</initializer></methodparam> | ||
<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> | ||
<methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam> | ||
</methodsynopsis> | ||
<simpara> | ||
Creates an instance of a <classname>PDO</classname> subclass for the | ||
database being connection if it exists, | ||
otherwise return a generic <classname>PDO</classname> instance. | ||
</simpara> | ||
</refsect1> | ||
|
||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('pdo.construct')/db:refsect1[@role='parameters']/.)"> | ||
<xi:fallback/> | ||
</xi:include> | ||
|
||
<refsect1 role="returnvalues"> | ||
&reftitle.returnvalues; | ||
<simpara> | ||
Returns an instance of a <classname>PDO</classname> subclass for the | ||
corresponding PDO driver if it exists, | ||
or a generic <classname>PDO</classname> instance. | ||
</simpara> | ||
</refsect1> | ||
|
||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('pdo.construct')/db:refsect1[@role='errors']/.)"> | ||
<xi:fallback/> | ||
</xi:include> | ||
|
||
<refsect1 role="seealso"> | ||
&reftitle.seealso; | ||
<simplelist> | ||
<member><classname>Pdo\Dblib</classname></member> | ||
<member><classname>Pdo\Firebird</classname></member> | ||
<member><classname>Pdo\Mysql</classname></member> | ||
<member><classname>Pdo\Odbc</classname></member> | ||
<member><classname>Pdo\Pgsql</classname></member> | ||
<member><classname>Pdo\Sqlite</classname></member> | ||
<member><methodname>PDO::__construct</methodname></member> | ||
</simplelist> | ||
</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 | ||
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<reference xml:id="class.pdo-dblib" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<title>The Pdo\Dblib class</title> | ||
<titleabbrev>Pdo\Dblib</titleabbrev> | ||
|
||
<partintro> | ||
|
||
<!-- {{{ ClassName intro --> | ||
<section xml:id="pdo-dblib.intro"> | ||
&reftitle.intro; | ||
<simpara> | ||
A <classname>PDO</classname> subclass representing a connection using | ||
the DBLib PDO driver. | ||
</simpara> | ||
</section> | ||
<!-- }}} --> | ||
|
||
<section xml:id="pdo-dblib.synopsis"> | ||
&reftitle.classsynopsis; | ||
<!-- {{{ Synopsis --> | ||
<classsynopsis class="class"> | ||
<ooclass> | ||
<classname>Pdo\Dblib</classname> | ||
</ooclass> | ||
<ooclass> | ||
<modifier>extends</modifier> | ||
<classname>PDO</classname> | ||
</ooclass> | ||
<classsynopsisinfo role="comment">&InheritedConstants;</classsynopsisinfo> | ||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.pdo')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Constants;']]))"> | ||
<xi:fallback/> | ||
</xi:include> | ||
<classsynopsisinfo role="comment">&Constants;</classsynopsisinfo> | ||
<fieldsynopsis> | ||
<modifier>public</modifier> | ||
<modifier>const</modifier> | ||
<type>int</type> | ||
<varname linkend="pdo-dblib.constants.attr-connection-timeout">Pdo\Dblib::ATTR_CONNECTION_TIMEOUT</varname> | ||
</fieldsynopsis> | ||
<fieldsynopsis> | ||
<modifier>public</modifier> | ||
<modifier>const</modifier> | ||
<type>int</type> | ||
<varname linkend="pdo-dblib.constants.attr-query-timeout">Pdo\Dblib::ATTR_QUERY_TIMEOUT</varname> | ||
</fieldsynopsis> | ||
<fieldsynopsis> | ||
<modifier>public</modifier> | ||
<modifier>const</modifier> | ||
<type>int</type> | ||
<varname linkend="pdo-dblib.constants.attr-stringify-uniqueidentifier">Pdo\Dblib::ATTR_STRINGIFY_UNIQUEIDENTIFIER</varname> | ||
</fieldsynopsis> | ||
<fieldsynopsis> | ||
<modifier>public</modifier> | ||
<modifier>const</modifier> | ||
<type>int</type> | ||
<varname linkend="pdo-dblib.constants.attr-version">Pdo\Dblib::ATTR_VERSION</varname> | ||
</fieldsynopsis> | ||
<fieldsynopsis> | ||
<modifier>public</modifier> | ||
<modifier>const</modifier> | ||
<type>int</type> | ||
<varname linkend="pdo-dblib.constants.attr-tds-version">Pdo\Dblib::ATTR_TDS_VERSION</varname> | ||
</fieldsynopsis> | ||
<fieldsynopsis> | ||
<modifier>public</modifier> | ||
<modifier>const</modifier> | ||
<type>int</type> | ||
<varname linkend="pdo-dblib.constants.attr-skip-empty-rowsets">Pdo\Dblib::ATTR_SKIP_EMPTY_ROWSETS</varname> | ||
</fieldsynopsis> | ||
<fieldsynopsis> | ||
<modifier>public</modifier> | ||
<modifier>const</modifier> | ||
<type>int</type> | ||
<varname linkend="pdo-dblib.constants.attr-datetime-convert">Pdo\Dblib::ATTR_DATETIME_CONVERT</varname> | ||
</fieldsynopsis> | ||
<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo> | ||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.pdo')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='PDO'])"> | ||
<xi:fallback/> | ||
</xi:include> | ||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.pdo')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='PDO'])"> | ||
<xi:fallback/> | ||
</xi:include> | ||
</classsynopsis> | ||
<!-- }}} --> | ||
|
||
</section> | ||
|
||
<section xml:id="pdo-dblib.constants"> | ||
&reftitle.constants; | ||
<variablelist> | ||
<varlistentry xml:id="pdo-dblib.constants.attr-connection-timeout"> | ||
<term><constant>Pdo\Dblib::ATTR_CONNECTION_TIMEOUT</constant></term> | ||
<listitem> | ||
<simpara> | ||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry xml:id="pdo-dblib.constants.attr-query-timeout"> | ||
<term><constant>Pdo\Dblib::ATTR_QUERY_TIMEOUT</constant></term> | ||
<listitem> | ||
<simpara> | ||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry xml:id="pdo-dblib.constants.attr-stringify-uniqueidentifier"> | ||
<term><constant>Pdo\Dblib::ATTR_STRINGIFY_UNIQUEIDENTIFIER</constant></term> | ||
<listitem> | ||
<simpara> | ||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry xml:id="pdo-dblib.constants.attr-version"> | ||
<term><constant>Pdo\Dblib::ATTR_VERSION</constant></term> | ||
<listitem> | ||
<simpara> | ||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry xml:id="pdo-dblib.constants.attr-tds-version"> | ||
<term><constant>Pdo\Dblib::ATTR_TDS_VERSION</constant></term> | ||
<listitem> | ||
<simpara> | ||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry xml:id="pdo-dblib.constants.attr-skip-empty-rowsets"> | ||
<term><constant>Pdo\Dblib::ATTR_SKIP_EMPTY_ROWSETS</constant></term> | ||
<listitem> | ||
<simpara> | ||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry xml:id="pdo-dblib.constants.attr-datetime-convert"> | ||
<term><constant>Pdo\Dblib::ATTR_DATETIME_CONVERT</constant></term> | ||
<listitem> | ||
<simpara> | ||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</section> | ||
</partintro> | ||
|
||
</reference> | ||
<!-- 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 | ||
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- $Revision$ --> | ||
<!-- | ||
Do NOT translate this file | ||
--> | ||
<versions> | ||
<function name="pdo\dblib" from="PHP 8 >= 8.4.0"/> | ||
</versions> | ||
<!-- 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 | ||
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.