RecordStateFactory

Factory class that creates a record state

Table of Contents

Properties

$name  : string

Methods

__construct()  : mixed
forName()  : self
fromArray()  : RecordState
createEntityPointer()  : EntityPointer
resolveAspectFieldNames()  : array<string, string|null>
resolveAspectFieldValues()  : array<string|int, mixed>
resolveLanguageLink()  : EntityPointerLink|null
resolveVersionLink()  : EntityPointerLink|null

Properties

Methods

__construct()

public __construct(string $name) : mixed
Parameters
$name : string

forName()

public static forName(string $name) : self
Parameters
$name : string
Return values
self

fromArray()

public fromArray(array<string|int, mixed> $data[, int|string|null $pageId = null ][, int|string|null $recordId = null ]) : RecordState
Parameters
$data : array<string|int, mixed>
$pageId : int|string|null = null
$recordId : int|string|null = null
Return values
RecordState

createEntityPointer()

protected createEntityPointer(string|int|null $identifier[, string|null $name = null ]) : EntityPointer
Parameters
$identifier : string|int|null
$name : string|null = null
Tags
throws
LogicException
Return values
EntityPointer

resolveAspectFieldNames()

protected resolveAspectFieldNames() : array<string, string|null>
Return values
array<string, string|null>

resolveAspectFieldValues()

protected resolveAspectFieldValues(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>
protected resolveLanguageLink(array<string|int, mixed> $aspectFieldNames) : EntityPointerLink|null
Parameters
$aspectFieldNames : array<string|int, mixed>
Return values
EntityPointerLink|null

        
On this page

Search results