phpDocumentor

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

$cookieConsentPurposeId

protected int $cookieConsentPurposeId

$googleMaps

protected GoogleMapsGroupOption $googleMaps

$textManagerAdapter

protected TextManagerAdapterInterface $textManagerAdapter

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

htmlContent()

public htmlContent(Language|null $currentLanguage) : string
Parameters
$currentLanguage : Language|null
Return values
string

jsonSerialize()

public jsonSerialize() : mixed
Tags
inheritcDoc
Return values
mixed

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
throws
Exception
Return values
void

validateJsonObject()

Used to provide specific validation criteria for passed object before creation

protected static validateJsonObject(stdClass $jsonObject) : bool
Parameters
$jsonObject : stdClass
Tags
throws
Exception
Return values
bool

Search results