Class

eZ\Publish\Core\Repository\Values\User\UserGroup

class UserGroup extends UserGroup

This class represents a user group.

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.

mixed __get(string $property)

Magic getter for retrieving convenience properties.

bool __isset(string $property)

Magic isset for signaling existence of convenience properties.

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 116
public mixed __get(string $property)

Magic getter for retrieving convenience properties.

Parameters

string $property The name of the property to retrieve

Return Value

mixed

at line 149
public bool __isset(string $property)

Magic isset for signaling existence of convenience properties.

Parameters

string $property

Return Value

bool