Hi,
we've been toying with the idea to implement a registry to combat the "global" in RC.
Here is the first draft/idea: http://trac.roundcube.net/trac.cgi/browser/branches/devel-vnext/program/incl...
For right now the class is a bunch of static sets and gets to store and retrieve variables - optionally a namespace ($ns).
In the first step it would be an "expensive" wrapper (Singleton) around $GLOBALS, until the entire code has been ported to use it.
Further down the road, I think we should switch it to use sessions and then implement backends (e.g. database) to allow plugins to store their data or for example to make data persistent across logins, etc..
Thoughts anyone?
Cheers, Till