[pLog-svn] r2249 - in plog/trunk/class/database/pdb: . datadict drivers

Oscar Renalias oscar at renalias.net
Sun Jun 19 22:08:22 GMT 2005


> Log:
> Added support for 'data dictionaries' (http://phplens.com/lens/ 
> adodb/docs-datadict.htm) which
> is a feature that I very much liked from ADOdb and that was used in  
> many plugins... It has
> definitely added some extra code but 98% of it is loaded  
> dynamically only when needed. The size
> increase in driver is almost unnoticeable, though it has grown.
> This commit also means that we do not depend on ADOdb anymore at  
> all, and all the plugins that
> relied on this feature (atom, karma, etc) are now working just fine  
> under 1.1 without any changes.
> I am sure we can still shrink the size of the code a bit more but  
> the current size is still
> within the limits of normality :)

Well I actually lied... Due to Ben's changes, now the connection to  
the db is initialized when really needed, i.e. when Model::Execute or  
Model::initializeDb() is called so before we can use data  
dictionaries, we need to initialize the connection. All we need to do  
is add

$this->_initializeDb()

to classes like plugins/atom/class/dao/atompasswords.class.php so  
that these plugins work.

This change is much smaller than if we had had to get rid of data  
dictionaries altogether! :)

Oscar



More information about the pLog-svn mailing list