From 0bf5e30bf378c7c29917c54a5c8de68dd0c621a2 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Thu, 15 Jul 2004 11:03:25 +0000 Subject: [PATCH] fix intro text, rewording and re-indenting git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@163367 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/visibility.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/language/oop5/visibility.xml b/language/oop5/visibility.xml index 78bde7effc..4a1ee73aca 100644 --- a/language/oop5/visibility.xml +++ b/language/oop5/visibility.xml @@ -1,13 +1,13 @@ - + Visibility - 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. Members Visibility @@ -74,8 +74,8 @@ $obj2->printHello(); 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 + E_STRICT warning will be issued.