svn: /phpdoc/en/trunk/language/oop5/ properties.xml
| From: | Gordon Oheim | Date: | Sun, 28 Oct 2012 17:29:06 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/oop5/ properties.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-10630@lists.php.net to get a copy of this message | ||
gooh Sun, 28 Oct 2012 17:29:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=328166
Log:
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.
Changed paths:
U phpdoc/en/trunk/language/oop5/properties.xml
Modified: phpdoc/en/trunk/language/oop5/properties.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/properties.xml 2012-10-28 05:31:06 UTC (rev 328165)
+++ phpdoc/en/trunk/language/oop5/properties.xml 2012-10-28 17:29:06 UTC (rev 328166)
@@ -40,15 +40,13 @@
as if it had been declared as <literal>public</literal>.
</para>
</note>
- <para>
- Within class methods the properties, constants, and methods may be
- accessed by using the form <varname>$this->property</varname>
- (where <literal>property</literal> is the name of the property; see
- also <link linkend="language.variables.variable">variable property
names</link>)
- 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 <varname>self::$property</varname>. See <link
linkend="language.oop5.static">Static
- Keyword</link> for more information.
+ <para>
+ Within class methods non-static properties may be accessed by using the form
+ <varname>$this->property</varname> (where
<literal>property</literal>
+ is the name of the property). Static properties are accessed by using the
+ form <varname>self::$property</varname>.
+ See <link linkend="language.oop5.static">Static Keyword</link> for more
information
+ on the difference between static and non-static properties.
</para>
<para>
The pseudo-variable <varname>$this</varname> is available inside