Skip to content

Commit 2527c5e

Browse files
authored
Add stubs for Pdo\Sqlite methods (#4142)
1 parent 9127058 commit 2527c5e

3 files changed

Lines changed: 258 additions & 0 deletions

File tree

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<refentry xml:id="pdo-sqlite.loadextension" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<refnamediv>
4+
<refname>Pdo\Sqlite::loadExtension</refname>
5+
<refpurpose>Description</refpurpose>
6+
</refnamediv>
7+
8+
<refsect1 role="description">
9+
&reftitle.description;
10+
<methodsynopsis role="Pdo\\Sqlite">
11+
<modifier>public</modifier> <type>void</type><methodname>Pdo\Sqlite::loadExtension</methodname>
12+
<methodparam><type>string</type><parameter>name</parameter></methodparam>
13+
</methodsynopsis>
14+
&warn.undocumented.func;
15+
<simpara>
16+
Description.
17+
</simpara>
18+
</refsect1>
19+
20+
<refsect1 role="parameters">
21+
&reftitle.parameters;
22+
<variablelist>
23+
<varlistentry>
24+
<term><parameter>name</parameter></term>
25+
<listitem>
26+
<simpara>
27+
Description.
28+
</simpara>
29+
</listitem>
30+
</varlistentry>
31+
</variablelist>
32+
</refsect1>
33+
34+
<refsect1 role="returnvalues">
35+
&reftitle.returnvalues;
36+
<simpara>
37+
&return.void;
38+
</simpara>
39+
</refsect1>
40+
41+
<refsect1 role="errors">
42+
&reftitle.errors;
43+
<simpara>
44+
When does this function issue <constant>E_*</constant> level errors,
45+
and/or throw <exceptionname>Exception</exceptionname>s.
46+
</simpara>
47+
</refsect1>
48+
49+
<refsect1 role="examples">
50+
&reftitle.examples;
51+
<example xml:id="pdo-sqlite.loadextension.example.basic">
52+
<title><methodname>Pdo\Sqlite::loadExtension</methodname> example</title>
53+
<simpara>
54+
Description.
55+
</simpara>
56+
<programlisting role="php">
57+
<![CDATA[
58+
<?php
59+
echo "Code example";
60+
?>
61+
]]>
62+
</programlisting>
63+
&example.outputs;
64+
<screen>
65+
<![CDATA[
66+
Code example
67+
]]>
68+
</screen>
69+
</example>
70+
</refsect1>
71+
72+
<refsect1 role="notes">
73+
&reftitle.notes;
74+
<note>
75+
<simpara>
76+
Any notes that don't fit anywhere else should go here.
77+
</simpara>
78+
</note>
79+
</refsect1>
80+
81+
<refsect1 role="seealso">
82+
&reftitle.seealso;
83+
<simplelist>
84+
<member><methodname>ClassName::otherMethodName</methodname></member>
85+
<member><function>some_function</function></member>
86+
<!--<member><link linkend="some.id.chunk.to.link">something appendix</link></member>-->
87+
</simplelist>
88+
</refsect1>
89+
90+
</refentry>
91+
<!-- Keep this comment at the end of the file
92+
Local variables:
93+
mode: sgml
94+
sgml-omittag:t
95+
sgml-shorttag:t
96+
sgml-minimize-attributes:nil
97+
sgml-always-quote-attributes:t
98+
sgml-indent-step:1
99+
sgml-indent-data:t
100+
indent-tabs-mode:nil
101+
sgml-parent-document:nil
102+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
103+
sgml-exposed-tags:nil
104+
sgml-local-catalogs:nil
105+
sgml-local-ecat-files:nil
106+
End:
107+
vim600: syn=xml fen fdm=syntax fdl=2 si
108+
vim: et tw=78 syn=sgml
109+
vi: ts=1 sw=1
110+
-->
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<refentry xml:id="pdo-sqlite.openblob" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<refnamediv>
4+
<refname>Pdo\Sqlite::openBlob</refname>
5+
<refpurpose>Description</refpurpose>
6+
</refnamediv>
7+
8+
<refsect1 role="description">
9+
&reftitle.description;
10+
<methodsynopsis role="Pdo\\Sqlite">
11+
<modifier>public</modifier> <type class="union"><type>resource</type><type>false</type></type><methodname>Pdo\Sqlite::openBlob</methodname>
12+
<methodparam><type>string</type><parameter>table</parameter></methodparam>
13+
<methodparam><type>string</type><parameter>column</parameter></methodparam>
14+
<methodparam><type>int</type><parameter>rowid</parameter></methodparam>
15+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>dbname</parameter><initializer>"main"</initializer></methodparam>
16+
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>Pdo\Sqlite::OPEN_READONLY</constant></initializer></methodparam>
17+
</methodsynopsis>
18+
&warn.undocumented.func;
19+
<simpara>
20+
Description.
21+
</simpara>
22+
</refsect1>
23+
24+
<refsect1 role="parameters">
25+
&reftitle.parameters;
26+
<variablelist>
27+
<varlistentry>
28+
<term><parameter>table</parameter></term>
29+
<listitem>
30+
<simpara>
31+
Description.
32+
</simpara>
33+
</listitem>
34+
</varlistentry>
35+
<varlistentry>
36+
<term><parameter>column</parameter></term>
37+
<listitem>
38+
<simpara>
39+
Description.
40+
</simpara>
41+
</listitem>
42+
</varlistentry>
43+
<varlistentry>
44+
<term><parameter>rowid</parameter></term>
45+
<listitem>
46+
<simpara>
47+
Description.
48+
</simpara>
49+
</listitem>
50+
</varlistentry>
51+
<varlistentry>
52+
<term><parameter>dbname</parameter></term>
53+
<listitem>
54+
<simpara>
55+
Description.
56+
</simpara>
57+
</listitem>
58+
</varlistentry>
59+
<varlistentry>
60+
<term><parameter>flags</parameter></term>
61+
<listitem>
62+
<simpara>
63+
One of the <constant>Pdo\Sqlite::OPEN_<replaceable>*</replaceable></constant>
64+
</simpara>
65+
</listitem>
66+
</varlistentry>
67+
</variablelist>
68+
</refsect1>
69+
70+
<refsect1 role="returnvalues">
71+
&reftitle.returnvalues;
72+
<simpara>
73+
Description.
74+
</simpara>
75+
</refsect1>
76+
77+
<refsect1 role="errors">
78+
&reftitle.errors;
79+
<simpara>
80+
When does this function issue <constant>E_*</constant> level errors,
81+
and/or throw <exceptionname>Exception</exceptionname>s.
82+
</simpara>
83+
</refsect1>
84+
85+
<refsect1 role="examples">
86+
&reftitle.examples;
87+
<example xml:id="pdo-sqlite.openblob.example.basic">
88+
<title><methodname>Pdo\Sqlite::openBlob</methodname> example</title>
89+
<simpara>
90+
Description.
91+
</simpara>
92+
<programlisting role="php">
93+
<![CDATA[
94+
<?php
95+
echo "Code example";
96+
?>
97+
]]>
98+
</programlisting>
99+
&example.outputs;
100+
<screen>
101+
<![CDATA[
102+
Code example
103+
]]>
104+
</screen>
105+
</example>
106+
</refsect1>
107+
108+
<refsect1 role="notes">
109+
&reftitle.notes;
110+
<note>
111+
<simpara>
112+
Any notes that don't fit anywhere else should go here.
113+
</simpara>
114+
</note>
115+
</refsect1>
116+
117+
<refsect1 role="seealso">
118+
&reftitle.seealso;
119+
<simplelist>
120+
<member><methodname>ClassName::otherMethodName</methodname></member>
121+
<member><function>some_function</function></member>
122+
<!--<member><link linkend="some.id.chunk.to.link">something appendix</link></member>-->
123+
</simplelist>
124+
</refsect1>
125+
126+
</refentry>
127+
<!-- Keep this comment at the end of the file
128+
Local variables:
129+
mode: sgml
130+
sgml-omittag:t
131+
sgml-shorttag:t
132+
sgml-minimize-attributes:nil
133+
sgml-always-quote-attributes:t
134+
sgml-indent-step:1
135+
sgml-indent-data:t
136+
indent-tabs-mode:nil
137+
sgml-parent-document:nil
138+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
139+
sgml-exposed-tags:nil
140+
sgml-local-catalogs:nil
141+
sgml-local-ecat-files:nil
142+
End:
143+
vim600: syn=xml fen fdm=syntax fdl=2 si
144+
vim: et tw=78 syn=sgml
145+
vi: ts=1 sw=1
146+
-->

reference/pdo_sqlite/versions.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<function name="pdo\sqlite::createaggregate" from="PHP 8 &gt;= 8.4.0"/>
99
<function name="pdo\sqlite::createcollation" from="PHP 8 &gt;= 8.4.0"/>
1010
<function name="pdo\sqlite::createfunction" from="PHP 8 &gt;= 8.4.0"/>
11+
<function name="pdo\sqlite::loadextension" from="PHP 8 &gt;= 8.4.0"/>
12+
<function name="pdo\sqlite::openblob" from="PHP 8 &gt;= 8.4.0"/>
1113
</versions>
1214
<!-- Keep this comment at the end of the file
1315
Local variables:

0 commit comments

Comments
 (0)