[pLog-svn] Crystal Poll

Oscar Renalias oscar at renalias.net
Sat Jun 9 07:43:51 EDT 2007


You can put all your table initialization code in the  
PluginBase::install() method, that is only called once when the  
plugin is registered for the first time Well to be more precise, it's  
called every time the "plugin centre" page is processed or refreshed,  
so you still need to build code around the possibility that this  
method is called more than once... For that matter, please see for  
example how the 'mailcentre' plugin combines the install() method  
with PDb's "data dictionary" to dynamically create tables only if neeed.

On 9 Jun 2007, at 14:13, Ahmad Saleh wrote:

> Hi
> I'm working on poll plugin, and it must have it's own tables, so  
> can I include this tables creation query in separate file so it  
> will not check that if this tables valid or not in each request?
>
> Regards,
>     Ahmad
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list