ReflectionClass::getConstants()
Posted: January 7th, 2013, 10:03 am
When I call:
on any object, it will end up like
Error: Call to undefined method: ReflectionClass::getConstants() in xxxxx
I can see, that there is getConstants method defined in PHP.Library.SPL.ReflectionClass, but in runtime it seem to be inaccessible.
- Code: Select all
$r = new ReflectionClass($this);
$r->getConstants();
on any object, it will end up like
Error: Call to undefined method: ReflectionClass::getConstants() in xxxxx
I can see, that there is getConstants method defined in PHP.Library.SPL.ReflectionClass, but in runtime it seem to be inaccessible.