ThemeContentsParser
in package
Class ThemeContentsParser
This class represents a parser for theme contents
Table of Contents
- $identificationFactory : mixed
- createLocalizedCollection() : mixed
- Return a collection of the provided localized values
- parse() : ThemeContents
- Return the parsed theme contents
- identificationFactory() : ContentIdentificationFactoryInterface
- createClassForLocalizedCollection() : stdClass
- Converts the value to language specific
- parseInfoElementContent() : InfoElementContent
- Return a parsed info element content
- parseInfoElementContents() : InfoElementContentCollection
- Return the parsed info element contents
- parseInfoPageContent() : InfoPageContent
- Return a parsed info page content
- parseInfoPageContents() : InfoPageContentCollection
- Return the parsed info page contents
- parseLinkPageContent() : LinkPageContent
- Return a parsed link page content
- parseLinkPageContents() : LinkPageContentCollection
- Return the parsed link page contents
Properties
$identificationFactory
protected
static mixed
$identificationFactory
Methods
createLocalizedCollection()
Return a collection of the provided localized values
public
static createLocalizedCollection([stdClass $values = null ], StringType $itemClassName) : mixed
Parameters
- $values : stdClass = null
-
Object containing locale-based values
- $itemClassName : StringType
-
Item class name
Return values
mixed —Dynamic output (all outputs implement LocalizedContentAttributeCollectionInterface)
parse()
Return the parsed theme contents
public
static parse(stdClass $contents) : ThemeContents
Parameters
- $contents : stdClass
-
Theme contents
Tags
Return values
ThemeContents —identificationFactory()
protected
static identificationFactory() : ContentIdentificationFactoryInterface
Return values
ContentIdentificationFactoryInterface —createClassForLocalizedCollection()
Converts the value to language specific
private
static createClassForLocalizedCollection( $value) : stdClass
Parameters
Return values
stdClass —parseInfoElementContent()
Return a parsed info element content
private
static parseInfoElementContent(stdClass $content) : InfoElementContent
Parameters
- $content : stdClass
-
Info element content
Tags
Return values
InfoElementContent —parseInfoElementContents()
Return the parsed info element contents
private
static parseInfoElementContents(array<string|int, mixed> $infoElementContents) : InfoElementContentCollection
Parameters
- $infoElementContents : array<string|int, mixed>
-
Info element contents
Tags
Return values
InfoElementContentCollection —parseInfoPageContent()
Return a parsed info page content
private
static parseInfoPageContent(stdClass $content) : InfoPageContent
Parameters
- $content : stdClass
-
Info page content
Return values
InfoPageContent —parseInfoPageContents()
Return the parsed info page contents
private
static parseInfoPageContents(array<string|int, mixed> $infoPageContents) : InfoPageContentCollection
Parameters
- $infoPageContents : array<string|int, mixed>
-
Info page contents
Tags
Return values
InfoPageContentCollection —parseLinkPageContent()
Return a parsed link page content
private
static parseLinkPageContent(stdClass $content) : LinkPageContent
Parameters
- $content : stdClass
-
Link page content
Tags
Return values
LinkPageContent —parseLinkPageContents()
Return the parsed link page contents
private
static parseLinkPageContents(array<string|int, mixed> $linkPageContents) : LinkPageContentCollection
Parameters
- $linkPageContents : array<string|int, mixed>
-
Link page contents