[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-doc
Subject:    [PEAR-DOC] cvs: peardoc /en/package/database/db-dataobject intro-purpose.xml
From:       "Martin Jansen" <mj () php ! net>
Date:       2003-09-29 11:24:53
[Download RAW message or body]

mj		Mon Sep 29 07:24:53 2003 EDT

  Modified files:              
    /peardoc/en/package/database/db-dataobject	intro-purpose.xml 
  Log:
  * Typo fixing
  
  
Index: peardoc/en/package/database/db-dataobject/intro-purpose.xml
diff -u peardoc/en/package/database/db-dataobject/intro-purpose.xml:1.6 \
                peardoc/en/package/database/db-dataobject/intro-purpose.xml:1.7
--- peardoc/en/package/database/db-dataobject/intro-purpose.xml:1.6	Fri Aug  1 \
                22:34:37 2003
+++ peardoc/en/package/database/db-dataobject/intro-purpose.xml	Mon Sep 29 07:24:53 \
2003 @@ -1,4 +1,4 @@
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <refentry id="package.database.db-dataobject.intro-purpose">
     <refnamediv>
       <refname>Introduction</refname>
@@ -10,7 +10,7 @@
       <title>Introduction</title>
       <para>
        <classname>DB_DataObject</classname> is a SQL Builder and Data Modeling Layer \
                
-       built on top of PEAR::&class.db;, It main purpose is to
+       built on top of PEAR::&class.db;. Its main purpose is to
       </para>
       <para>
         <itemizedlist>
@@ -18,7 +18,7 @@
             <simpara>Build SQL and execute statements based on the objects \
variables.</simpara>  </listitem>
           <listitem>
-            <simpara>Group source code around the Data that they relate \
to.</simpara> +            <simpara>Group source code around the data that they \
relate to.</simpara>  </listitem>
           <listitem>
             <simpara>Provide a simple consistent API to access and manipulate that \
data.</simpara> @@ -27,7 +27,7 @@
       </para>
       
        <para>
-       So what does that mean in english?, well, if you look around at some of the \
better written PHP  +       So what does that mean in english? Well, if you look \
                around at some of the better written PHP 
        applications and frameworks out there, you will notice a common approach to \
                using classes to 
        wrap access to database tables or groups. The prime example of this is the \
person object, which would   frequently look something like this.
@@ -63,7 +63,7 @@
         </programlisting></example>
         </para>
       <para>
-      The key benifit of this approach is that you grouping similar actions on a \
single table in one place, and are  +      The key benifit of this approach is that \
                you are grouping similar actions on a single table in one place, and \
                are 
       more likely to spot duplicated code (eg. two methods that do similar things). \
                You will also notice the global $db variable
       used here - the fact is that most of the time you will use a common database \
connection for all your classes, so how should this  be dealt with?
@@ -94,7 +94,7 @@
       }
       
       function getAge() {
-          $age = date('Y') - date('Y',$birthDate);
+          $age = date('Y') - date('Y',$this->birthDate);
       }
       
   }
@@ -163,7 +163,7 @@
       <para>
       As you can see, by assigning values to the object before the find method is \
                called, you can set conditions for the query. 
       <classname>DB_DataObject</classname>s behaves in a similar way to this, \
                however, you can also add more conditions with the whereAdd() method, \
                or 
-      restrict the selection using the selectAdd() Method.
+      restrict the selection using the selectAdd() method.
         </para>
         
         

-- 
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic