|
Posted by Good Man on 11/09/07 19:36
"Rik Wasmus" <luiheidsgoeroe@hotmail.com> wrote in
news:op.t1jftppe5bnjuv@metallium.lan:
> On Fri, 09 Nov 2007 19:31:34 +0100, Good Man <heyho@letsgo.com> wrote:
>
>> Jerry Stuckle <jstucklex@attglobal.net> wrote in news:ZOidnXa6r-
>> RzPKnanZ2dnUVZ_uLinZ2d@comcast.com:
>>
>>>> PS: Any one know how to get the list of PRIVATE and PROTECTED
>>>> methods from a class? Without parsing the actual file?
>>>>
>>>>
>>>
>>> No, that's the whole purpose of PRIVATE and PROTECTED members. If
>>> you want to list them, you need the code as a class member.
>>
>>
>> Hiya...
>>
>> I'm in the middle of learning OO programming, and probably not the
>> person to offer solutions, but perhaps I can use this moment to ask
>> if the following is a solution to his PS? And if it's not, perhaps
>> someone can explain to me why?
>
> It is no solution to his problem because he wants the display the
> _value_ of a private/protected variable. That's simply not possible
> with PHP Reflection.
Right, but I interpreted his "PS" as a different request, one that simply
was a list of private and protected methods, with no mention of values.
[Back to original message]
|