Documentation

InfoElementContent
in package
implements ContentAttributesInterface, ContentHeadingAttributeInterface, ContentTextAttributeInterface, ContentGroupIdInterface, JsonSerializable

Class InfoElementContent

This class represents an info element content

Tags
category

System

Interfaces, Classes and Traits

ContentAttributesInterface
Interface ContentAttributesInterface
ContentHeadingAttributeInterface
Interface ContentHeadingAttributeInterface
ContentTextAttributeInterface
Interface ContentTextAttributeInterface
ContentGroupIdInterface
Interface ContentGroupIdInterface
JsonSerializable

Table of Contents

$headings  : ContentHeadingCollection
Localized content headings
$id  : ContentIdentificationInterface
Content group ID
$position  : string
Content position
$status  : bool
Content status
$texts  : ContentHeadingCollection
Localized content texts
$titles  : ContentTitleCollection
Localized content titles
$type  : string
Content type
__construct()  : mixed
InfoElementContent constructor
headings()  : ContentHeadingCollection
Return the localized content headings
id()  : ContentIdentificationInterface
Returns the content group id if set, otherwise null will be returned.
isActive()  : bool
Return whether the content is active
jsonSerialize()  : mixed
Specify data which should be serialized to JSON
position()  : string
Return the content position
texts()  : ContentTextCollection
Return the localized content texts
titles()  : ContentTitleCollection
Return the localized content titles
type()  : string
Return the content type

Properties

Methods

__construct()

InfoElementContent constructor

public __construct(ContentPositionInterface $elementPosition, ContentStatusInterface $status, ContentTitleCollection $titles, ContentHeadingCollection $headings, ContentTextCollection $texts[, ContentIdentificationInterface $id = null ]) : mixed
Parameters
$elementPosition : ContentPositionInterface

Element position

$status : ContentStatusInterface

Activation status

$titles : ContentTitleCollection

Localized titles

$headings : ContentHeadingCollection

Localized headings

$texts : ContentTextCollection

Localized texts

$id : ContentIdentificationInterface = null

Optional content group ID

Return values
mixed

isActive()

Return whether the content is active

public isActive() : bool
Return values
bool

Search results