mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
WS fix (start at col 0)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@180258 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
70c2b1a741
commit
8af737a4e3
1 changed files with 49 additions and 49 deletions
|
@ -1,48 +1,48 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id="function.sqlite-fetch-column-types">
|
||||
<refnamediv>
|
||||
<refname>sqlite_fetch_column_types</refname>
|
||||
<refname>SQLiteDatabase->fetchColumnTypes</refname>
|
||||
<refpurpose>
|
||||
Return an array of column types from a particular table
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>sqlite_fetch_column_types</methodname>
|
||||
<methodparam><type>string</type><parameter>table_name</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>dbhandle</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>result_type</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Object oriented style (method):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>SQLiteDatabase</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>fetchColumnTypes</methodname>
|
||||
<methodparam><type>string</type><parameter>table_name</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>result_type</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
<function>sqlite_fetch_column_types</function> returns an array of column
|
||||
data types from the specified <parameter>table_name</parameter> table.
|
||||
</para>
|
||||
<para>
|
||||
The optional <parameter>result_type</parameter> parameter accepts a
|
||||
constant and determines how the returned array will be indexed. Using
|
||||
<constant>SQLITE_ASSOC</constant> will return only associative indices
|
||||
(named fields) while <constant>SQLITE_NUM</constant> will return only
|
||||
numerical indices (ordinal field numbers). <constant>SQLITE_BOTH</constant>
|
||||
will return both associative and numerical indices.
|
||||
<constant>SQLITE_ASSOC</constant> is the default for this function.
|
||||
</para>
|
||||
&sqlite.case-fold;
|
||||
<para>
|
||||
<example>
|
||||
<title><function>sqlite_fetch_column_types</function> example</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id="function.sqlite-fetch-column-types">
|
||||
<refnamediv>
|
||||
<refname>sqlite_fetch_column_types</refname>
|
||||
<refname>SQLiteDatabase->fetchColumnTypes</refname>
|
||||
<refpurpose>
|
||||
Return an array of column types from a particular table
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>sqlite_fetch_column_types</methodname>
|
||||
<methodparam><type>string</type><parameter>table_name</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>dbhandle</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>result_type</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Object oriented style (method):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>SQLiteDatabase</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>fetchColumnTypes</methodname>
|
||||
<methodparam><type>string</type><parameter>table_name</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>result_type</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
<function>sqlite_fetch_column_types</function> returns an array of column
|
||||
data types from the specified <parameter>table_name</parameter> table.
|
||||
</para>
|
||||
<para>
|
||||
The optional <parameter>result_type</parameter> parameter accepts a
|
||||
constant and determines how the returned array will be indexed. Using
|
||||
<constant>SQLITE_ASSOC</constant> will return only associative indices
|
||||
(named fields) while <constant>SQLITE_NUM</constant> will return only
|
||||
numerical indices (ordinal field numbers). <constant>SQLITE_BOTH</constant>
|
||||
will return both associative and numerical indices.
|
||||
<constant>SQLITE_ASSOC</constant> is the default for this function.
|
||||
</para>
|
||||
&sqlite.case-fold;
|
||||
<para>
|
||||
<example>
|
||||
<title><function>sqlite_fetch_column_types</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$db = sqlite_open('mysqlitedb');
|
||||
|
@ -67,11 +67,11 @@ foreach ($cols as $column => $type) {
|
|||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue