\WishList
Wishlist model
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class WishList
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- protected static $current;
- // methods
- public static WishList current()
- public static void set_current()
- public static DataList get_for_user()
- protected void onBeforeWrite()
- public int getBuyableCount()
- public bool hasBuyable()
- public bool addBuyable()
- public bool removeBuyable()
- public int removeAllBuyables()
- public String getSetCurrentLink()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $has_many
- $has_one
protected
- $current
Methods
protected
- onBeforeWrite() — Set the owner automatically if needed
public
- addBuyable()
- current() — Returns the last used wish list or creates one if needed.
- getBuyableCount()
- getSetCurrentLink()
- get_for_user()
- hasBuyable()
- removeAllBuyables()
- removeBuyable()
- set_current()