1 package mircoders.module;
7 import javax.servlet.*;
8 import javax.servlet.http.*;
10 import freemarker.template.*;
18 import mircoders.storage.*;
20 public class ModuleImages extends AbstractModule {
21 static Logfile theLog;
25 public ModuleImages(StorageObject theStorage) {
27 if (theLog == null) theLog = Logfile.getInstance(MirConfig.getProp("Home")+MirConfig.getProp("Module.Bilder.Logfile"));
28 if (theStorage == null) theLog.printWarning("StorageObject was null!");
29 this.theStorage = theStorage;
35 public SimpleList getBilderAsSimpleList() {
37 // String sql = "select id, name from Bilder order by name";
38 return ((DatabaseImages)theStorage).getPopupData();