[eluser]The Hamburgler[/eluser]
I've had this issue before when ever i've needed to call a function outside of a method. It seems to be a php limitation as I don't think "$this" exists until your class has been constructed.
Easiest way around it is to move the code into your class __construct()