Its an home made one yes.
I don't know about the constants.. There is a ticket for that, but I am very uncertain of the value it brings versus the work to do it and maintain.. Logic separation should be based on classname, and the code is just a pretty identifier which goes completely unused in PHP apps