|
|
@ -46,4 +46,13 @@ public class DiMdbNotification extends DiActiveRecord { |
|
|
|
notification.status = "new"; |
|
|
|
notification.save(); |
|
|
|
} |
|
|
|
|
|
|
|
// notify warning |
|
|
|
public static void warning( String message ) { |
|
|
|
var notification = new DiMdbNotification(); |
|
|
|
notification.type = "warning"; |
|
|
|
notification.data = message; |
|
|
|
notification.status = "new"; |
|
|
|
notification.save(); |
|
|
|
} |
|
|
|
} |