cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid bind.xml bindDataSource.xml

From: Date: Wed, 29 Sep 2004 15:08:25 +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-4902@lists.php.net to get a copy of this message
asnagy Wed Sep 29 11:08:25 2004 EDT Modified files: /peardoc/en/package/structures/structures-datagrid/structures-datagrid bind.xml bindDataSource.xml Log: Updated content http://cvs.php.net/diff.php/peardoc/en/package/structures/structures-datagrid/structures-datagrid/bind.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/bind.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid/bind.xml:1.1 peardoc/en/package/structures/structures-datagrid/structures-datagrid/bind.xml:1.2 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid/bind.xml:1.1 Wed Sep 29 10:33:23 2004 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/bind.xml Wed Sep 29 11:08:25 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.structures.structures_datagrid.structures_datagrid.bind"> <refnamediv> @@ -44,26 +44,13 @@ </para> </refsect1> - <refsect1 id="package.database.db.db.connect.return"> + <refsect1 id="package.structures.structures_datagrid.structures_datagrid.bind.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; - &note.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 @@ -84,4 +71,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/diff.php/peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml:1.1 peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml:1.2 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml:1.1 Wed Sep 29 10:33:23 2004 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid/bindDataSource.xml Wed Sep 29 11:08:25 2004 @@ -1,64 +1,41 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> -<refentry id="package.database.db.db.connect"> +<refentry id="package.structures.structures_datagrid.structures_datagrid.bindDataSource"> <refnamediv> - <refname>DB::connect()</refname> - <refpurpose>Connects to a database</refpurpose> + <refname>Structures_DataGrid::bindDataSource()</refname> + <refpurpose>Binds a &class.structures-datagrid-datasource object to the DataGrid.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> - <funcdef>object <function>connect</function></funcdef> + <funcdef>object <function>bindDataSource</function></funcdef> <paramdef> - mixed <parameter>$dsn</parameter> - </paramdef> - <paramdef> - array <parameter><optional>$options = array()</optional></parameter> + &class.structures-datagrid-datasource <parameter>$source</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.database.db.db.connect.desc"> + <refsect1 id="package.structures.structures_datagrid.structures_datagrid.bindDataSource.desc"> &title.desc; <para> - Creates a new DB connection object and connect to the specified - database + Binds a &class.structures-datagrid-datasource object to the DataGrid. </para> </refsect1> - <refsect1 id="package.database.db.db.connect.parameter"> + <refsect1 id="package.structures.structures_datagrid.structures_datagrid.bind.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> + &class.structures-datagrid-datasource + <parameter>$source</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. + The DataSource object </para> </listitem> </varlistentry> @@ -66,63 +43,13 @@ </para> </refsect1> - <refsect1 id="package.database.db.db.connect.return"> + <refsect1 id="package.structures.structures_datagrid.structures_datagrid.bindDataSource.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> + &type.mixed; - True upon success otherwise a &class.pear-error upon failure </para> </refsect1> - <refsect1 id="package.database.db.db.connect.note"> - &title.note; - &note.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 @@ -143,4 +70,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file

« previous php.pear.doc (#4902) next »