\DMSDocumentCartController
Synopsis
class DMSDocumentCartController
extends DMSCartAbstractController
{
- // members
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- // methods
- public void init()
- public ArrayList items()
- public array getReceiverInfo()
- public bool getIsCartEmpty()
- public SS_HTTPResponse|string add()
- public SS_HTTPResponse|string deduct()
- public string remove()
- protected ValidationResult validateAddRequest()
- public SS_HTTPResponse updateCartItems()
- public ViewableData_Customised view()
- public Form DMSCartEditForm()
- // Inherited methods from DMSCartAbstractController
- public string Link()
- public DMSDocumentCart getCart()
- public string getContinueBrowsingLink()
Hierarchy
Extends
Members
private
- $allowed_actions
- $url_handlers
Methods
protected
- validateAddRequest() — Validates a request to add a document to the cart
public
- DMSCartEditForm() — Gets and displays an editable list of items within the cart.
- add() — Add quantity to an item that exists in {@link DMSDocumentCart}.
- deduct() — Deduct quantity from an item that exists in {@link DMSDocumentCart}
- getIsCartEmpty() — See DMSDocumentCart::isCartEmpty()
- getReceiverInfo() — Prepares receiver info for the template.
- init()
- items() — See {@link DMSDocumentCart::getItems()}
- remove() — Completely remove an item that exists in {@link DMSDocumentCart}
- updateCartItems() — Updates the document quantities just before the request is sent.
- view() — Presents an interface for user to update the cart quantities
Inherited from DMSCartAbstractController
public
- Link() — Ensure that links for this controller use the customised route.
- getCart() — Retrieves a {@link DMSDocumentCart} instance
- getContinueBrowsingLink() — Controls the `Continue browsing` link found in DMSCartNavigation.ss. Defaults all requests back to home.