I assumed that the function getAllUsers() is inside a class ... is it? Or if it is outside, from where do you call it?
I also assume it was on purpose that your MaintainUsersPage class is empty, and that there is actually a bunch of code inside those braces, that you deleted for the sake of brevity. However, one gotcha of PHP class inheritance is that instantiating a child class doesn't run the constructor of the parent automatically, it must be explicit:
class Kid extends Goat {
function Kid() {
parent::Goat();
//other stuff
}
}
Also, I assume that the function getAllUsers() is inside another class.
On a tangent: as long as there is an instance of MaintainUsersPage, instead of using a global $maintainusers, statement, you can simply use the ClassName::variable_name notation. Additionally, having an expression or statment immediately after an exit statement isn't very useful unless it's in an if/else clause.