How would I get something like this to work?
$class_name = \'ClassPeer\'; $class_name::doSomething();
Reflection (PHP 5 supports it) is how you'd do this. Read that page and you should be able to figure out how to invoke the function like that.
$func = new ReflectionFunction('somefunction'); $func->invoke();
Documentation Link