\StockistPage
Synopsis
class StockistPage
extends Page
{
- // members
- private static string $icon = 'mysite/images/treeicons/StockistPage';
- private static string $allowed_children = 'none';
- private static boolean $show_in_sitetree = false;
- private static boolean $can_be_root = false;
- private static string $default_parent = 'StockistCountryPage';
- private static string $singular_name = "Stockist Page";
- private static string $plural_name = "Stockist Pages";
- private static string $description = 'Individual Stockist Page';
- private static array $db = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $defaults = ;
- private static array $casting = ;
- // methods
- public void i18n_singular_name()
- public void i18n_plural_name()
- public void getCMSFields()
- public void onBeforeWrite()
- public void createMapPoint()
- public String CustomAjaxInfoWindow()
- public String DirectionsLink()
- public string EncodedEmailLink()
- public string EncodedEmailText()
- public Distributor Distributor()
- public void getDistributor()
- public Distributor DistributorName()
- public void getDistributorName()
- public void CountryName()
- public void getCountryName()
- public String PointValues()
- public array getPointValues()
- public String CountryCode()
- public void getCountryCode()
- public void getPhoneWithoutSpaces()
- public void types()
Hierarchy
Extends
- Page
Members
private
- $allowed_children
- $can_be_root
- $casting
- $db
- $default_parent
- $defaults
- $description
- $has_one
- $icon
- $many_many
-
$plural_name
Standard SS variable. - $show_in_sitetree
—
boolean
remove from Site Tree as were using lumberjack -
$singular_name
Standard SS variable.
Methods
public
- CountryCode()
- CountryName()
- CustomAjaxInfoWindow()
- DirectionsLink() — provides a links to Google Maps to search for directions
- Distributor()
- DistributorName()
- EncodedEmailLink() — Obscure all email links in StringField.
- EncodedEmailText() — Obscure all email links in StringField.
- PointValues() — alias for getPointValues
- createMapPoint() — checks the map details if it has a map...
- getCMSFields()
- getCountryCode()
- getCountryName()
- getDistributor()
- getDistributorName()
- getPhoneWithoutSpaces()
- getPointValues() — returns, for example, an array for all the cities for a stockist (based on their Geo Locations) NB... values are cached...
- i18n_plural_name()
- i18n_singular_name()
- onBeforeWrite() — checks the map point
- types()