What is the best way to get a global variable inside a class?
I know I can easily just use "global $tmpVar;" inside a class function but is there a way to global the variable so it is available for all functions in a class without needing the ugly global $tmpVar; inside each function?
Ideally right after the "class tmpClass() {" declaration would be great, but not sure if this is possible.