bjori           Thu Jan 11 23:05:52 2007 UTC

  Modified files:              
    /phpdoc/en/language/oop5    overloading.xml 
  Log:
  Fixed bug#40103 (Visibility should be public for overload methods in the 
documentation)
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/overloading.xml?r1=1.13&r2=1.14&diff_format=u
Index: phpdoc/en/language/oop5/overloading.xml
diff -u phpdoc/en/language/oop5/overloading.xml:1.13 
phpdoc/en/language/oop5/overloading.xml:1.14
--- phpdoc/en/language/oop5/overloading.xml:1.13        Wed Feb 22 13:26:05 2006
+++ phpdoc/en/language/oop5/overloading.xml     Thu Jan 11 23:05:52 2007
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
  <sect1 id="language.oop5.overloading">
   <title>Overloading</title>
 
@@ -10,7 +10,7 @@
    member or method you're trying to access.
    All overloading methods must not be defined as
    <link linkend="language.oop5.static">static</link>.
-   In PHP 5.0.x, all overloading methods must be defined as
+   All overloading methods must be defined as
    <link linkend="language.oop5.visibility">public</link>.
   </para>
   <para>
@@ -58,7 +58,7 @@
     public $n;
     private $x = array("a" => 1, "b" => 2, "c" => 3);
 
-    private function __get($nm)
+    public function __get($nm)
     {
         echo "Getting [$nm]\n";
 
@@ -71,7 +71,7 @@
         }
     }
 
-    private function __set($nm, $val)
+    public function __set($nm, $val)
     {
         echo "Setting [$nm] to $val\n";
 
@@ -83,14 +83,14 @@
         }
     }
 
-    private function __isset($nm)
+    public function __isset($nm)
     {
         echo "Checking if $nm is set\n";
 
         return isset($this->x[$nm]);
     }
 
-    private function __unset($nm)
+    public function __unset($nm)
     {
         echo "Unsetting $nm\n";
 
@@ -182,7 +182,7 @@
 {
     private $x = array(1, 2, 3);
 
-    private function __call($m, $a)
+    public function __call($m, $a)
     {
         print "Method $m called:\n";
         var_dump($a);

Reply via email to