mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fix intro text, rewording and re-indenting
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@163367 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b261f57583
commit
0bf5e30bf3
1 changed files with 8 additions and 8 deletions
|
@ -1,13 +1,13 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<sect1 id="language.oop5.visibility">
|
||||
<title>Visibility</title>
|
||||
<para>
|
||||
The visibility of a member or method can be defined by prefixing the
|
||||
declaration with the keywords: public, protected or private. Public
|
||||
declared items can be allow access to any caller. Protected limits access
|
||||
access to only classes inherited. Protected limits visiblity only to the
|
||||
class that defines the item.
|
||||
The visibility of a property or method can be defined by prefixing the
|
||||
declaration with the keywords: public, protected or private. Public
|
||||
declared items can be acessed everywhere. Protected limits access to
|
||||
inherited classes (and to the class that defines the item). Private limits
|
||||
visiblity only to the class that defines the item.
|
||||
</para>
|
||||
<sect2 id="language.oop5.visiblity-members">
|
||||
<title>Members Visibility</title>
|
||||
|
@ -74,8 +74,8 @@ $obj2->printHello();
|
|||
<simpara>
|
||||
The use PHP 4 use of declaring a variable with the keyword 'var' is
|
||||
no longer valid for PHP 5 objects. For compatiblity a variable declared
|
||||
in php will be assumed with public visiblity, and a E_STRICT warning will
|
||||
be issued.
|
||||
in php will be assumed with public visiblity, and a
|
||||
<constant>E_STRICT</constant> warning will be issued.
|
||||
</simpara>
|
||||
</note>
|
||||
</sect2>
|
||||
|
|
Loading…
Reference in a new issue