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

From: Date: Mon, 21 Sep 2009 07:24:05 +0000
Subject: svn: /phpdoc/en/trunk/language/oop5/ visibility.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4962@lists.php.net to get a copy of this message
torben Mon, 21 Sep 2009 07:24:05 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=288506 Log: Minor clarity fixes. Changed paths: U phpdoc/en/trunk/language/oop5/visibility.xml Modified: phpdoc/en/trunk/language/oop5/visibility.xml =================================================================== --- phpdoc/en/trunk/language/oop5/visibility.xml 2009-09-21 06:36:21 UTC (rev 288505) +++ phpdoc/en/trunk/language/oop5/visibility.xml 2009-09-21 07:24:05 UTC (rev 288506) @@ -4,17 +4,21 @@ <title>Visibility</title> <para> The visibility of a property or method can be defined by prefixing - the declaration with the keywords: public, protected or - private. Class members declared public can be accessed - everywhere. Members declared protected can be accessed only within - the class itself and by inherited and parent classes. Members - declared as private may only be accessed by the class that defines - the member. + the declaration with the keywords <emphasis>public</emphasis>, + <emphasis>protected</emphasis> or + <emphasis>private</emphasis>. Class members declared public can be + accessed everywhere. Members declared protected can be accessed + only within the class itself and by inherited and parent + classes. Members declared as private may only be accessed by the + class that defines the member. </para> <sect2 xml:id="language.oop5.visibility-members"> <title>Property Visibility</title> <para> - Class properties must be defined with public, private, or protected. + Class properties must be defined as public, private, or + protected. If declared using <emphasis>var</emphasis> without an + explicit visibility keyword, the property will be defined as + public. </para> <para> <example> @@ -85,8 +89,9 @@ <sect2 xml:id="language.oop5.visiblity-methods"> <title>Method Visibility</title> <para> - Class methods must be defined with public, private, or protected. Methods - without any declaration are defined as public. + Class methods may be defined as public, private, or + protected. Methods declared without any explicit visibility + keyword are defined as public. </para> <para> <example>

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