From af5f871724bc19cab7b0385afc48ce9a5a5201b5 Mon Sep 17 00:00:00 2001 From: Gordon Oheim Date: Sun, 28 Oct 2012 17:29:06 +0000 Subject: [PATCH] Removed the reference to constants and methods. After a question on StackOverflow (http://stackoverflow.com/questions/13110446/accessing-constants-inside-php-object) I have removed the reference to constants and methods from the paragraph. IMO, it does not belong to a chapter about properties and the phrasing was somewhat to comprehend as well. The edit should make it easier to understand and cause less confusion. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328166 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/properties.xml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/language/oop5/properties.xml b/language/oop5/properties.xml index 7e8a37bd0a..2cb5846c2b 100644 --- a/language/oop5/properties.xml +++ b/language/oop5/properties.xml @@ -40,15 +40,13 @@ as if it had been declared as public. - - Within class methods the properties, constants, and methods may be - accessed by using the form $this->property - (where property is the name of the property; see - also variable property names) - unless the access is to a static property within the context of a - static class method, in which case it is accessed using the - form self::$property. See Static - Keyword for more information. + + Within class methods non-static properties may be accessed by using the form + $this->property (where property + is the name of the property). Static properties are accessed by using the + form self::$property. + See Static Keyword for more information + on the difference between static and non-static properties. The pseudo-variable $this is available inside