\WishListDecorator_Controller
Synopsis
class WishListDecorator_Controller
extends Extension
{
- // members
- public static array $allowed_actions = ;
- private static boolean $requirements_added = false;
- protected static string $session_variable_name = "WishListDecoratorMessage";
- protected static $data = NULL;
- // methods
- public static void set_session_variable_name()
- public static string get_session_variable_name()
- public static void set_inline_requirements()
- public static Member get_member_for_wishlist()
- public static array get_wish_list_from_member_array()
- public static Boolean set_wish_list_to_member()
- public string addtowishlist()
- public string removefromwishlist()
- public string savewishlist()
- public string retrievewishlist()
- public string loadlist()
- public string clearwishlist()
- public DataObjectSet WishList()
- public string WishListMessage()
- public int NumberOfItemsInSavedOnes()
- public int NumberOfItemsInSessionOnes()
- protected mixed getVariableFromwishListPage()
- protected WishListPage wishListPage()
- protected string standardReturn()
- protected DataObject getWishListObject()
- public void wishlistdebug()
Hierarchy
Extends
- Extension
Members
private
-
$requirements_added
Whether requirements have already been added to the current page.
protected
-
$data
temporary store for the data -
$session_variable_name
Name of session variable for storing wishlist message.
public
-
$allowed_actions
Provides a list of allowed methods that can be called via RESTful api.
Methods
protected
- getVariableFromwishListPage() — Retrieve variable from wish list page.
- getWishListObject() — Instantiate a DataObject base on the id-classname pair passed.
- standardReturn() — Return template html if this is an ajax call otherwise redirect back.
- wishListPage() — Retrieve a single wish list page.
public
- NumberOfItemsInSavedOnes() — Return number of items in member wish list.
- NumberOfItemsInSessionOnes() — Return number of items in wish list.
- WishList() — Retrieve wishlist entries from session and return.
- WishListMessage() — Retrieve wish list message from session.
- addtowishlist() — Add the current page to the wishlist.
- clearwishlist() — Set the wishlist to empty for the current member Returns html if this is ajax otherwise redirects back.
- get_member_for_wishlist() — returns a real or fake member against which we save the wishlist.
- get_session_variable_name() — Return the name of the session variable.
- get_wish_list_from_member_array() — Return wish list data from current member as an array.
- loadlist() — If this is ajax then return the wishlist html otherwise do nothing.
- removefromwishlist() — Remove the current page to the wishlist.
- retrievewishlist() — Retrieve the wishlist from the current member Returns html if this is ajax otherwise redirects back.
- savewishlist() — Save the wishlist to the current member.
- set_inline_requirements() — Add js and css requirements to current page.
- set_session_variable_name() — Set the name of the session variable, to change from default.
- set_wish_list_to_member() — Save wish list data to current member.
- wishlistdebug()