[pLog-svn] r3204 - in plugins/trunk/atom: . class/dao
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Apr 7 19:36:53 GMT 2006
Author: oscar
Date: 2006-04-07 19:36:53 +0000 (Fri, 07 Apr 2006)
New Revision: 3204
Modified:
plugins/trunk/atom/class/dao/atompasswords.class.php
plugins/trunk/atom/pluginatom.class.php
Log:
moved db initialization code to the PluginBase::install() method
Modified: plugins/trunk/atom/class/dao/atompasswords.class.php
===================================================================
--- plugins/trunk/atom/class/dao/atompasswords.class.php 2006-04-07 17:54:48 UTC (rev 3203)
+++ plugins/trunk/atom/class/dao/atompasswords.class.php 2006-04-07 19:36:53 UTC (rev 3204)
@@ -25,7 +25,6 @@
// initialize the db and check the tables
$this->_initializeDb();
- $this->checkTables();
}
/**
@@ -89,4 +88,4 @@
return( $this->Execute( $query ));
}
}
-?>
\ No newline at end of file
+?>
Modified: plugins/trunk/atom/pluginatom.class.php
===================================================================
--- plugins/trunk/atom/pluginatom.class.php 2006-04-07 17:54:48 UTC (rev 3203)
+++ plugins/trunk/atom/pluginatom.class.php 2006-04-07 19:36:53 UTC (rev 3204)
@@ -39,5 +39,21 @@
false // ...remember :)
);
}
+
+
+
+ /**
+ * This method is only called when the list of plugins is being refreshed, so it's
+ * a good time to create our tables
+ */
+ function install()
+ {
+ include_once( PLOG_CLASS_PATH."plugins/atom/class/dao/atompasswords.class.php" );
+ $passwords = new AtomPasswords();
+ $passwords->checkTables();
+
+ return( true );
+ }
+
}
-?>
\ No newline at end of file
+?>
More information about the pLog-svn
mailing list