curt            Sat Aug  7 20:59:54 2004 EDT

  Modified files:              
    /phpdoc/en/language/oop5    decon.xml 
  Log:
  Some rewording, and proto definitions
  
  
http://cvs.php.net/diff.php/phpdoc/en/language/oop5/decon.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/language/oop5/decon.xml
diff -u phpdoc/en/language/oop5/decon.xml:1.2 phpdoc/en/language/oop5/decon.xml:1.3
--- phpdoc/en/language/oop5/decon.xml:1.2       Fri Aug  6 19:50:50 2004
+++ phpdoc/en/language/oop5/decon.xml   Sat Aug  7 20:59:54 2004
@@ -1,10 +1,15 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
  <sect1 id="language.oop5.decon">
   <title>Constructors and Destructors</title>
 
   <sect2 id="oop5-decon-constructor">
    <title>Constructor</title>
+   <methodsynopsis>
+    <type>void</type><methodname>__construct</methodname>
+    <methodparam 
choice="opt"><type>mixed</type><parameter>args</parameter></methodparam>
+    <methodparam choice="opt"><parameter>...</parameter></methodparam>
+   </methodsynopsis>
    <para>
     PHP 5 allows developers to declare constructor methods for classes.
     Classes which have a constructor method call this method on each
@@ -52,14 +57,17 @@
    </para>
   </sect2>
 
+
   <sect2 id="oop5-decon-destructor">
    <title>Destructor</title>
+   <methodsynopsis>
+    <type>void</type><methodname>__destruct</methodname>
+   </methodsynopsis>
    <para>
     PHP 5 introduces a destructor concept similar to that of other
-    object-oriented languages, such as Java: When the last reference to an
-    object is destroyed the object's destructor, which is a class method
-    named <function>__destruct</function>  that receives no parameters, is
-    called before the object is freed from memory.
+    object-oriented languages, such as Java.  The destructor method will be
+    called as soon as all references to a paticular object are removed or when
+    the object is explicitly destroyed.
    </para>
    <example>
     <title>Destructor Example</title>

Reply via email to