I have a class called "user" with a function "createAccount". Within it I like to access another class via PostageApp::mail
But as this class is outside the scope it is not accessible. global
seams to work for variables only. So how do I make a class name global?
include_once('../../ext_scripts/postageapp_class.inc');
class user {
function createAccount(...) {
global PostageApp;
[...]
$result = PostageApp::mail($mailTo, '', 'verify_email', array());
}
}