[PHP] Re: get file from object

2009-01-06 Thread Nathan Rixham
Jack Bates wrote: How do I get the file where a class is defined, from an instance of that class? you could hack around with exceptions or simply use Reflection.. it's all provided for you $testObject = new YourClass(); $class = new ReflectionClass( $testObject ); echo

[PHP] Re: get file from object

2009-01-06 Thread Nathan Rixham
Nathan Rixham wrote: Jack Bates wrote: How do I get the file where a class is defined, from an instance of that class? you could hack around with exceptions or simply use Reflection.. it's all provided for you $testObject = new YourClass(); $class = new ReflectionClass(