nlopess         Sat Feb 11 20:45:02 2006 UTC

  Modified files:              
    /phpdoc/en/reference/classobj/functions     get-class-methods.xml 
  Log:
  fix #36368: incorrect use of myclass vs myobject
  
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/classobj/functions/get-class-methods.xml?r1=1.11&r2=1.12&diff_format=u
Index: phpdoc/en/reference/classobj/functions/get-class-methods.xml
diff -u phpdoc/en/reference/classobj/functions/get-class-methods.xml:1.11 
phpdoc/en/reference/classobj/functions/get-class-methods.xml:1.12
--- phpdoc/en/reference/classobj/functions/get-class-methods.xml:1.11   Fri Nov 
 4 14:12:13 2005
+++ phpdoc/en/reference/classobj/functions/get-class-methods.xml        Sat Feb 
11 20:45:02 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
 <!-- splitted from ./en/functions/classobj.xml, last change in rev 1.2 -->
   <refentry id="function.get-class-methods">
    <refnamediv>
@@ -25,7 +25,7 @@
        <programlisting role="php">
 <![CDATA[
 <?php
-$class_methods = get_class_methods($my_class); // see below the full example
+$class_methods = get_class_methods($my_object); // see below the full example
 ?>
 ]]>
        </programlisting>
@@ -45,7 +45,7 @@
     {
         return(true);
     }
-    
+
     // method 1
     function myfunc1() 
     {
@@ -59,13 +59,15 @@
     }
 }
 
-$class_methods = get_class_methods('my_object');
+$class_methods = get_class_methods('myclass');
+// or
+$class_methods = get_class_methods(new myclass());
 
 foreach ($class_methods as $method_name) {
     echo "$method_name\n";
 }
 
-?>      
+?>
 ]]>
       </programlisting>
       &example.outputs;

Reply via email to