PHP classes should normally be in a file by themselves.
Static PHP methods can be called within PHP without instantiation of the class as below:
static function myStaticFunction()
return "The uninstantiated return value";
// echos "The uninstantiated return value"
I tried putting the call to the PHP static method in the class constructor and got an error message. Putting all of the functionality in the constructor would also defeat the utility of the class for other purposes.
If this is possible please show how one would call a static PHP class method using ajax without using an intermediary script. If this has been answered before please provide a link to the answer before closing this question as I have not found an answer directly on point.