cvs: peardoc /en/package/database/db-dataobject/db-dataobject whereadd.xml

From: Date: Tue, 09 Jan 2007 19:47:38 +0000
Subject: cvs: peardoc /en/package/database/db-dataobject/db-dataobject whereadd.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9264@lists.php.net to get a copy of this message
moosh Tue Jan 9 19:47:38 2007 UTC Modified files: /peardoc/en/package/database/db-dataobject/db-dataobject whereadd.xml Log: bug #9786 http://cvs.php.net/viewvc.cgi/peardoc/en/package/database/db-dataobject/db-dataobject/whereadd.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/database/db-dataobject/db-dataobject/whereadd.xml diff -u peardoc/en/package/database/db-dataobject/db-dataobject/whereadd.xml:1.3 peardoc/en/package/database/db-dataobject/db-dataobject/whereadd.xml:1.4 --- peardoc/en/package/database/db-dataobject/db-dataobject/whereadd.xml:1.3 Mon Mar 10 22:27:41 2003 +++ peardoc/en/package/database/db-dataobject/db-dataobject/whereadd.xml Tue Jan 9 19:47:38 2007 @@ -1,4 +1,5 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> +<!-- $Id: whereadd.xml,v 1.4 2007/01/09 19:47:38 moosh Exp $ --> <refentry id="package.database.db-dataobject.db-dataobject.whereadd"> <refnamediv> <refname>-&gt;whereAdd()</refname> @@ -6,73 +7,77 @@ </refnamediv> <refsynopsisdiv> <funcsynopsis> - + <funcprototype> <funcdef>void <function>$DB_DataObject-&gt;whereAdd</function></funcdef> - + <paramdef> string <parameter><optional>$where</optional></parameter> </paramdef> - + <paramdef> string <parameter><optional>$logic</optional></parameter> </paramdef> - - + + </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.database.db-dataobject.db-dataobject.whereadd.desc"> &title.desc; <para> - Adds items to the where part of a SQL query. - Calling this without any arguments clears the where condition. - The default behavior is to add 'AND' to the existing conditions, use the $logic parameter to - append OR conditions. + Adds items to the where part of a SQL query. + + Calling this without any arguments clears the where condition. + + The default behavior is to add 'AND' to the existing conditions, + use the $logic parameter to append OR conditions. </para> - </refsect1> - + </refsect1> + <refsect1 id="package.database.db-dataobject.db-dataobject.whereadd.parameter"> &title.param; <para> <itemizedlist> - + <listitem> <para> - <parameter>string $cond</parameter> - condition to add, or blank to reset the conditions + <parameter>string $cond</parameter> + - condition to add, or blank to reset the conditions </para> - </listitem> - + </listitem> + <listitem> <para> - <parameter>string $logic</parameter> - optional logic &quot;OR&quot; (defaults to &quot;AND&quot;) + <parameter>string $logic</parameter> + - optional logic &quot;OR&quot; (defaults to &quot;AND&quot;) </para> - </listitem> - + </listitem> + </itemizedlist> </para> - </refsect1> - - - - + </refsect1> + + + + <refsect1 id="package.database.db-dataobject.db-dataobject.whereadd.note"> - &title.note; - + &title.note; + &note.notstatic; - - - + + + <simpara></simpara> - </refsect1> - + </refsect1> + <refsect1 id="package.database.db-dataobject.db-dataobject.whereadd.see"> - &title.see; + &title.see; <!-- Additional links go here --> <para> - + </para> - </refsect1> + </refsect1> <refsect1 id="package.database.db-dataobject.db-dataobject.whereadd.example"> &title.example; <example> @@ -93,10 +98,10 @@ $person->find(); while ($person->fetch()) { - echo "$person->id} {$person->name}<BR>"; + echo "{$person->id} {$person->name}<BR>"; } - -]]> + +]]> </programlisting> </example> <example> @@ -106,11 +111,11 @@ SELECT * FROM person WHERE age > 12 AND age < 30 SELECT * FROM person WHERE age < 12 OR age > 30 - -]]> + +]]> </programlisting> - </example> - </refsect1> + </example> + </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: @@ -130,4 +135,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +-->

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