Session the basket should operate on.
Optional
pProjectInfo: ProjectInfoOptional pre-created ProjectInfo
instance. Will be ignored if pSession
and pProjectInfo.session
are not equal.
Readonly
eventWill be triggered from Basket.clear()
Readonly
eventTriggered every time the header calculation has changed.
Note: A changed header calculation may also imply that the calculation of all items has changed if
some conditions depend on header conditions. The event eventItemUpdated
may not be triggered
for all items in these cases (e.g. for indirect changes).
Readonly
eventReadonly
eventReadonly
eventTriggered every time an item changed.
Note: The event will not be triggered if the item calculation has indirectly changed by
some header conditions. You should also listen to the event eventHeaderCalculationChanged
.
Readonly
eventWill be triggered everytime if items got pasted into the basket. (e.g. copy/paste or OEX import)
Readonly
eventWill be triggered if this basket instance gets modified.
Readonly
eventReadonly
eventReadonly
eventReadonly
eventWill be triggered from Basket.updateSessionLanguage()
If true calculation line errors will be also included in the inconsistencyReason
of the article ItemProperties
.
true
Protected
mProtected
mProtected
mProtected
mProtected
mDefines the image resolution for server generated images. (default: 512)
Checks the consistency of all articles. Returns false if at least one of the articles or its configuration is inconsistent. Note: Errors of invisible calculation lines will be ignored.
If true the calculation will be also checked for error. (default: true)
Protected
createProtected
internalOptional
pOptions: LoadFromSessionOptionsProtected
loadStatic
InitInitializes the default generated image options for the given session. The default options will be used from EAIWS if article images are requested (e.g. by calling BasketService.getImages() or BasketService.getItemFields()) but no image was generated yet for the articles.
Static
PrepareCreate necessary basket columns if they don't exist yet in the provided session.
Note: This function will be also called from Basket.loadFromSession()
.
Generated using TypeDoc
Creates a new Basket instance.