sean            Tue Dec  7 14:28:42 2004 EDT

  Modified files:              
    /phpdoc/en/language oop.xml 
  Log:
  elaborated on when a class may be 'broken'
  
http://cvs.php.net/diff.php/phpdoc/en/language/oop.xml?r1=1.54&r2=1.55&ty=u
Index: phpdoc/en/language/oop.xml
diff -u phpdoc/en/language/oop.xml:1.54 phpdoc/en/language/oop.xml:1.55
--- phpdoc/en/language/oop.xml:1.54     Thu Sep 16 04:28:23 2004
+++ phpdoc/en/language/oop.xml  Tue Dec  7 14:28:42 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.54 $ -->
+<!-- $Revision: 1.55 $ -->
  <chapter id="language.oop">
   <title>Classes and Objects (PHP 4)</title>
 
@@ -49,7 +49,9 @@
    <warning>
     <simpara>
      You can <emphasis>NOT</emphasis> break up a class definition into
-     multiple files, or multiple PHP blocks. The following will not work:
+     multiple files. You also can <emphasis>NOT</emphasis> break a class
+     definition into multiple PHP blocks, unless the break is within a method
+     declaration. The following will not work:
     </simpara>
     <para>
      <informalexample>
@@ -68,6 +70,26 @@
       </programlisting>
      </informalexample>
     </para>
+    <simpara>
+     However, the following is allowed:
+    </simpara>
+    <para>
+     <informalexample>
+      <programlisting role="php">
+<![CDATA[
+<?php
+class test {
+    function test() {
+        ?>
+        <?php
+        print 'OK';
+    }
+}
+?>
+]]>
+      </programlisting>
+     </informalexample>
+    </para>
    </warning>
 
    <simpara>

Reply via email to