derick          Tue Sep 20 14:25:00 2005 EDT

  Modified files:              
    /phpdoc/en/reference/classobj/functions     get-class-methods.xml 
  Log:
  - Changed example so that it uses the classname, and not an object, to figure
    out the method names - this manual page is not about get_class().
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/classobj/functions/get-class-methods.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc/en/reference/classobj/functions/get-class-methods.xml
diff -u phpdoc/en/reference/classobj/functions/get-class-methods.xml:1.9 
phpdoc/en/reference/classobj/functions/get-class-methods.xml:1.10
--- phpdoc/en/reference/classobj/functions/get-class-methods.xml:1.9    Fri Dec 
24 15:43:35 2004
+++ phpdoc/en/reference/classobj/functions/get-class-methods.xml        Tue Sep 
20 14:24:59 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
 <!-- splitted from ./en/functions/classobj.xml, last change in rev 1.2 -->
   <refentry id="function.get-class-methods">
    <refnamediv>
@@ -58,9 +58,7 @@
     }
 }
 
-$my_object = new myclass();
-
-$class_methods = get_class_methods(get_class($my_object));
+$class_methods = get_class_methods('my_object');
 
 foreach ($class_methods as $method_name) {
     echo "$method_name\n";
@@ -86,7 +84,8 @@
      </para>
     </warning>
     <simpara>
-     See also <function>get_class_vars</function> and
+     See also <function>get_class</function>,
+     <function>get_class_vars</function> and
      <function>get_object_vars</function>.
     </simpara>
    </refsect1>

Reply via email to