MapWidget
extends AbstractWidget
in package
Class AbstractWidget
Table of Contents
- $configurationAdapter : GmConfigurationAdapter
- $consentPurposeReaderService : CookieConsentPurposeReaderServiceInterface
- $cookieConsentPurposeId : int
- $customStyle : TextBox
- $fieldsets : array<string|int, FieldSet>
- $googleMaps : GoogleMapsGroupOption
- $height : NumberBoxOption
- $id : TextBox
- ID
- $jsonObject : stdClass
- $static_id : string
- $style : RadioImageOption
- $textManagerAdapter : TextManagerAdapterInterface
- $type : string
- $width : NumberBoxOption
- __construct() : mixed
- AbstractWidget constructor.
- createFromJsonObject() : ContentGeneratorInterface
- htmlContent() : string
- jsonSerialize() : mixed
- persist() : void
- previewContent() : string
- update() : void
- Saves the Google Api Key option in the database on the SAVE request
- createOptionsArray() : array<string|int, mixed>
- list all the options of a widget as $option->
- createWidgetObject() : static
- getMapConfig() : array<string|int, mixed>
- getMapStyle() : array<string|int, mixed>|false|string
- initializePropertiesFromFieldset() : void
- validateJsonObject() : bool
- Used to provide specific validation criteria for passed object before creation
Properties
$configurationAdapter
protected
GmConfigurationAdapter
$configurationAdapter
$consentPurposeReaderService
protected
CookieConsentPurposeReaderServiceInterface
$consentPurposeReaderService
$cookieConsentPurposeId
protected
int
$cookieConsentPurposeId
$customStyle
protected
TextBox
$customStyle
$fieldsets
protected
array<string|int, FieldSet>
$fieldsets
= []
$googleMaps
protected
GoogleMapsGroupOption
$googleMaps
$height
protected
NumberBoxOption
$height
$id
ID
protected
TextBox
$id
$jsonObject
protected
stdClass
$jsonObject
$static_id
protected
string
$static_id
$style
protected
RadioImageOption
$style
$textManagerAdapter
protected
TextManagerAdapterInterface
$textManagerAdapter
$type
protected
string
$type
= 'map'
$width
protected
NumberBoxOption
$width
Methods
__construct()
AbstractWidget constructor.
public
__construct(string $static_id, array<string|int, mixed> $fieldsets, stdClass $jsonObject, GmConfigurationAdapter $configurationAdapter, TextManagerAdapterInterface $textManagerAdapter, CookieConsentPurposeReaderServiceInterface $consentPurposeReaderService) : mixed
Parameters
- $static_id : string
- $fieldsets : array<string|int, mixed>
- $jsonObject : stdClass
- $configurationAdapter : GmConfigurationAdapter
- $textManagerAdapter : TextManagerAdapterInterface
- $consentPurposeReaderService : CookieConsentPurposeReaderServiceInterface
Return values
mixed —createFromJsonObject()
public
static createFromJsonObject(stdClass $jsonObject) : ContentGeneratorInterface
Parameters
- $jsonObject : stdClass
Tags
Return values
ContentGeneratorInterface —htmlContent()
public
htmlContent(Language|null $currentLanguage) : string
Parameters
- $currentLanguage : Language|null
Return values
string —jsonSerialize()
public
jsonSerialize() : mixed
Tags
Return values
mixed —persist()
public
persist() : void
Return values
void —previewContent()
public
previewContent(Language|null $currentLanguage) : string
Parameters
- $currentLanguage : Language|null
Return values
string —update()
Saves the Google Api Key option in the database on the SAVE request
public
update() : void
Return values
void —createOptionsArray()
list all the options of a widget as $option->
protected
static createOptionsArray(stdClass $widget) : array<string|int, mixed>
Parameters
- $widget : stdClass
Return values
array<string|int, mixed> —createWidgetObject()
protected
static createWidgetObject(stdClass $jsonObject[, mixed $fieldSets = [] ]) : static
Parameters
- $jsonObject : stdClass
- $fieldSets : mixed = []
Return values
static —getMapConfig()
protected
getMapConfig() : array<string|int, mixed>
Return values
array<string|int, mixed> —getMapStyle()
protected
getMapStyle() : array<string|int, mixed>|false|string
Return values
array<string|int, mixed>|false|string —initializePropertiesFromFieldset()
protected
initializePropertiesFromFieldset() : void
Tags
Return values
void —validateJsonObject()
Used to provide specific validation criteria for passed object before creation
protected
static validateJsonObject(stdClass $jsonObject) : bool
Parameters
- $jsonObject : stdClass