UNA
BxDolLocationMap Class Reference
Inheritance diagram for BxDolLocationMap:
BxDolFactoryObject BxDolFactory iBxDolFactoryObject BxDolLocationMapGoogleStatic BxDolLocationMapLeaflet

Public Member Functions

 getMapSingle ($aLocation, $sLocationHtml='', $aParams=array())
 
- Public Member Functions inherited from BxDolFactoryObject
 getObjectName ()
 

Static Public Member Functions

static getObjectInstance ($sObject, $oTemplate=null)
 
- Static Public Member Functions inherited from BxDolFactoryObject
static getObjectInstanceByClassNames ($sObject, $oTemplate, $sClassName, $sDbClassName)
 

Detailed Description

This class allow different implementations for displaying maps.

Add record to sys_objects_location_map table, like you are doing this for Comments or Voting objects:

  • object: your object name, usually it is in the following format - vendor prefix, underscore, module prefix;
  • module: module name
  • title: translatable title
  • class_name: user defined class name which is derived from BxDolLocationField.
  • class_file: the location of the user defined class, leave it empty if class is located in system folders.

Member Function Documentation

◆ getMapSingle()

BxDolLocationMap::getMapSingle (   $aLocation,
  $sLocationHtml = '',
  $aParams = array() 
)

Get location map for single address

Parameters
$aLocationlocation array with the following indexes: lat, lng, country, state, city, zip, street, street_number
$sLocationHtmlformatted address string
$aParamssome specific params

◆ getObjectInstance()

static BxDolLocationMap::getObjectInstance (   $sObject,
  $oTemplate = null 
)
static

Get object instance by object name

Parameters
$sObjectobject name
Returns
object instance or false on error

The documentation for this class was generated from the following file: