[dev] Horde 5 was: Re: [commits] Horde branch develop updated. fa956a4d83a7227e2a5d47bfe87185854e151fbc

Jan Schneider jan at horde.org
Wed Feb 22 09:14:11 UTC 2012


Zitat von Michael M Slusarz <slusarz at horde.org>:

> But while it is fresh on my mind, and so that I have a record of it,  
> thought I would lay down some elements on how to fix the whole  
> Registry init mess that led to this thread.  The way I see it, we  
> need the following:
>
> init(): Given the fact that people have been using this method  
> incorrectly, its probably best renamed to something like  
> bootstrap().  It's the minimum code necessary to allow the registry  
> to access the application framework (NOT the application data).   
> E.g. setting up factories.  This method is potentially called before  
> an application is authenticated, and possibly before the framework  
> is available.
>
> authenticateInit(): This is a method that is called ONCE per  
> session, when an application is authenticated to.
>
> init() (or onPush()?): This is a method that is called ONCE per page  
> load, when the application is first pushed onto the stack.  This is  
> where global application initialization can be done, although as a  
> practical matter things should be auto-loaded as needed to reduce  
> resources.

+1

My method name suggestions: bootstrap(),  
authenticated()/onAuth()/onAuthenticate(), start()/init()

-- 
The Horde Project
http://www.horde.org/




More information about the dev mailing list