EventModel
Model for assets of type 'event.'
implements: hash
bundle: standard portal bundle
since 2.0.35
Model for assets of type 'event.'
Defined hash keys
content ↦ AssetModel
since 2.0.35
Returns content related to event
eventEndDate ↦ Date
since 2.0.35
Returns end date from feature 'censhare:given-time-end'
eventStartDate ↦ Date
since 2.0.35
get start date from feature 'censhare:given-time-start'
hasLock.<String:hashKey> ↦ Boolean
since 5.2.0
Check if the value accessed by the hash-key 'hashKey' within this model is secured by an active lock by permission rights management
- Example:
model.hasLock.elem - is elem in model guarded by an active permission lock?
article.hasLock.text - Returns if there is a permission lock for text configured in 'article' ? (In this example 'article' is of of type ArticleModel)
isAllDay ↦ boolean
since 2.0.35
Returns if event is whole day
isLocked.<String:hashKey> ↦ Boolean
since 5.2.0
Check if the value accessed by the hash-key 'hashKey' within this model is is locked for current user by permission rights management
- Example:
model.isLocked.elem -- is value for elem in model locked for current logged-in user?
article.isLocked.text -- Returns if the value for 'text' within 'article' is locked (not accessible) for current user. (In this example 'article' is of of type ArticleModel)
Permission Verbs used
article.content
since 2.0.35 'article.content' - guards requests to '→content'
article.eventEndDate
since 2.0.35 'article.eventEndDate' - guards requests to '→eventEndDate'
article.eventStartDate
since 2.0.35 'article.eventStartDate' - guards requests to '→eventStartDate'
article.isAllDay
since 2.0.35 'article.isAllDay' - guards requests to '→isAllDay'