note 54850 added to language.oop5.visibility
| From: | ChrisBlake at osu1 dot php dot net | Date: | Sun, 17 Jul 2005 18:22:46 +0000 |
| Subject: | note 54850 added to language.oop5.visibility | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92086@lists.php.net to get a copy of this message | ||
PHP seems to be developing its OO imlpementation which is awesome!
but
yet, it still doesnt support a few things and in this area, i wish it would support access modifiers
(visibility) on a class level and introduce the 'internal' access modifier. This could
allow you to define a class within a php script that is only visble within there.
This is the kind of class that you need to define to do work for another class but it itself is a
distinct entity. I dont like having a ton of classes visible outside of a php script, when only a
small subset of these classes is to be used..
This is more of a component abstraction above objects but it makes it oh so neater and more robust
since clients cannot bind to classes they cant 'see' they can't use the helper
classes... Its exactly the same thing as access modifiers on functions within a class...
bah! anway!!
PHP is coming along beautifully.. won't be too many more releases till i switch back to it
fully! PHP rocks!
----
Manual Page -- http://www.php.net/manual/en/language.oop5.visibility.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54850
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54850&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54850&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54850&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54850&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54850&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54850&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54850&report=yes
Search -- http://master.php.net/manage/user-notes.php