[cvs] [Wiki] changed: BCBreakingHordeIssues

Jason Felice jfelice at cronosys.com
Tue Aug 15 10:58:04 PDT 2006


eraserhd  Tue, 15 Aug 2006 10:58:04 -0700

Modified page: http://wiki.horde.org/BCBreakingHordeIssues
New Revision:  2.12
Change log:  Move RemoveGlobals to own page

@@ -32,10 +32,6 @@
  * use __autoload() instead of require_once
   * Using a global __autoload() function is not good practice for a framework because you can only have one __autoload function - I'm not in favor of it (ChuckHagenbuch).
   * Using it in Horde apps as opposed to the framework is an option, but still leaves us all of the framework requires.
   * http://php.net/spl-autoload-register is a potential solution. With PHP 5.1.x (or 5.2, or ...) as a minimum version requiring SPL should be okay.
-* 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);}})
- * //Instantiate// application object (e.g. {{$app = new Turba($horde,$config);}})
- * Page handling become method object (e.g. {{$page = new Turba_BrowsePage($app, $request); $page->execute();}})
+* RemoveGlobals
  


More information about the cvs mailing list