6.0.0-alpha14
6/26/25
Last Modified 8/15/06 by eraserhd
  • Backlinks
  • Similar Pages
  • Attachments
  • History
  • Back to

This should be a general landing page for thoughts on and debate about removing globals.

Should we refactor to remove all global variables and other couplings with global state ($_SESSION, $_REQUEST, singleton pattern, etc)? We can do this by:

  • Encapsulting request in a request object
    • Instantiate master Horde object (e.g. $horde = new Horde($config);)
    • InstantiateApplicationObjectRefactoring
    • Page handling become method object (e.g. $page = new Turba_BrowsePage($app, $request); $page->execute();)