Dynamic\Locator\LocatorController
Class LocatorController
Synopsis
class LocatorController
extends PageController
{
- // members
- private static array $allowed_actions = ;
- private static array $base_filter = ;
- private static array $base_exclude = ;
- private static array $base_filter_any = ;
- private static bool $bootstrapify = true;
- private static string $map_container = 'map';
- private static string $list_container = 'loc-list';
- private static string $query_trigger = 'action_doFilterLocations';
- protected DataList|ArrayList $locations;
- // methods
- public void init()
- public bool getTrigger()
- public ArrayList|DataList getLocations()
- public $this setLocations()
- public ArrayData|boolean getAddressSearchCoords()
- public ViewableData_Customised index()
- public DBHTMLText xml()
- public DBHTMLText json()
- public Form LocationSearch()
Hierarchy
Extends
- PageController
Members
private
- $allowed_actions — array
- $base_exclude — array
- $base_filter — array
- $base_filter_any — array
- $bootstrapify — Dynamic\Locator\bool
- $list_container
—
string
class of location list container - $map_container
—
string
ID of map container - $query_trigger
—
string
GET variable which, if isset, will trigger storeLocator init and return XML
protected
- $locations — Dynamic\Locator\DataList|ArrayList
Methods
public
- LocationSearch() — LocationSearch form.
- getAddressSearchCoords()
- getLocations()
- getTrigger()
- index()
- init() — Set Requirements based on input from CMS
- json() — Renders locations in json format
- setLocations()
- xml() — Renders locations in xml format