cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid bind.xml bindDataSource.xml
| From: | Andrew Nagy | Date: | Wed, 29 Sep 2004 14:33:23 +0000 |
| Subject: | cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid bind.xml bindDataSource.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4899@lists.php.net to get a copy of this message | ||
asnagy Wed Sep 29 10:33:23 2004 EDT
Added files:
/peardoc/en/package/structures/structures-datagrid/structures-datagrid
bind.xml
bindDataSource.xml
Log:
Initial Checkin
http://cvs.php.net/co.php/peardoc/en/package/structures/structures-datagrid/structures-datagrid/bind.xml?r=1.1&p=1
Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/bind.xml
+++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/bind.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<refentry id="package.structures.structures_datagrid.structures_datagrid.bind">
<refnamediv>
<refname>Structures_DataGrid::bind()</refname>
<refpurpose>Binds a 2 dimension array to the DataGrid</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
<funcdef>mixed <function>bind</function></funcdef>
<paramdef>
array <parameter>$rs</parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1
id="package.structures.structures_datagrid.structures_datagrid.bind.desc">
&title.desc;
<para>
Binds a 2 dimension array to the DataGrid using the array keys as the header
and the array values as the data.
</para>
</refsect1>
<refsect1
id="package.structures.structures_datagrid.structures_datagrid.bind.parameter">
&title.param;
<para>
<variablelist>
<varlistentry>
<term>
&type.array;
<parameter>$rs</parameter>
</term>
<listitem>
<para>
The 2 dimension array to be rendered in the DataGrid
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 id="package.database.db.db.connect.return">
&title.returns;
<para>
&type.mixed; - True upon success otherwise a &class.pear-error upon failure
</para>
</refsect1>
<refsect1 id="package.database.db.db.connect.note">
&title.note;
¬e.shouldstatic;
</refsect1>
<refsect1 id="package.database.db.db.connect.see">
&title.see;
<para>
<link linkend="package.database.db.db-common.disconnect">
<function>disconnect</function></link>,
<link linkend="package.database.db.intro-connect">
<quote>Intro - Connect</quote></link>
</para>
</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
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../../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
-->
http://cvs.php.net/co.php/peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml?r=1.1&p=1
Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml
+++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<refentry id="package.database.db.db.connect">
<refnamediv>
<refname>DB::connect()</refname>
<refpurpose>Connects to a database</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
<funcdef>object <function>connect</function></funcdef>
<paramdef>
mixed <parameter>$dsn</parameter>
</paramdef>
<paramdef>
array <parameter><optional>$options = array()</optional></parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.database.db.db.connect.desc">
&title.desc;
<para>
Creates a new DB connection object and connect to the specified
database
</para>
</refsect1>
<refsect1 id="package.database.db.db.connect.parameter">
&title.param;
<para>
<variablelist>
<varlistentry>
<term>
&type.string; or &type.array;
<parameter>$dsn</parameter>
</term>
<listitem>
<para>
Data Source Name. String formats are described in the
<link linkend="package.database.db.intro-dsn">DSN</link> section
while array formats are covered in the
<link linkend="package.database.db.intro-connect"><quote>Intro -
Connect</quote></link> section.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
&type.array;
<parameter>$options</parameter>
</term>
<listitem>
<para>
An optional argument can contain runtime configuration settings
for this package.
See <link linkend="package.database.db.db-common.setoption">
<function>setOption</function></link> for more information on the
available settings.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 id="package.database.db.db.connect.return">
&title.returns;
<para>
&type.object; - a new DB object
or a &class.db-error; object on failure
</para>
</refsect1>
<refsect1 id="package.database.db.db.connect.throws">
&title.throws;
<para>
<table>
<title>&title.throws.errortable;</title>
<tgroup cols="4">
<thead>
<row>
<entry>Error code</entry>
<entry>Error message</entry>
<entry>Reason</entry>
<entry>Solution</entry>
</row>
</thead>
<tbody>
<row>
<entry><constant>DB_ERROR_NOT_FOUND</constant></entry>
<entry>
not found
</entry>
<entry>
The database specific class was not found.
</entry>
<entry>
Check the <parameter>$dsn</parameter> and make sure
to have an complete installation of the
<filename>DB-package</filename> and that you database
is supported by &class.db;.
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</refsect1>
<refsect1 id="package.database.db.db.connect.note">
&title.note;
¬e.shouldstatic;
</refsect1>
<refsect1 id="package.database.db.db.connect.see">
&title.see;
<para>
<link linkend="package.database.db.db-common.disconnect">
<function>disconnect</function></link>,
<link linkend="package.database.db.intro-connect">
<quote>Intro - Connect</quote></link>
</para>
</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
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../../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
-->