1 package mircoders.module;
7 import javax.servlet.*;
8 import javax.servlet.http.*;
10 import freemarker.template.*;
29 public class ModuleBreaking extends AbstractModule
31 static Logfile theLog;
35 public ModuleBreaking (StorageObject theStorage)
37 if (theLog == null) theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Breaking.Logfile"));
38 if (theStorage == null) theLog.printWarning("ModuleBreaking -- StorageObject was null!");
39 this.theStorage = theStorage;
43 public EntityList getBreakingNews() {
44 EntityList returnList = null;
46 returnList = getByWhereClause(null,"webdb_create desc",0,5);
48 catch (Exception ex) {
49 theLog.printWarning("--getBreakingNews(): could not fetch Breaking News" + ex.toString());