WidgetConfiguration
in package
implements
AlwaysNewStrategyInterface
Class WidgetConfiguration
Interfaces, Classes and Traits
- AlwaysNewStrategyInterface
- Interface AlwaysNewStrategyInterface
Table of Contents
- $author : stdClass
- $cache : int
- $description : string
- $displayConfig : string
- $fieldsets : array<string|int, mixed>
- $fileIO : FileIO
- $helpUrl : string
- $icon : stdClass
- $id : string
- $title : string
- $version : string
- $widgetPath : string
- __clone() : mixed
- __construct() : mixed
- WidgetConfiguration constructor.
- author() : stdClass
- cache() : int
- createFromJsonPath() : WidgetConfiguration
- description() : string
- displayConfig() : string
- fieldsets() : array<string|int, FieldSet>
- helpUrl() : string
- icon() : stdClass
- id() : string
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
- title() : string
- version() : string
- widgetPath() : string
- getOptionItemTranslations() : mixed
- languageSpecificContent() : void
- Translates language specific content
Properties
$author
protected
stdClass
$author
$cache
protected
int
$cache
$description
protected
string
$description
$displayConfig
protected
string
$displayConfig
$fieldsets
protected
array<string|int, mixed>
$fieldsets
$fileIO
protected
FileIO
$fileIO
$helpUrl
protected
string
$helpUrl
$icon
protected
stdClass
$icon
$id
protected
string
$id
$title
protected
string
$title
$version
protected
string
$version
$widgetPath
protected
string
$widgetPath
Methods
__clone()
public
__clone() : mixed
Return values
mixed —__construct()
WidgetConfiguration constructor.
public
__construct(stdClass $widgetJson, string $widgetPath) : mixed
Parameters
- $widgetJson : stdClass
- $widgetPath : string
Tags
Return values
mixed —author()
public
author() : stdClass
Return values
stdClass —cache()
public
cache() : int
Return values
int —createFromJsonPath()
public
static createFromJsonPath(string $jsonPath) : WidgetConfiguration
Parameters
- $jsonPath : string
Tags
Return values
WidgetConfiguration —description()
public
description() : string
Return values
string —displayConfig()
public
displayConfig() : string
Return values
string —fieldsets()
public
fieldsets() : array<string|int, FieldSet>
Return values
array<string|int, FieldSet> —helpUrl()
public
helpUrl() : string
Return values
string —icon()
public
icon() : stdClass
Return values
stdClass —id()
public
id() : string
Return values
string —jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed
Tags
Return values
mixed —data which can be serialized by json_encode, which is a value of any type other than a resource.
title()
public
title() : string
Return values
string —version()
public
version() : string
Return values
string —widgetPath()
public
widgetPath() : string
Return values
string —getOptionItemTranslations()
protected
getOptionItemTranslations( $item, LanguageService $languageService) : mixed
Parameters
- $item :
- $languageService : LanguageService
Tags
Return values
mixed —languageSpecificContent()
Translates language specific content
protected
languageSpecificContent() : void