SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class MapWidget

Displays a google map

Variables

NameVisibilityDescription
$default_settings 
$friendly_desc 
$friendly_name 
$heading
Optional HTML H2 heading that's rendered on front-end view
$settings
Settings - These get automatically set in the admin and loaded on the front-end

Functions

NameVisibilityDescription
cleanupSettingspublicEnsure settings are sane
getDefaultSettingspublicReturns the default settings for the widget
getEditUrlpublicThis function should return a URL which can be used to edit the *content* which is
getFriendlyDescpublicGets the english name of this widget
getFriendlyNamepublicGets the english name of this widget
getInfoLabelspublicReturns a label which describes the contents of this widget
getNotAvailableReasonpublicIs there sufficent content to add this addon at the moment?
getSettingspublicReturn the currently loaded settings for the widget
getSettingsFormpublicReturn the settings form for this widget
getTitlepublicReturns the title to use for the widget - should not contain HTML
importSettingspublicImports the settings
renderpublicReturn the front-end view of this widget
setTitlepublicSet widget title

public cleanupSettings

void $MapWidget->cleanupSettings ( );

Ensure settings are sane

public getDefaultSettings (from Widget)

unknown $Widget->getDefaultSettings ( );

Returns the default settings for the widget

public getEditUrl (from Widget)

unknown $Widget->getEditUrl ( );

This function should return a URL which can be used to edit the *content* which is
displayed by this widget.

Most widgets show content using a category selection box; the URL should in that
case direct the user to the contents list for that category.

Return NULL if there isn't an appropriate URL to use.

public getFriendlyDesc (from Widget)

unknown $Widget->getFriendlyDesc ( );

Gets the english name of this widget

public getFriendlyName (from Widget)

unknown $Widget->getFriendlyName ( );

Gets the english name of this widget

public getInfoLabels

unknown $MapWidget->getInfoLabels ( );

Returns a label which describes the contents of this widget
See Widget::get_info_label for full documentation

public getNotAvailableReason (from Widget)

unknown $Widget->getNotAvailableReason ( );

Is there sufficent content to add this addon at the moment?
If this widget is not available, a string message should be returned
If this widget *is* available, NULL should be returned.

public getSettings (from Widget)

array $Widget->getSettings ( );

Return the currently loaded settings for the widget

public getSettingsForm

unknown $MapWidget->getSettingsForm ( );

Return the settings form for this widget

public getTitle (from Widget)

unknown $Widget->getTitle ( );

Returns the title to use for the widget - should not contain HTML

public importSettings (from Widget)

void $Widget->importSettings ( array $settings );

Imports the settings

public render

unknown $MapWidget->render ( int $orientation );

Return the front-end view of this widget

public setTitle (from Widget)

void $Widget->setTitle ( string $str );

Set widget title