\WishListPage
WishListPage is where a customer can view his/her wish list(s) and edit them. The controller also handles add/remove links from the product pages. I chose to make this a pagetype instead of a bare controller because a common usage pattern would be to have this page as prt of the heirarchy of the account system.
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class WishListPage
extends Page
{
- // members
- private static bool $auto_create_page = true;
- // methods
- public static mixed inst()
- public static mixed singleton()
- public static string add_item_link()
- public static string remove_item_link()
- public void requireDefaultRecords()
Hierarchy
Extends
- Page
Members
private
- $auto_create_page — bool
Methods
public
- add_item_link()
- inst() — This matches the pattern used elsewhere in silverstripe
- remove_item_link()
- requireDefaultRecords() — Create the page if needed
- singleton() — This matches the pattern used elsewhere in ecommerce