PHP Class Frontend\Modules\Location\Engine\Model

Datei anzeigen Open project: forkcms/forkcms Class Usage Examples

Public Methods

Method Description
buildUrl ( array $settings, array $markers = [] ) : string This will build the url to google maps for a large map
get ( integer $id ) : array Get an item
getAll ( ) : array Get all items
getMapSetting ( integer $mapId, string $name ) : mixed Retrieve a map setting
getMapSettings ( integer $mapId ) : array Fetch all the settings for a specific map
getPathToMapStyles ( boolean $backend = true ) : string Get path to map styles

Method Details

buildUrl() public static method

This will build the url to google maps for a large map
public static buildUrl ( array $settings, array $markers = [] ) : string
$settings array
$markers array
return string

get() public static method

Get an item
public static get ( integer $id ) : array
$id integer The id of the item to fetch.
return array

getAll() public static method

Get all items
public static getAll ( ) : array
return array

getMapSetting() public static method

Retrieve a map setting
public static getMapSetting ( integer $mapId, string $name ) : mixed
$mapId integer
$name string
return mixed

getMapSettings() public static method

Fetch all the settings for a specific map
public static getMapSettings ( integer $mapId ) : array
$mapId integer
return array

getPathToMapStyles() public static method

Get path to map styles
public static getPathToMapStyles ( boolean $backend = true ) : string
$backend boolean
return string