Class

eZ\Publish\Core\REST\Client\Values\User\UserGroup

class UserGroup extends UserGroup

Implementation of the {@link \eZ\Publish\API\Repository\Values\User\UserGroup} class.

Methods

VersionInfo getVersionInfo()

Returns the VersionInfo for this version.

mixed getFieldValue(string $fieldDefIdentifier, string $languageCode = null)

Returns a field value for the given value $version->fields[$fieldDefId][$languageCode] is an equivalent call if no language is given on a translatable field this method returns the value of the initial language of the version if present, otherwise null.

Field[] getFields()

This method returns the complete fields collection.

Field[] getFieldsByLanguage(string $languageCode = null)

This method returns the fields for a given language and non translatable fields.

Field|null getField(string $fieldDefIdentifier, string|null $languageCode = null)

This method returns the field for a given field definition identifier and language.

__get($property)

Details

at line 32
public VersionInfo getVersionInfo()

Returns the VersionInfo for this version.

Return Value

VersionInfo

at line 49
public mixed getFieldValue(string $fieldDefIdentifier, string $languageCode = null)

Returns a field value for the given value $version->fields[$fieldDefId][$languageCode] is an equivalent call if no language is given on a translatable field this method returns the value of the initial language of the version if present, otherwise null.

On non translatable fields this method ignores the languageCode parameter.

Parameters

string $fieldDefIdentifier
string $languageCode

Return Value

mixed a primitive type or a field type Value object depending on the field type.

at line 59
public Field[] getFields()

This method returns the complete fields collection.

Return Value

Field[]

at line 73
public Field[] getFieldsByLanguage(string $languageCode = null)

This method returns the fields for a given language and non translatable fields.

If note set the initialLanguage of the content version is used.

Parameters

string $languageCode

Return Value

Field[] With field identifier as keys

at line 88
public Field|null getField(string $fieldDefIdentifier, string|null $languageCode = null)

This method returns the field for a given field definition identifier and language.

If not set the initialLanguage of the content version is used.

Parameters

string $fieldDefIdentifier
string|null $languageCode

Return Value

Field|null A {@link Field} or null if nothing is found

at line 93
public __get($property)

Parameters

$property