Menu
I was wondering if there is a way to exit a class object without killing the rest of the page.
the exit and die commands kills everything.
One could use return in the methods, but this wont work since some of the methods are called within other methods, and I want a more automatic way of exiting the class without having to make tons of return value checks in every single method.
So what I need is some kind of exit_class command?