g
Frontend | Backend | Api

Admin\Models\Backend\Notification

Notification for showing on Backend for users

Method Description Returns
getId() int
getStatus() string
getMessage() string
getLink() string
getCreated() Date the record was created. DateTime
getSeen() Returns a value when notification was seen by user DateTime
isSeen() Returns if notifications was seen (not necessary read) by a user bool
getRead() Returns a value when notification was read by user DateTime
isRead() Returns if notifications was read by a user bool
getCreatedBy() User
isTask() Returns if notification is a task: resolved or not bool
isResolved() Returns if notification is a task: exactly resolved bool
isNewRecord() Check if the record is a new record bool
isHierarchicalModel() Check whether a model is a hierarchical model, i.e. can have children bool
isVersionedModel() Check whether a model is versioned bool
getCreatedLocalDatetimeString() Returns created date and time as localized string (as set up in config). string
getCreatedAgoString() Returns created date and time in "some time ago" format. It could be second, minute, hour, day, week, month, year. string