Object-Oriented PHP for registry.php