From e839ed6d20f7a7bbcb72f336c3ae348012cba6e9 Mon Sep 17 00:00:00 2001 From: Daniel Convissor Date: Fri, 21 Mar 2008 12:46:12 +0000 Subject: [PATCH] Minor clean up of examples. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@255662 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/overloading.xml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/language/oop5/overloading.xml b/language/oop5/overloading.xml index 606d0c3cee..530fe3caf0 100644 --- a/language/oop5/overloading.xml +++ b/language/oop5/overloading.xml @@ -1,5 +1,5 @@ - + Overloading @@ -172,11 +172,13 @@ class MemberTest { return $tmp; } + /** As of PHP 5.1.0 */ public function __isset($name) { echo "Is '$name' set?\n"; return isset($this->data[$name]); } + /** As of PHP 5.1.0 */ public function __unset($name) { echo "Unsetting '$name'\n"; unset($this->data[$name]); @@ -184,7 +186,7 @@ class MemberTest { /** Not a magic method, just here for example. */ public function getHidden() { - echo "'hidden' visible here, __get() not used\n"; + echo "'hidden' visible here so __get() not used\n"; return $this->hidden; } } @@ -219,12 +221,12 @@ Unsetting 'a' Is 'a' set? bool(false) 1 -'hidden' visible here, __get() not used +'hidden' visible here so __get() not used 2 Getting 'hidden' -Notice: Undefined property: hidden in on line 64 in on line 28 +Notice: Undefined property: hidden in on line 64 in on line 28 ]]> @@ -268,24 +270,22 @@ Notice: Undefined property: hidden in on line 64 in on test('in object context'); -MethodTest::test('in static context'); +MethodTest::test('in static context'); // As of PHP 5.3.0 ?> ]]>