note 82383 added to language.oop5.reflection

From: Date: Tue, 08 Apr 2008 21:32:42 +0000
Subject: note 82383 added to language.oop5.reflection
Groups: php.notes 
Request: Send a blank email to php-notes+get-138037@lists.php.net to get a copy of this message
I think there are still some limitations in the reflection abilities: * ReflectionClass :: getConstants() returns an associative array with the constants and their values inside. I don't understand, why they don't use an object there, too (e.g. ReflectionConstant). The final effect is, that you aren't able to read out the DocComment of constants. * There is no nice way to access the default values of properties. You can workaround a bit with get_class_vars(), but this just returns the values of public properties. No way to access protected or even private properties. * PHP 5 has a nice feature called type hinting. This is completely omitted. You may ask, if a certain parameter is an array, but you won't get the denoted type hint. Maybe this is, or will be extended. I hope so. hth, Niels ---- Server IP: 208.69.120.35 Probable Submitter: 92.226.201.156 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.reflection.php Edit -- https://master.php.net/note/edit/82383 Del: integrated -- https://master.php.net/note/delete/82383/integrated Del: useless -- https://master.php.net/note/delete/82383/useless Del: bad code -- https://master.php.net/note/delete/82383/bad+code Del: spam -- https://master.php.net/note/delete/82383/spam Del: non-english -- https://master.php.net/note/delete/82383/non-english Del: in docs -- https://master.php.net/note/delete/82383/in+docs Del: other reasons-- https://master.php.net/note/delete/82383 Reject -- https://master.php.net/note/reject/82383 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138037) next »