Page 1 of 1
Enhanced objects and reflection
Posted: Mon Jul 13, 2009 7:13 pm
by Ollie Saunders
Does anybody know of any libraries that provide a decent base object class or enhanced OO reflection features?
Re: Enhanced objects and reflection
Posted: Mon Jul 13, 2009 8:04 pm
by Jenk
"enhanced features" ? What is this vague Microsoft Marketing speak you talk of?
Re: Enhanced objects and reflection
Posted: Mon Jul 13, 2009 8:15 pm
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.
Re: Enhanced objects and reflection
Posted: Mon Jul 13, 2009 8:55 pm
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
Re: Enhanced objects and reflection
Posted: Tue Jul 14, 2009 7:00 am
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.
Re: Enhanced objects and reflection
Posted: Tue Jul 14, 2009 8:56 am
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.
Re: Enhanced objects and reflection
Posted: Tue Jul 14, 2009 11:44 am
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.
Re: Enhanced objects and reflection
Posted: Tue Jul 14, 2009 4:45 pm
by gregor171
Improved in what way. You might be thinking of something more easy to use? A wrapper class?
ps: Reflection is already OO.
Re: Enhanced objects and reflection
Posted: Tue Jul 14, 2009 5:03 pm
by Ollie Saunders
My guess it that you are looking for something with a cleaner, more elegant interface.
Yes, this is what I mean.