Assuming I have the following classes in different files:
As of PHP 5.3 you can use get_called_class and some string functions to achieve this.
get_called_class
substr(get_called_class(), 0, strrpos(get_called_class(), "\\"))