\DMSDocumentCartExtension
Class DMSDocumentCartExtension
Synopsis
class DMSDocumentCartExtension
extends DataExtension
{
- // members
- private DMSDocumentCartController $cartController;
- private static array $db = ;
- private static array $summary_fields = ;
- // methods
- public boolean isAllowedInCart()
- public void updateCMSFields()
- public DMSDocument incrementPrintRequest()
- public bool isInCart()
- public bool getHasQuantityLimit()
- public int getMaximumQuantity()
- public string getActionLink()
- public DMSDocumentCartController getCartController()
- public DMSDocumentCart getCart()
- public false getValidationResult()
- public void updateFieldsForFile()
Hierarchy
Extends
- DataExtension
Members
private
- $cartController — DMSDocumentCartController
- $db
- $summary_fields
Methods
public
- getActionLink() — Builds and returns a valid DMSDocumentController URL from the given $action link
- getCart() — Retrieves a DMSDocumentCart handle
- getCartController() — Retrieves a DMSDocumentCartController handle
- getHasQuantityLimit() — Returns whether the current document has a limit on how many items can be added to a single cart
- getMaximumQuantity() — Get the maximum quantity of this document that can be ordered in a single cart
- getValidationResult() — Returns any validation messages that may have been in the session and clears them
- incrementPrintRequest() — Increments the number of times a document was printed
- isAllowedInCart() — Returns if a Document is permitted to reflect in a cart
- isInCart() — Checks if a given document already exists within the Cart. True if it does, false otherwise
- updateCMSFields()
- updateFieldsForFile() — Add a "print request count" field to the summary fields for editing a DMS document