public ModuleBreaking (StorageObject theStorage)
{
- if (theLog == null) theLog = Logfile.getInstance(this.getClass().getName());
+ if (theLog == null) theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Breaking.Logfile"));
if (theStorage == null) theLog.printWarning("ModuleBreaking -- StorageObject was null!");
this.theStorage = theStorage;
}
// Methoden
-
+ public EntityList getBreakingNews() {
+ EntityList returnList = null;
+ try {
+ returnList = getByWhereClause(null,"webdb_create desc",0,5);
+ }
+ catch (Exception ex) {
+ theLog.printWarning("--getBreakingNews(): could not fetch Breaking News" + ex.toString());
+ }
+ return returnList;
+ }
}