class DynamicEntry extends LocalizedResource implements EntryInterface

Properties

protected string[] $availableLocales List of codes for all the locales available in the space this resource belongs to from LocalizedResource
protected SystemProperties $sys
protected Client|null $client

Methods

__construct(array $fields, SystemProperties $sys, Client $client = null)

Entry constructor.

$this
setLocale(Locale|string $locale)

Set the locale for this instance. All future calls to a getter will return the information for this locale.

string
getLocale()

The locale code for the currently set locale.

string
getLocaleFromInput(Locale|string|null $input = null)

No description

string|null
loopThroughFallbackChain(array $valueMap, string $localeCode, Space $space)

No description

getId()

No description

getRevision()

No description

getUpdatedAt()

No description

getCreatedAt()

No description

getSpace()

No description

getContentType()

No description

mixed
__call(string $name, array $arguments)

No description

jsonSerialize()

No description

Details

at line 41
__construct(array $fields, SystemProperties $sys, Client $client = null)

Entry constructor.

Parameters

array $fields
SystemProperties $sys
Client $client

in LocalizedResource at line 56
$this setLocale(Locale|string $locale)

Set the locale for this instance. All future calls to a getter will return the information for this locale.

Parameters

Locale|string $locale The locale code as string or an instance of Locale.

Return Value

$this

Exceptions

InvalidArgumentException When $locale is not one of the locales supported by the space.

in LocalizedResource at line 78
string getLocale()

The locale code for the currently set locale.

Return Value

string

in LocalizedResource at line 92
protected string getLocaleFromInput(Locale|string|null $input = null)

Parameters

Locale|string|null $input

Return Value

string

Exceptions

InvalidArgumentException When $locale is not one of the locales supported by the space.

in LocalizedResource at line 118
protected string|null loopThroughFallbackChain(array $valueMap, string $localeCode, Space $space)

Parameters

array $valueMap
string $localeCode
Space $space

Return Value

string|null The locale code for which a value can be found. null if the end of the chain has been reached.

Exceptions

RuntimeException If we detect an endless loop

at line 51
getId()

at line 56
getRevision()

at line 61
getUpdatedAt()

at line 66
getCreatedAt()

at line 71
getSpace()

at line 76
getContentType()

at line 87
mixed __call(string $name, array $arguments)

Parameters

string $name
array $arguments

Return Value

mixed

at line 279
jsonSerialize()