OrderItemModel
A model for assets related to OrderModel.
implements: hash
bundle: standard portal bundle
since 2.0.0
A model for assets related to OrderModel.
Defined hash keys
count ↦ number
since 2.0.0
Returns the amount of this item in order
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)
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)
mpOrderFiles ↦ map<string,PriceModel>
since 2.0.0
Returns a map containing the price for a filetype
price ↦ PriceModel
since 2.0.0
Returns the summarized price the amount of this item in order
singlePrice ↦ PriceModel
since 2.0.0
Returns the price of one item
Permission Verbs used
orderItem.count
since 2.0.0 'orderItem.count' - guards requests to '→count'
orderItem.mpOrderFiles
since 2.0.0 'orderItem.mpOrderFiles' - guards requests to '→mpOrderFiles'
orderItem.price
since 2.0.0 'orderItem.price' - guards requests to '→price'
orderItem.singlePrice
since 2.0.0 'orderItem.singlePrice' - guards requests to '→singlePrice'