svn: /phpdoc/en/trunk/language/oop5/ properties.xml

From: Date: Sun, 28 Oct 2012 17:39:42 +0000
Subject: svn: /phpdoc/en/trunk/language/oop5/ properties.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-10631@lists.php.net to get a copy of this message
gooh Sun, 28 Oct 2012 17:39:42 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=328167 Log: Added the names of the respective tokens to access properties (thank hakre for the suggestion) 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 17:29:06 UTC (rev 328166) +++ phpdoc/en/trunk/language/oop5/properties.xml 2012-10-28 17:39:42 UTC (rev 328167) @@ -40,13 +40,13 @@ as if it had been declared as <literal>public</literal>. </para> </note> - <para> - Within class methods non-static properties may be accessed by using the form - <varname>$this-&gt;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> + Within class methods non-static properties may be accessed by using + <literal>-&gt;</literal> (Object Operator): <varname>$this-&gt;property</varname> + (where <literal>property</literal> is the name of the property). + Static properties are accessed by using the <literal>::</literal> (Double Colon): + <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

« previous php.doc.cvs (#10631) next »