curt            Sat Jul 17 00:05:28 2004 EDT

  Modified files:              
    /phpdoc/en/language/oop5    cloning.xml 
  Log:
  WS Fixes
  
  
http://cvs.php.net/diff.php/phpdoc/en/language/oop5/cloning.xml?r1=1.1&r2=1.2&ty=u
Index: phpdoc/en/language/oop5/cloning.xml
diff -u phpdoc/en/language/oop5/cloning.xml:1.1 phpdoc/en/language/oop5/cloning.xml:1.2
--- phpdoc/en/language/oop5/cloning.xml:1.1     Sun Jul 11 08:33:25 2004
+++ phpdoc/en/language/oop5/cloning.xml Sat Jul 17 00:05:28 2004
@@ -1,18 +1,18 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
  <sect1 id="language.oop5.cloning">
   <title>Object cloning</title>
   
   <para>
-  Creating a copy of an object with fully replicated properties is not
-  always the wanted behavior. A good example of the need for copy
-  constructors, is if you have an object which represents a GTK window and the
-  object holds the resource of this GTK window, when you create a duplicate
-  you might want to create a new window with the same properties and have the
-  new object hold the resource of the new window. Another example is if your
-  object holds a reference to another object which it uses and when you
-  replicate the parent object you want to create a new instance of this other
-  object so that the replica has its own separate copy.
+   Creating a copy of an object with fully replicated properties is not
+   always the wanted behavior. A good example of the need for copy
+   constructors, is if you have an object which represents a GTK window and the
+   object holds the resource of this GTK window, when you create a duplicate
+   you might want to create a new window with the same properties and have the
+   new object hold the resource of the new window. Another example is if your
+   object holds a reference to another object which it uses and when you
+   replicate the parent object you want to create a new instance of this other
+   object so that the replica has its own separate copy.
   </para>
 
   <para>
@@ -40,9 +40,9 @@
    object, and only override properties that need to be changed.
   </para>
 
-    <example>
-     <title>Cloning an object</title>
-     <programlisting role="php">
+  <example>
+   <title>Cloning an object</title>
+   <programlisting role="php">
 <![CDATA[
 <?php
 class MyCloneable {
@@ -72,10 +72,8 @@
 print $obj_cloned->address . "\n";
 ?> 
 ]]>
-     </programlisting>
-    </example>
-
-
+   </programlisting>
+  </example>
 
  </sect1>
  

Reply via email to