vrana           Thu Jul 21 04:59:59 2005 EDT

  Modified files:              
    /phpdoc/en/reference/classobj/functions     get-class.xml 
                                                get-parent-class.xml 
  Log:
  Parameter is optional since PHP 5 (bug #33795)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/classobj/functions/get-class.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/classobj/functions/get-class.xml
diff -u phpdoc/en/reference/classobj/functions/get-class.xml:1.7 
phpdoc/en/reference/classobj/functions/get-class.xml:1.8
--- phpdoc/en/reference/classobj/functions/get-class.xml:1.7    Mon Nov  1 
08:25:30 2004
+++ phpdoc/en/reference/classobj/functions/get-class.xml        Thu Jul 21 
04:59:55 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <!-- splitted from ./en/functions/classobj.xml, last change in rev 1.4 -->
   <refentry id="function.get-class">
    <refnamediv>
@@ -10,7 +10,7 @@
     <title>Description</title>
      <methodsynopsis>
       <type>string</type><methodname>get_class</methodname>
-      <methodparam><type>object</type><parameter>obj</parameter></methodparam>
+      <methodparam 
choice="opt"><type>object</type><parameter>obj</parameter></methodparam>
      </methodsynopsis>
     <para>
      This function returns the name of the class of which the
@@ -25,6 +25,12 @@
       original notation too, just like class names from PHP extensions.
      </simpara>
     </note>
+    <note>
+     <para>
+      Since PHP 5, <parameter>obj</parameter> is optional if called from the
+      object's method.
+     </para>
+    </note>
     <para>
      <example>
       <title>Using <function>get_class</function></title>
http://cvs.php.net/diff.php/phpdoc/en/reference/classobj/functions/get-parent-class.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/classobj/functions/get-parent-class.xml
diff -u phpdoc/en/reference/classobj/functions/get-parent-class.xml:1.6 
phpdoc/en/reference/classobj/functions/get-parent-class.xml:1.7
--- phpdoc/en/reference/classobj/functions/get-parent-class.xml:1.6     Mon Nov 
 1 08:25:30 2004
+++ phpdoc/en/reference/classobj/functions/get-parent-class.xml Thu Jul 21 
04:59:55 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <!-- splitted from ./en/functions/classobj.xml, last change in rev 1.4 -->
   <refentry id="function.get-parent-class">
    <refnamediv>
@@ -10,7 +10,7 @@
     <title>Description</title>
      <methodsynopsis>
       <type>string</type><methodname>get_parent_class</methodname>
-      <methodparam><type>mixed</type><parameter>obj</parameter></methodparam>
+      <methodparam 
choice="opt"><type>mixed</type><parameter>obj</parameter></methodparam>
      </methodsynopsis>
     <para>
      If <parameter>obj</parameter> is an object, returns the name of the
@@ -22,6 +22,12 @@
      class of the class with that name. This functionality was added in PHP
      4.0.5.
     </para>
+    <note>
+     <para>
+      Since PHP 5, <parameter>obj</parameter> is optional if called from the
+      object's method.
+     </para>
+    </note>
     <para>
      <example>
       <title>Using <function>get_parent_class</function></title>

Reply via email to