InfoElementContent
in package
implements
ContentInterface, ContentAttributesInterface, ContentHeadingAttributeInterface, ContentTextAttributeInterface, ContentGroupIdInterface, JsonSerializable
Class InfoElementContent
This class represents an info element content
Tags
Interfaces, Classes and Traits
- ContentInterface
- 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
- $sortOrder : ContentSortOrder|null
- Sort order
- $status : ContentStatusCollection
- Content status
- $texts : ContentHeadingCollection
- Localized content texts
- $titles : ContentTitleCollection
- Localized content titles
- $type : string
- Content type
- __construct() : mixed
- headings() : ContentHeadingCollection
- Return the localized content headings
- id() : ContentIdentificationInterface
- Returns the content group id if set, otherwise null will be returned.
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
- position() : string
- Return the content position
- sortOrder() : ContentSortOrder|null
- Return the sort order
- status() : ContentStatusCollection
- Return whether the content is active
- texts() : ContentTextCollection
- Return the localized content texts
- titles() : ContentTitleCollection
- Return the localized content titles
- type() : string
- Return the content type
Properties
$headings
Localized content headings
protected
ContentHeadingCollection
$headings
$id
Content group ID
protected
ContentIdentificationInterface
$id
$position
Content position
protected
string
$position
$sortOrder
Sort order
protected
ContentSortOrder|null
$sortOrder
$status
Content status
protected
ContentStatusCollection
$status
$texts
Localized content texts
protected
ContentHeadingCollection
$texts
$titles
Localized content titles
protected
ContentTitleCollection
$titles
$type
Content type
protected
string
$type
Methods
__construct()
public
__construct(ContentPositionInterface $elementPosition, ContentStatusCollection $status, ContentTitleCollection $titles, ContentHeadingCollection $headings, ContentTextCollection $texts[, ContentIdentificationInterface|null $id = null ][, ContentSortOrder|null $sortOrder = null ]) : mixed
Parameters
- $elementPosition : ContentPositionInterface
- $status : ContentStatusCollection
- $titles : ContentTitleCollection
- $headings : ContentHeadingCollection
- $texts : ContentTextCollection
- $id : ContentIdentificationInterface|null = null
- $sortOrder : ContentSortOrder|null = null
Return values
mixed —headings()
Return the localized content headings
public
headings() : ContentHeadingCollection
Return values
ContentHeadingCollection —id()
Returns the content group id if set, otherwise null will be returned.
public
id() : ContentIdentificationInterface
Return values
ContentIdentificationInterface —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.
position()
Return the content position
public
position() : string
Return values
string —sortOrder()
Return the sort order
public
sortOrder() : ContentSortOrder|null
Return values
ContentSortOrder|null —status()
Return whether the content is active
public
status() : ContentStatusCollection
Return values
ContentStatusCollection —texts()
Return the localized content texts
public
texts() : ContentTextCollection
Return values
ContentTextCollection —titles()
Return the localized content titles
public
titles() : ContentTitleCollection
Return values
ContentTitleCollection —type()
Return the content type
public
type() : string