Store Locator Plus®

SLP_Location_Utilities extends SLP_Base_Object
in package

Class SLP_Base_Object

New Base Object with singleton support. The model on which all new SLP classes should be based.

Table of Contents

Methods

__construct()  : mixed
SLP_Base_Object constructor.
create_city_state_zip()  : string
Create the city_state_zip formatted output.
create_email_link()  : string
Create the email hyperlink.
create_zip_state_city()  : string
Create the zip_state_city formatted output.
geocode()  : object
Geocode an address sent in array( 'address' => '...' )
get_instance()  : SLPlus_BaseClass_Object
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
set_properties()  : mixed
Set our properties.
initialize()  : mixed
Do these things when this object is invoked. Override in your class.

Methods

__construct()

SLP_Base_Object constructor.

public __construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
$options : array<string|int, mixed> = array()

create_city_state_zip()

Create the city_state_zip formatted output.

public create_city_state_zip([mixed $location_data = array() ]) : string
Parameters
$location_data : mixed = array()
Return values
string

Create the email hyperlink.

public create_email_link(string $email) : string
Parameters
$email : string
Return values
string

create_zip_state_city()

Create the zip_state_city formatted output.

public create_zip_state_city([mixed $location_data = array() ]) : string
Parameters
$location_data : mixed = array()
Return values
string

geocode()

Geocode an address sent in array( 'address' => '...' )

public geocode(array<string|int, mixed> $params) : object

Allows replacements for Google to hook in via the slp_geocode_address filter.

Fallback is Google.

Parameters
$params : array<string|int, mixed>

'address' required address to geocode 'region' region code from Map Domain setting (us,au,...) 'bounds' bounds if set

Return values
object

set_properties()

Set our properties.

public set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
$options : array<string|int, mixed> = array()

initialize()

Do these things when this object is invoked. Override in your class.

protected initialize() : mixed

        
On this page

Search results