\StockistCountryPage
Synopsis
class StockistCountryPage
extends StockistSearchPage
{
- // members
- private static string $icon = 'mysite/images/treeicons/StockistCountryPage';
- private static array $db = ;
- private static array $indexes = ;
- private static array $many_many = ;
- private static array $extensions = ;
- private static string $default_child = 'StockistPage';
- private static array $allowed_children = ;
- private static boolean $can_be_root = false;
- private static string $singular_name = "Stockist Country Page";
- private static string $plural_name = "Stockist Country Pages";
- private static string $description = 'Stockist Country Page';
- // methods
- public void i18n_singular_name()
- public void i18n_plural_name()
- public void getCMSFields()
- public void validate()
- public void onBeforeWrite()
- public Array getMapTypes()
- public Boolean canCreate()
- public Array AllChildrenIDs()
- public DataList AllChildLocations()
- public DataList ChildCountries()
- public DataList AllPhysicalStockists()
- public DataList AllOnlineStockists()
- public array StockistPointValueList()
- public array getStockistPointValueList()
- public ArrayList Cities()
- // Inherited methods from StockistSearchPage
- public void i18n_singular_name()
- public void i18n_plural_name()
- public void getCMSFields()
- public void canCreate()
- public DataList AllContintents()
- public DataList AllPhysicalStockists()
- public DataList AllOnlineStockists()
- public Boolean HasPhysicalStockistsANDOnlineStockists()
Hierarchy
Extends
Members
private
- $allowed_children
- $can_be_root
- $db
- $default_child
- $description
- $extensions
—
array
extended by lumberjack - $icon
- $indexes
- $many_many
-
$plural_name
Standard SS variable. -
$singular_name
Standard SS variable.
Methods
public
- AllChildLocations() — returns a data list of all child (recursive) GoogleMapLocationsObjects
- AllChildrenIDs() — a list of IDs of all child StockistCountryPages (recursive) and the page itself...
- AllOnlineStockists()
- AllPhysicalStockists()
- ChildCountries()
- Cities()
- StockistPointValueList() — alias for getStockistPointField
- canCreate() — create as many as you like
- getCMSFields()
- getMapTypes() — returns an array of stockist types that can be shown in a map.
- getStockistPointValueList() — get a list of all values for one field for all stockists in this country for example, all cities for Zimbabwe... (as defined by its stockist pages AND the values saved in the stockists' geo locations.
- i18n_plural_name()
- i18n_singular_name()
- onBeforeWrite()
- validate()
Inherited from StockistSearchPage
public
- AllContintents() — returns a list of continents
- AllOnlineStockists() — this is only provided on a country level
- AllPhysicalStockists() — this is only provided on a country level
- HasPhysicalStockistsANDOnlineStockists()
- canCreate() — can only create one
- getCMSFields()
- i18n_plural_name()
- i18n_singular_name()