\MerchantPage
see: http://yuml.me/diagram/plain;dir:LR;/class/edit/[MerchantPage]%3C%3E1-%3E*[MerchantLocation],%20[City]%3C%3E1-%3E*[MerchantLocation],%20[MerchantPage]%3C%3E1-%3E*[MerchantProduct],%20[MerchantProduct]%3C%3E1-%3E*[MerchantLocation],%20[Category]*%3C--%3E*[MerchantProduct] OR: http://yuml.me/edit/18a5ec76 [MerchantPage]<>1->*[MerchantLocation] [City]<>1->*[MerchantLocation] [MerchantPage]<>1->*[MerchantProduct] [MerchantProduct]<>1->*[MerchantLocation] [Category]*<-->*[MerchantProduct]
Synopsis
class MerchantPage
extends ProductGroup
{
- // members
- public static string $icon = "ecommerce_merchants/images/MerchantPage";
- public static array $db = ;
- public static array $defaults = ;
- public static string $default_parent = 'AllMerchantsPage';
- public static array $allowed_children = ;
- public static string $default_child = 'MerchantProduct';
- public static string $hide_ancestor = 'ProductGroup';
- public static boolean $can_be_root = false;
- public static string $singular_name = 'Merchant Page';
- public static string $plural_name = 'Merchant Pages';
- protected static string $active_filter = 'ShowInSearch = 1';
- private static Array $merchant_pages_for_city_and_category_cache = ;
- // methods
- public void i18n_singular_name()
- public void i18n_plural_name()
- public void canEdit()
- public static void get_active_filter()
- public static DataObjectSet merchant_pages_for_city_and_category_cache()
- public void getCMSFields()
- public static void get_image_extensions()
- public void Locations()
- public void LinkToAllMerchantsPage()
- public void LocationsIncludingHiddenOnes()
- public void ProductsIncludingHiddenOnes()
- public void Products()
- public void AddLocationLink()
- public void AddProductLink()
- public void SortProductsLink()
- protected String MerchantGroupCode()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void OnlyShowLink()
- public void ClearOnlyShowLink()
- public void OnlyShowLinkAll()
- private void getAllMerchantsPageForOnlyShow()
Hierarchy
Extends
- ProductGroup
Members
private
- $merchant_pages_for_city_and_category_cache
—
Array
keeps the Merchants for one city
protected
- $active_filter
public
- $allowed_children
- $can_be_root
- $db
- $default_child
- $default_parent
- $defaults
- $hide_ancestor
- $icon
- $plural_name
- $singular_name
Methods
private
protected
- MerchantGroupCode() — This is used to have a set Merchant Group Code
public
- AddLocationLink()
- AddProductLink()
- ClearOnlyShowLink()
- LinkToAllMerchantsPage()
- Locations()
- LocationsIncludingHiddenOnes()
- OnlyShowLink()
- OnlyShowLinkAll()
- Products()
- ProductsIncludingHiddenOnes()
- SortProductsLink()
- canEdit()
- getCMSFields()
- get_active_filter()
- get_image_extensions()
- i18n_plural_name()
- i18n_singular_name()
- merchant_pages_for_city_and_category_cache() — Returns ALL the categories for one city and one category
- onAfterWrite()
- onBeforeWrite()