\MerchantLocation
Synopsis
class MerchantLocation
extends ProductGroup
{
- // members
- public static string $icon = "ecommerce_merchants/images/MerchantLocation";
- public static array $db = ;
- public static array $has_one = ;
- protected static string $active_filter = 'ShowInSearch = 1';
- protected static integer $maximum = 100000;
- public static string $default_parent = 'MerchantPage';
- public static string $allowed_children = 'none';
- public static string $hide_ancestor = 'ProductGroup';
- public static boolean $can_be_root = false;
- public static string $singular_name = 'Merchant Location';
- public static string $plural_name = 'Merchant Locations';
- private static array $categories_cache = ;
- // methods
- public static void get_active_filter()
- public void i18n_singular_name()
- public void i18n_plural_name()
- public void canEdit()
- public void getCMSFields()
- public void getFrontEndFields()
- public void currentInitialProducts()
- public void EditLink()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void Map()
- public void getMap()
- public DataObjectSet Categories()
- public void AllMerchantCities()
- public void AllMerchantAddress2()
- public void AllImages()
- protected String getClassNameSQL()
- protected Boolean getProductsAlsoInOtherGroups()
- protected String getStandardFilter()
- protected String getGroupFilter()
- protected String getProductsToBeIncludedFromOtherGroups()
- protected String currentClassNameSQL()
- protected String currentSortSQL()
- public Integer ProductsPerPage()
- public void MyNumberOfProductsPerPage()
Hierarchy
Extends
- ProductGroup
Members
private
- $categories_cache
protected
- $active_filter
- $maximum
public
- $allowed_children
- $can_be_root
- $db
- $default_parent
- $has_one
- $hide_ancestor
- $icon
- $plural_name
- $singular_name
Methods
protected
- currentClassNameSQL() — returns the CLASSNAME part of the final selection of products.
- currentSortSQL() — returns the SORT part of the final selection of products.
- getClassNameSQL() — Returns the class we are working with
- getGroupFilter() — works out the group filter baswed on the LevelOfProductsToShow value it also considers the other group many-many relationship this filter ALWAYS returns something: 1 = 1 if nothing else.
- getProductsAlsoInOtherGroups() — Do products occur in more than one group
- getProductsToBeIncludedFromOtherGroups() — If products are show in more than one group Then this returns a where phrase for any products that are linked to this product group
- getStandardFilter() — returns the filter SQL, based on the $_GET or default entry.
public
- AllImages()
- AllMerchantAddress2()
- AllMerchantCities()
- Categories() — returns the categories for all the products sold in the location
- EditLink()
- Map()
- MyNumberOfProductsPerPage()
- ProductsPerPage()
- canEdit()
- currentInitialProducts()
- getCMSFields()
- getFrontEndFields()
- getMap()
- get_active_filter()
- i18n_plural_name()
- i18n_singular_name()
- onAfterWrite()
- onBeforeWrite()