Enhanced objects and reflection

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Enhanced objects and reflection

Post by Ollie Saunders »

Does anybody know of any libraries that provide a decent base object class or enhanced OO reflection features?
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Re: Enhanced objects and reflection

Post by Jenk »

"enhanced features" ? What is this vague Microsoft Marketing speak you talk of?
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: Enhanced objects and reflection

Post by Ollie Saunders »

I'm not looking for anything specific. I mean enhanced in the sense of improved. I'm interested to see object-oriented attempts to improve PHP reflection. They only have to be improved in the opinion of the author.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Enhanced objects and reflection

Post by Christopher »

I'd need to get a little more detail about that "enhanced OO reflection features" means. Is there another language or library that has what you are thinking about?

How about this?

http://us2.php.net/reflection
(#10850)
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: Enhanced objects and reflection

Post by Ollie Saunders »

I'm looking for libraries where the author has attempted to improve upon PHP's native reflection API (forget the OO bit, I think that's confusing things). I'm deliberately not specifying any implementation preference because I'm happy to accept any. I'm looking for ideas.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Enhanced objects and reflection

Post by alex.barylski »

There are libraries that use reflection do some pretty things, like annotation, etc, but I know of none that actually extend the existing reflection classes to provide cooler, generic functionality. Annotation is pretty specific, but the sky is the limit if you have the imagination.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Enhanced objects and reflection

Post by Christopher »

Ollie Saunders wrote:I'm looking for libraries where the author has attempted to improve upon PHP's native reflection API (forget the OO bit, I think that's confusing things). I'm deliberately not specifying any implementation preference because I'm happy to accept any. I'm looking for ideas.
My guess it that you are looking for something with a cleaner, more elegant interface. You can do just about anything with the PHP Reflection classes, but they are kitchen-sink of functionality.
(#10850)
gregor171
Forum Newbie
Posts: 22
Joined: Thu Apr 16, 2009 5:09 pm
Location: Ljubljana, Slovenia

Re: Enhanced objects and reflection

Post by gregor171 »

Improved in what way. You might be thinking of something more easy to use? A wrapper class?

ps: Reflection is already OO.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: Enhanced objects and reflection

Post by Ollie Saunders »

My guess it that you are looking for something with a cleaner, more elegant interface.
Yes, this is what I mean.
Post Reply