\Product_Controller
Synopsis
class Product_Controller
extends Page_Controller
{
- // members
- private static array $allowed_actions = ;
- protected bool $isCurrentVersion = true;
- // methods
- public void init()
- public void viewversion()
- public void ajaxview()
- public Form AddProductForm()
- public void addproductfromform()
- public bool IsOlderVersion()
- public DataList SidebarProducts()
- public Product NextProduct()
- public Product PreviousProduct()
- public bool HasPreviousOrNextProduct()
- protected array getListOfIDs()
- public void debug()
Hierarchy
Extends
- Page_Controller
Members
Methods
protected
- getListOfIDs() — returns an array of product IDs, as saved in the last ProductGroup view (saved using session).
public
- AddProductForm() — returns a form for adding products to cart.
- HasPreviousOrNextProduct() — This method can be extended to show products in the side bar.
- IsOlderVersion() — Is this an older version?
- NextProduct() — This method can be extended to show products in the side bar.
- PreviousProduct() — This method can be extended to show products in the side bar.
- SidebarProducts() — This method can be extended to show products in the side bar.
- addproductfromform() — executes the AddProductForm.
- ajaxview() — Standard SS method Returns a snippet when requested by ajax.
- debug()
- init() — Standard SS method.
- viewversion() — view earlier version of a product returns error or changes datarecord to earlier version if the ID does not match the Page then we look for the variation.