PHP Class Geo_Preferences, newscoop

Inheritance: extends DatabaseObject
Show file Open project: sourcefabric/newscoop Class Usage Examples

Public Methods

Method Description
GetFocusInfo ( string $p_htmlDir = '', string $p_websiteUrl = '' ) : array Gets info on map auto-focusing
GetIconsFiles ( string $p_htmlDir = '', string $p_websiteUrl = '' ) : array Gets files available as marker icons
GetIconsInfo ( string $p_htmlDir, string $p_websiteUrl ) : array Gets info on marker icons
GetIconsWebDir ( string $p_htmlDir = '', string $p_websiteUrl = '' ) : string Gets icons directory for map (pre)view
GetIncludeCSS ( string $p_htmlDir = '', string $p_websiteUrl = '' ) : array Gets CSS file(s) to be included for map (pre)view
GetMapInfo ( string $p_htmlDir = '', string $p_websiteUrl = '', $p_mapProvider = '' ) : array Gets info on map view
GetMapProviderDefault ( ) : string Gets the default available map provider
GetPopupsInfo ( string $p_htmlDir, string $p_websiteUrl ) : array Gets info on popups
GetSearchInfo ( string $p_htmlDir, string $p_websiteUrl ) : string Gets info on the search map
PrepareMapIncludes ( array $p_inclInfo ) : string Prepares js script include tags
TemplateGeoStrings ( ) : array Gets translated strings for the geo-map templates This is used for having translated those strings, even when they are not used via this function Look at include/smarty/plugins/function.math.php for the usage

Method Details

GetFocusInfo() public static method

Gets info on map auto-focusing
public static GetFocusInfo ( string $p_htmlDir = '', string $p_websiteUrl = '' ) : array
$p_htmlDir string
$p_websiteUrl string
return array

GetIconsFiles() public static method

Gets files available as marker icons
public static GetIconsFiles ( string $p_htmlDir = '', string $p_websiteUrl = '' ) : array
$p_htmlDir string
$p_websiteUrl string
return array

GetIconsInfo() public static method

Gets info on marker icons
public static GetIconsInfo ( string $p_htmlDir, string $p_websiteUrl ) : array
$p_htmlDir string
$p_websiteUrl string
return array

GetIconsWebDir() public static method

Gets icons directory for map (pre)view
public static GetIconsWebDir ( string $p_htmlDir = '', string $p_websiteUrl = '' ) : string
$p_htmlDir string
$p_websiteUrl string
return string

GetIncludeCSS() public static method

Gets CSS file(s) to be included for map (pre)view
public static GetIncludeCSS ( string $p_htmlDir = '', string $p_websiteUrl = '' ) : array
$p_htmlDir string
$p_websiteUrl string
return array

GetMapInfo() public static method

Gets info on map view
public static GetMapInfo ( string $p_htmlDir = '', string $p_websiteUrl = '', $p_mapProvider = '' ) : array
$p_htmlDir string
$p_websiteUrl string
return array

GetMapProviderDefault() public static method

Gets the default available map provider
public static GetMapProviderDefault ( ) : string
return string

GetPopupsInfo() public static method

Gets info on popups
public static GetPopupsInfo ( string $p_htmlDir, string $p_websiteUrl ) : array
$p_htmlDir string
$p_websiteUrl string
return array

GetSearchInfo() public static method

Gets info on the search map
public static GetSearchInfo ( string $p_htmlDir, string $p_websiteUrl ) : string
$p_htmlDir string
$p_websiteUrl string
return string

PrepareMapIncludes() public static method

Prepares js script include tags
public static PrepareMapIncludes ( array $p_inclInfo ) : string
$p_inclInfo array
return string

TemplateGeoStrings() public static method

Gets translated strings for the geo-map templates This is used for having translated those strings, even when they are not used via this function Look at include/smarty/plugins/function.math.php for the usage
public static TemplateGeoStrings ( ) : array
return array